And what type of logging did you choose? XmlFileErrorLog? Check permissions on the folder where you supposed to save log files. Check if dll for elmah has been copied to \bin, check again web.config configuration.
And what type of logging did you choose? XmlFileErrorLog? Check permissions on the folder where you supposed to save log files. Check if dll for elmah has been copied to \bin, check again web.config configuration.
Member
129 Points
450 Posts
Error Logging with Elmah
Apr 08, 2011 11:19 PM|bhanu2217|LINK
I am using Elmah for error logging, which works fine on the local system but on Live site it doesn't work.
In my web.config
So whenever error occurs the control goes to error.aspx page and elmah is unable to record the error.
Let me know how i can redirect to error.aspx page as well as log the error
Error
Visual Studio 2012
Sql Server 2012
-------------------------------------
www.HermesWritings.com
All-Star
35159 Points
9075 Posts
Re: Error Logging with Elmah
Apr 10, 2011 04:09 AM|smirnov|LINK
And what type of logging did you choose? XmlFileErrorLog? Check permissions on the folder where you supposed to save log files. Check if dll for elmah has been copied to \bin, check again web.config configuration.
Member
129 Points
450 Posts
Re: Error Logging with Elmah
Apr 10, 2011 04:20 AM|bhanu2217|LINK
I have choosen error file log as well as e-mail
None of them work on the live server but they both work fine on local system. Also checked the file permisison, it has full acess for log folder.
elmah dll is there in the bin folder
Visual Studio 2012
Sql Server 2012
-------------------------------------
www.HermesWritings.com
Member
129 Points
450 Posts
Re: Error Logging with Elmah
Apr 10, 2011 04:27 AM|bhanu2217|LINK
My web.config file
Visual Studio 2012
Sql Server 2012
-------------------------------------
www.HermesWritings.com
Contributor
4524 Points
1764 Posts
Re: Error Logging with Elmah
Apr 10, 2011 04:31 AM|amitpatel.it|LINK
Below is the good link for that...
http://amitpatelit.wordpress.com/2011/04/05/error-handling-mechanisms-in-asp-net-application/
Error
MCPD Enterprise and Web Application
MCTS Web, Window and Enterprise Application
All-Star
35159 Points
9075 Posts
Re: Error Logging with Elmah
Apr 10, 2011 04:47 AM|smirnov|LINK
For IIS7 in integration mode you need to add
See ELMAH documentation for more details.
Member
129 Points
450 Posts
Re: Error Logging with Elmah
Apr 10, 2011 04:58 AM|bhanu2217|LINK
still no luck. I have IIS 7 on local system and iis 7 on live server also. Local system it works fine but live server it doesn't
Visual Studio 2012
Sql Server 2012
-------------------------------------
www.HermesWritings.com
Member
129 Points
450 Posts
Re: Error Logging with Elmah
Apr 10, 2011 05:03 AM|bhanu2217|LINK
I forgot to mention. The shared hosting server i am using has blocked outgoing access on port no 80. could that cause a problem?
Visual Studio 2012
Sql Server 2012
-------------------------------------
www.HermesWritings.com
Member
129 Points
450 Posts
Re: Error Logging with Elmah
Apr 10, 2011 05:13 AM|bhanu2217|LINK
It's working now. Thanks
Visual Studio 2012
Sql Server 2012
-------------------------------------
www.HermesWritings.com