Welcome Guest Search | Active Topics | Sign In | Register

error in subdirectory, now Options
Python
Posted: Wednesday, September 12, 2007 9:59:24 PM
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
eo_support
Posted: Thursday, September 13, 2007 6:16:00 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,217
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
Python
Posted: Thursday, September 13, 2007 2:29:49 PM
Rank: Newbie
Groups: Member

Joined: 9/12/2007
Posts: 2
Thanks! Adding the <remove> line to the subdir web.config did the trick.


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.