Click here to Skip to main content
15,899,937 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have put my web application on remote site in side wwwroot folder,I want to put my folder directly inside wwwroot,But it is showing error in web.config file.But If i will put one one file to web.config then it is working.

But I want to put my folder so the error is:-

XML
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 27:        <customErrors mode="Off" defaultRedirect="showError.aspx">
Line 28:        </customErrors>
Line 29:        <sessionState timeout="20" mode="InProc"/>
Line 30:        <compilation defaultLanguage="c#" debug="true" targetFramework="4.0">
Line 31:            <!--<assemblies>-->




Please Help me what I will do?

Thanks.
Posted
Comments
uspatel 2-Dec-11 1:06am    
is your site run on localhost successfully?

Take a look at the following discussion, Hope it would help you resolve the issue
section registered as allowDefinition='MachineToApplication' beyond application level
[^]
 
Share this answer
 
This error may occurs when you have multile web.config file
If you have multiple web.config file then you need to make some changes as in article
Working with more than one Web.config file
 
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