Click here to Skip to main content
15,905,612 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi...I have one web application..On my local pc it works fine...but when i uploaded that time it gives error like...,

**************Error*******************
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..


XML
ASP.NET to identify an incoming user.
Line 50:         -->
Line 51:     <authentication mode="Forms">
Line 52:       <forms path="/" timeout="100" protection="All"           defaultUrl="Default.aspx" />
Line 53:     </authentication>



PLZ HELP ME....
Posted
Updated 31-Dec-13 0:01am
v2

it seems like you do not give proper path when you host your application. Generally this error will occur if you are one level up when you map folder with IIS.
 
Share this answer
 
Hi Kavita,

It seems your folder donot have proper security rights to save and delete file using application.

You may need to provide security right to folder in which you save uploaded file.
 
Share this answer
 
Hi Kavita,

Please just kindly convert your folder to application, it will solve your problem. Please just go to IIS--> domain--> your folder--> right click and then convert it to application. Hope it helps
 
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