Click here to Skip to main content
15,508,200 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello friends,

In my web site i have created a CMS folder in which i have saved all CMS pages for my web site.

I have my web.config in my parent folder now i want some different settings for my CMS pages and these settings should be applicable for only CMS pages and not to other pages so, i have created one new web.config file in my CMS folder but when i compile the project it gives me the following error: "It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. "

My question is
1) Can i have two web.config files in my web site??
2) Is there any other way to implement above functionality??
Posted

 
Share this answer
 
For your error, refer http://forums.iis.net/p/1148147/1864289.aspx[^]

It's fine to use multiple web.config, 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