Error while access page from local host

Posted by Vivekanandaan under ASP.NET on 4/17/2012 | Points: 10 | Views : 1343 | Status : [Member] | Replies : 2
The page you are requesting cannot be served because of the extension configuration. If the page is a script, add a handler. If the file should be downloaded, add a MIME map.

Module StaticFileModule
Notification ExecuteRequestHandler
Handler StaticFile
Error Code 0x80070032
Requested URL http://localhost:80/WEBAPPLICATION1/DEFAULT.ASPX
Physical Path C:\inetpub\wwwroot\WEBAPPLICATION1\DEFAULT.ASPX
Logon Method Anonymous
Logon User Anonymous

While i am trying to access my page through Visual studio 2010 it's working fine. When i try to access through local host it's throwing the above error.

Kindly advice..


Posted by: Johnbhatt on: 7/14/2012 [Member] Starter | Points: 25

You must Prepare IIS for ASP.NET before using. To do so,

Open Command Prompt as Administrator
Navigate to C:\

C:\>cd Windows
C:\Windows>cd Microsoft.NET
C:\Windows\Microsoft.NET>cd Fram*

Now you will be at

First Decide what version are you using. ASP.NET 1.0, 1.1, 2.0, 3, 3.5 , 4 or 4.5 (if Installed).
Then type following code in Command Prompt

C:\Windows\Microsoft.NET\Framework>cd v4.* //installing ASP.NET V4.0 here.
C:\Windows\Microsoft.NET\Framework\v4.0.30319>aspnet_regiis -i

Command Prompt will Install Code and You are now Ready to Access your ASP.NET Site with Localhost.

Happy coding.

John Bhatt
Glad to Know, Free to Share.....

Vivekanandaan, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Ranjeet_8 on: 7/16/2012 [Member] [MVP] Gold | Points: 25

Refer this url
it will help you

Use aspnet_regiis.exe ( ) to register version of .NET framework you are using.

Vivekanandaan, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response