I have developed a website using asp.net in Visual Studio 2010. I runs well in my local pc but when I deployed this project it gives me following error:
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: <customErrors mode="Off"/>
Line 12: <compilation debug="true"/>
Line 13: <authentication mode="None"/> Line 14: <membership>
Line 15: <providers>
I think this issue was caused by the configuration at IIS. Can you try to right click your application folder at IIS Manager then choose "Convert to Application" option.
No matter how much time you spend on coding. Wish you happy coding.
My Technical Blog
mhdcpds
Member
30 Points
28 Posts
Top Urgent ***Web Cofig Problem*** Top Urgent
Nov 28, 2012 02:41 AM|LINK
Hello experts
I have developed a website using asp.net in Visual Studio 2010. I runs well in my local pc but when I deployed this project it gives me following error:
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: <customErrors mode="Off"/> Line 12: <compilation debug="true"/> Line 13: <authentication mode="None"/> Line 14: <membership> Line 15: <providers>
<div class="expandable">Show Additional Configuration Errors:</div>Source File: D:\Sites\mahtelecom.com\public_html\backadmin\web.config Line: 13
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272
I searched a lot in net for the solution of this error but failed to fix the problem.
Can anybody pls suggest me the solution.
You can view the error message by this link : http://mahtelecom.com/backadmin
N:B: I used mysql as the database of this project.
shree_ars
Participant
1395 Points
776 Posts
Re: Top Urgent ***Web Cofig Problem*** Top Urgent
Nov 28, 2012 03:23 AM|LINK
Move to your IIS and under ur project virtual directory.. check the authentication mode that is configured.
Its states that the authentication mode configured in your application web.config and in IIS doesnt match.
So check ur IIS and make your authentication mode to none or internal user.
CruzerB
Contributor
5399 Points
1098 Posts
Re: Top Urgent ***Web Cofig Problem*** Top Urgent
Nov 28, 2012 03:26 AM|LINK
Hi,
I think this issue was caused by the configuration at IIS. Can you try to right click your application folder at IIS Manager then choose "Convert to Application" option.
My Technical Blog
cnranasinghe
Star
8885 Points
1798 Posts
Re: Top Urgent ***Web Cofig Problem*** Top Urgent
Jan 15, 2013 01:19 AM|LINK
Try switching the application pool to different one.