parush / elmah

Automatically exported from code.google.com/p/elmah
0 stars 0 forks source link

Compilation error when using <elmah><errorFilter> #28

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi, 

I'm using ELMAH-1.0-BETA1a-bin on .NET 2.0 app. Using VS2005 and local 
development web server. Copied elmah.dll from bin\net2.0\release folder in 
zip archive. Followed instructions in sample web.config. When I enable 
<errorFilter> in the <elmah> section, I get the following error.

Unable to cast object of type 'System.String' to 
type 'System.Web.IHttpModule'.
[InvalidCastException: Unable to cast object of type 'System.String' to 
type 'System.Web.IHttpModule'.]
   Elmah.ErrorFilterModule.Init(HttpApplication application) +149
   System.Web.HttpApplication.InitModulesCommon() +66
   System.Web.HttpApplication.InitInternal(HttpContext context, 
HttpApplicationState state, MethodInfo[] handlers) +1006
   System.Web.HttpApplicationFactory.GetNormalApplicationInstance
(HttpContext context) +241
   System.Web.HttpApplicationFactory.GetApplicationInstance(HttpContext 
context) +114
   System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +350

I have attached a copy of the web.config. Offending lines are 13-17.

Thanks,

James

Original issue reported on code.google.com by james...@gmail.com on 3 Aug 2007 at 5:45

Attachments:

GoogleCodeExporter commented 9 years ago
This is a duplicate of issue #13 that's already been resolved. However, the 
resolution was a post 1.0 BETA 1a fix so you'll have to grab the latest sources 
from 
the repository and compile them (until the next release, of course).

Original comment by azizatif on 3 Aug 2007 at 6:52