Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Not able to run .aspx files on my web domain

Not able to run .aspx files on my web domain

Scheduled Pinned Locked Moved ASP.NET
questionhtmldatabasecomtutorial
5 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • X Offline
    X Offline
    xkrja
    wrote on last edited by
    #1

    Hi, I'm able to run my .aspx files when I set up virtual directories locally on c:\. I do that by typing "http://localhost/myapp.aspx" for example. But if I upload the .aspx-file to my web domain and then try to run it doesn't work. For example: "http://www.mydomain.com/myapp.aspx" It looks like it doesn't compile the ASP-code and it just shows the site in HTML. My questions are: 1. How do I do to show the aspx file correctly on my web domain address? 2. How should I name my ASP-application so that I only need to type "http://www.mydomain.com" to open my site? (For example in HTML you would name it index.html) Thanks! /K

    C G P H 4 Replies Last reply
    0
    • X xkrja

      Hi, I'm able to run my .aspx files when I set up virtual directories locally on c:\. I do that by typing "http://localhost/myapp.aspx" for example. But if I upload the .aspx-file to my web domain and then try to run it doesn't work. For example: "http://www.mydomain.com/myapp.aspx" It looks like it doesn't compile the ASP-code and it just shows the site in HTML. My questions are: 1. How do I do to show the aspx file correctly on my web domain address? 2. How should I name my ASP-application so that I only need to type "http://www.mydomain.com" to open my site? (For example in HTML you would name it index.html) Thanks! /K

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      1 - install .NET and register the ASP.NET ISAPI filter on your server. 2 - configure IIS on your server to load the aspx file you want to load if no page is specified on the URL. index.html is preconfigured.

      Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

      1 Reply Last reply
      0
      • X xkrja

        Hi, I'm able to run my .aspx files when I set up virtual directories locally on c:\. I do that by typing "http://localhost/myapp.aspx" for example. But if I upload the .aspx-file to my web domain and then try to run it doesn't work. For example: "http://www.mydomain.com/myapp.aspx" It looks like it doesn't compile the ASP-code and it just shows the site in HTML. My questions are: 1. How do I do to show the aspx file correctly on my web domain address? 2. How should I name my ASP-application so that I only need to type "http://www.mydomain.com" to open my site? (For example in HTML you would name it index.html) Thanks! /K

        G Offline
        G Offline
        Guffa
        wrote on last edited by
        #3

        xkrja wrote:

        1. How do I do to show the aspx file correctly on my web domain address?

        Use the Publish Web Site command in the Build menu. You can publish it directly to the site, or publish it to a folder on your computer and upload the files.

        xkrja wrote:

        2. How should I name my ASP-application so that I only need to type "http://www.mydomain.com" to open my site? (For example in HTML you would name it index.html)

        You would use the name that is defined in the web site. Usually it's Default.aspx.

        Experience is the sum of all the mistakes you have done.

        1 Reply Last reply
        0
        • X xkrja

          Hi, I'm able to run my .aspx files when I set up virtual directories locally on c:\. I do that by typing "http://localhost/myapp.aspx" for example. But if I upload the .aspx-file to my web domain and then try to run it doesn't work. For example: "http://www.mydomain.com/myapp.aspx" It looks like it doesn't compile the ASP-code and it just shows the site in HTML. My questions are: 1. How do I do to show the aspx file correctly on my web domain address? 2. How should I name my ASP-application so that I only need to type "http://www.mydomain.com" to open my site? (For example in HTML you would name it index.html) Thanks! /K

          P Offline
          P Offline
          pmarfleet
          wrote on last edited by
          #4

          xkrja wrote:

          But if I upload the .aspx-file to my web domain and then try to run it doesn't work.

          Is ASP.NET registered in IIS? You can check this by bringing up the properties for your virtual directory and looking for an ASP.NET tab. If it isn't run the aspnet_regiis utility (you can find it where the .NET framework is installed) with the -i switch to register it.

          xkrja wrote:

          How should I name my ASP-application so that I only need to type "http://www.mydomain.com" to open my site?

          Define default page names in IIS. The standard default page names are things like default.aspx, index.aspx etc.

          Paul Marfleet "No, his mind is not for rent To any God or government" Tom Sawyer - Rush

          1 Reply Last reply
          0
          • X xkrja

            Hi, I'm able to run my .aspx files when I set up virtual directories locally on c:\. I do that by typing "http://localhost/myapp.aspx" for example. But if I upload the .aspx-file to my web domain and then try to run it doesn't work. For example: "http://www.mydomain.com/myapp.aspx" It looks like it doesn't compile the ASP-code and it just shows the site in HTML. My questions are: 1. How do I do to show the aspx file correctly on my web domain address? 2. How should I name my ASP-application so that I only need to type "http://www.mydomain.com" to open my site? (For example in HTML you would name it index.html) Thanks! /K

            H Offline
            H Offline
            Herman T Instance
            wrote on last edited by
            #5

            Doen your domain runs windos server 2k3? In the WebServer page there are some xtra settings to set to make the webserver run aspx-files. In the section Web Service Extensions set Active Server Pages to prohibited Set any ASP.NET vX.y.zzzz to Allowed.

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups