Click here to Skip to main content
15,901,035 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
My project is run local. When I upload the file to online. The error occured on the web config file.The Error is
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 50:       <authentication mode="Forms">
Line 51:     <forms defaultUrl="~/default.aspx" loginUrl="~/default.aspx" slidingExpiration="true" timeout="600></forms>
Line 52:     </authentication>

</pre>

I upload my file in httpdocs. I create subdirectory and then I upload my folder.
What is the error. Please help me...
Posted
Updated 25-Oct-12 20:38pm
v4

1 solution

Are you sure that you have followed the same project structure in your webserver.
check these two points.

1. You have put your code in WWWRoot Folder.
2. You have copied the correct folder structure.
3. Your webserver has same or above .net framework wrt your project.
 
Share this answer
 
Comments
devausha 26-Oct-12 2:54am    
I upload my Project folder into httpdocs
[no name] 26-Oct-12 3:00am    
In that case .. check your project structure, remove unneccessary tags from your web.config

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