Click here to Skip to main content
15,887,083 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
This piece of code is having issues if I put this one on a sub web config. I cannot put this one on the root web config.

XML
<configuration>
    <system.web>
    <sessionState mode="InProc" timeout="10" cookieless="UseUri" ></sessionState>
    </system.web>
</configuration>


This is the error that i produce "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."


anyone knows on how can this work?

thanks
Posted
Comments
ZurdoDev 19-Mar-12 8:17am    
Have you tried doing what the error suggests? Set you sub folder as an app in IIS. Or research the <clear> option because your sub folder is inheriting the above folder.

1 solution

If i set the sub folder as app in IIS, themes are missing, If i copy the themes inside the sub folder, master pages are missing even though the master page are inside the sub folder
 
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