开发者

ELMAH doesn't insert error logs to SQL DB on production

I have configured an SQL Server 2008 R2 db for ELMAH as described and works fine on development but not production. Both development and production connection string targets to same db, profiler shows nothing for the insert SP if I run production web site. I do not think its a SQL related problem. I have read some posts like

Elmah not working on IIS7 server

Elmah 1.2 does not log to SQL on Windows 2008 IIS7.5 Integrated mode (but works locally)

but even we have same problem, none of them helped me.

Both websites work on Windows Server 2008 R2 / .net 4.

Any ideas? TIA.

UPDATE : The only difference is my web site works integrated mode on development, and classic on on production. If I change classic to integrated it works fine.

So ELMAH doesn't 开发者_开发技巧work on classic mode?


it's probably problem with permissions to stored procedure. use following script to give execute permission to the user (from connection string in productive system)

GRANT EXECUTE ON ELMAH_GetErrorsXml TO USER_NAME
GRANT EXECUTE ON ELMAH_GetErrorXml TO USER_NAME
GRANT EXECUTE ON ELMAH_LogError TO USER_NAME
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜