Guys good day. When running an ASP.NET web page, the browser will display .aspx source code or will attempt to download the .aspx file. I've run the aspnet_regiis.exe, restart the service and IIS but still no luck.
Thanks in advance for any help. :)
Printable View
Guys good day. When running an ASP.NET web page, the browser will display .aspx source code or will attempt to download the .aspx file. I've run the aspnet_regiis.exe, restart the service and IIS but still no luck.
Thanks in advance for any help. :)
Have you tried reregistering with the -i parameter?
C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis -i
I've tried C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis -i and C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis -r and still the browser attempt to open the .aspx file.
Do you have the Application Configuration Mappings for the default of aspx?
Look also at the documents tab to see if it contains the aspx extension too.
I've already add the .aspx extension in documents tab.
I look through Application Configuration in the Mappings tab and the .aspx extension is not listed..only .asa,.asbx...etc. and it seems I can't add the .aspx extension manually.
Hmm, you shouldnt have to manually add the aspx extension. It should be there automatically when you install VS with the web dev features selected.
Explain "it seems" you can't add it to IIS.
If you're using IIS 6, when you open up IIS, go to the 'Web Services Extension' folder in there and make sure that ASP.NET has been set to Allow.
I'm using IIS 5.Quote:
Originally Posted by mendhak
Fill up the Executable field with the same one that .asbx is using.
Fill up extension with .aspx. 'OK' should be enabled then.
However, looking at your script mappings, it looks like ASP.NET still hasn't been installed.
When you ran aspnet_regiis -i, did you get a success message? Do you have admin rights?
Now I got it working. I just ran again aspnet_regiis -i and add the .aspx extension.
Thanks mend and rob for the help.