Rank: Newbie Groups: Member
Joined: 9/12/2007 Posts: 2
|
Hi, I added the below which fixed my root application error that uses aspxlab menu control:
<httpModules> <add name="AspxLabRuntime" type="AspxLab.WebControls.Runtime,AspxLab.WebControls"/> </httpModules>
But in a subdirectory I have another .NET web application NOT using the aspxlab control but it is giving the error (below) as if it was connected to the root app, but it is not. How do I fix that?
Server Error in '/Main' Application.
Configuration Error Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: Could not load file or assembly 'AspxLab.WebControls' or one of its dependencies. The system cannot find the file specified
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
The reason is because ASP.NET inherits web.config form upper level directories. You can try to add a <remove/> line into your subdirectory's web.config:
<remove name="AspxLabRuntime" />
Of course, you can also put our DLL into that directory. It will get loaded but it shouldn't affect anything else.
Thanks
|
Rank: Newbie Groups: Member
Joined: 9/12/2007 Posts: 2
|
Thanks! Adding the <remove> line to the subdir web.config did the trick.
|