Click here to Skip to main content
15,945,603 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello Coders,
I have a small web site prepared with ASP.Net 4 (ASP.Net & VB). If I run it from the IDE, It runs without a problem. When I try to deploy it on my local IIS Server 7, this is the message I receive:
XML
Server Error in '/' Application.
--------------------------------------------------------------------------------

Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level.  This error can be caused by a virtual directory not being configured as an application in IIS.

Source Error:


Line 11:    <system.web>
Line 12:        <compilation debug="true" strict="false" explicit="true" targetFramework="4.0"/>
Line 13:        <authentication mode="Windows">
Line 14:    <forms loginUrl="~/Account/Login.aspx" timeout="2880" />
Line 15:   </authentication>


Source File: D:\inetpub\wwwroot\estaids\web.config    Line: 13



Show Additional Configuration Errors:


It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level.  This error can be caused by a virtual directory not being configured as an application in IIS. (D:\inetpub\wwwroot\estaids\web.config line 16)
It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level.  This error can be caused by a virtual directory not being configured as an application in IIS. (D:\inetpub\wwwroot\estaids\web.config line 22)
It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level.  This error can be caused by a virtual directory not being configured as an application in IIS. (D:\inetpub\wwwroot\estaids\web.config line 28)




--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.4016; ASP.NET Version:2.0.50727.4016



Can any one please help?
Thanks and I am grateful to this wonderful community!
Sylvester
Posted
Comments
AmitGajjar 17-Aug-12 11:00am    
if you can see the last line "Version Information: Microsoft .NET Framework Version:2.0.50727.4016; ASP.NET Version:2.0.50727.4016" and your application is on Framework 4. so probably you have not configured your IIS for Framework 4.

Try to change your application pool to 4.0 and try again to access your application.

please see this link for your reference.

Deploying ASP.NET Websites on IIS 7.0 [^]
 
Share this answer
 
Yes, because your website is not deployed correctly, that is why you are getting this error.
Refer the links below:
Steps of quick deployment of Asp.net applications into IIS from Visual Studio 2010[^]
Deploying a Web Application Project Using a Web Deployment Package[^]
Here[^] is a pdf which demonstrate the asp.net application deployment.

And here[^] is the description which you are getting.


--Amit
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900