Not able to run .aspx files on my web domain
-
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
-
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
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 )
-
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
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 theBuild
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.
-
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
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
-
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
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.