Click here to Skip to main content
15,891,905 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
I am making a project. In Which I added A Forum Also But in a directory.

forum Link :

JumpyForum: Inspired by Code Project Forum / Discussion / Message board[^]

Forum is working fine when it is alone.

But when i put it in my project It shows 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.
E:\PROJECTS\Website1\Forum\Web.config 50


I am Using two web.config files one in my Project and anoter one in Forum directory. I searched in google and erased authorization , session , and authentication from Forum directory's web.config then i found a new error


The type or namespace name 'clsDataAccess' could not be found (are you missing a using directive or an assembly reference?)



Please Help me........!!!
Posted
Comments
Tech Code Freak 25-Jan-12 2:32am    
5'ed!

1 solution

You need to make the forum folder an application in IIS. Your web.configs are conflicting. There is also a <remove> tag you can try using <clear>. Search google or you can view http://aspdotnetfaq.com/Faq/how-to-disable-web-config-inheritance-for-child-applications-in-subfolders-in-asp-net.aspx[^]
 
Share this answer
 
Comments
Pr!y@ 24-Jan-12 16:48pm    
Thanka Man :)
Tech Code Freak 25-Jan-12 2:32am    
5up!

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