Could not load file or assembly 'Elmah' or one of its dependencies

1,214 views
Skip to first unread message

Jim

unread,
May 9, 2008, 10:32:20 AM5/9/08
to ELMAH
So, I copied the .dll, .xml, .pbd files in to my bin folder. Added a
reference to the .dll file and I configured the web.config
appropriately.


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 'Elmah' or one
of its dependencies. The system cannot find the file specified. (C:
\Documents and Settings\kielyj\My Documents\Visual Studio 2005\Projects
\TEAM\Site\web.config line 425)

Source Error:


Line 423: <httpModules>
Line 424: <add name="RadUploadModule"
type="Telerik.WebControls.RadUploadHttpModule, RadUpload.Net2"/>
Line 425: <add name="ErrorLog" type="Elmah.ErrorLogModule, Elmah"/
>
Line 426:
Line 427: <!--

Any ideas?

Jim

unread,
May 19, 2008, 7:40:39 AM5/19/08
to ELMAH
Wow, no replies. Nobody has ever had this issue or even has a clue to
what this could be?

James_2JS

unread,
May 19, 2008, 7:29:24 PM5/19/08
to ELMAH
Hi Jim,

On the surface, it looks like pretty standard stuff and shouldn't
cause any problems.

1) What version of Visual Studio are you using?
2) What version of Elmah are you using?

Also, have you tried creating a test "bare bones" solution??
Take an empty website, add in the config sections, the http handler,
the http module and the elmah section.
Use the MemoryErrorLog to keep things as simple as possible.
View elmah.axd/test which will generate an exception which will then
be logged
Then view elmah.axd to see that it has been logged correctly.

If this works, we need to see what's going on in your solution!!!

Good luck,

James

Atif Aziz

unread,
May 21, 2008, 4:43:55 PM5/21/08
to el...@googlegroups.com
>>
Parser Error Message: Could not load file or assembly 'Elmah' or one
of its dependencies. The system cannot find the file specified.
>>

Try using Assembly Binding Log Viewer (Fuslogvw.exe) to find out why the assembly is not being found and which locations were attempted by .NET. See http://msdn.microsoft.com/en-us/library/e74a18c4.aspx for more information.

Reply all
Reply to author
Forward
0 new messages