Error while access page from local host

Posted by Vivekanandaan under ASP.NET on 4/17/2012 | Points: 10 | Views : 1268 | 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..




Responses

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

Up
0
Down
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
C:\Windows\Microsoft.NET\Framework\

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.....
http://www.johnbhatt.com

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

Up
0
Down
Refer this url
it will help you

Use aspnet_regiis.exe (http://msdn.microsoft.com/en-us/library/k6h9cz8h%28VS.80%29.aspx ) 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