HTTPMODULE ERROR WEB.CONFIG

J

Jose Fernandez

HI
first of all, excuse me for my english. And Thank in advance for even read
my post.
I have a problem that is driving me insane.
I have an application (JUCAR) which use HttpModule and i have declared of
course into the Webconfig. This application runs perfect. So, i created
another application (Accreditation), that runs perfect too inside of it as a
virtual directory that does not use HttpModule. Now i am getting this error.
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: File or assembly name Jucar.Components, or one of its
dependencies, was not found.

Source Error:

Line 37: <system.web>
Line 38: <httpModules>
Line 39: <add name="SiteHttpModule" type="Jucar.SiteHttpModule,
Jucar.Components" />
Line 40: </httpModules>
Line 41:

Source File: F:\sitios\jucar\web.config Line: 39

Assembly Load Trace: The following information can be helpful to determine
why the assembly 'Jucar.Components' could not be loaded.

=== Pre-bind state information ===
LOG: DisplayName = Jucar.Components
(Partial)
LOG: Appbase = file:///F:/sitios/Accreditation
LOG: Initial PrivatePath = bin
Calling assembly : (Unknown).
===

LOG: Policy not being applied to reference at this time (private, custom,
partial, or location-based assembly bind).
LOG: Post-policy reference: Jucar.Components
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/accreditation/ab2072eb/e93c0b3c/Jucar.Components.DLL.
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/accreditation/ab2072eb/e93c0b3c/Jucar.Components/Jucar.Components.DLL.
LOG: Attempting download of new URL
file:///F:/sitios/Accreditation/bin/Jucar.Components.DLL.
LOG: Attempting download of new URL
file:///F:/sitios/Accreditation/bin/Jucar.Components/Jucar.Components.DLL.
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/accreditation/ab2072eb/e93c0b3c/Jucar.Components.EXE.
LOG: Attempting download of new URL
file:///C:/WINDOWS/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/accreditation/ab2072eb/e93c0b3c/Jucar.Components/Jucar.Components.EXE.
LOG: Attempting download of new URL
file:///F:/sitios/Accreditation/bin/Jucar.Components.EXE.
LOG: Attempting download of new URL
file:///F:/sitios/Accreditation/bin/Jucar.Components/Jucar.Components.EXE.
 
J

John Timney \(MVP\)

I would hazard a guess that your virtual directory (Accreditation) resides
under your JUCAR application, with its own BIN directory etc. If this is
the case your Accreditation application will be looking for a referenced
module which does not exsist within its own bin directory as it instead
resides within JUCAR as the root application, and thus is within scope.
Modules can only be configured in the root web.config in your application,
so you probably cant even derefernce it using httpModules remove.

<httpModules>
<remove name="AuthenticationModule" />
</httpModules>

Make sure they are two entirely different applications, or try adding a
remove element to a sub level web.config.

Regards

John Timney (MVP)
 
J

Jose Fernandez

YES
THAT WAS THE SOLUTION> THANK YOU SO MUCH>

John Timney (MVP) said:
I would hazard a guess that your virtual directory (Accreditation) resides
under your JUCAR application, with its own BIN directory etc. If this is
the case your Accreditation application will be looking for a referenced
module which does not exsist within its own bin directory as it instead
resides within JUCAR as the root application, and thus is within scope.
Modules can only be configured in the root web.config in your application,
so you probably cant even derefernce it using httpModules remove.

<httpModules>
<remove name="AuthenticationModule" />
</httpModules>

Make sure they are two entirely different applications, or try adding a
remove element to a sub level web.config.

Regards

John Timney (MVP)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top