Click here to Skip to main content
15,884,099 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi All,

I have .Net 4.0 application deployed to QA Windows 2008 R2 server. On this server when the code tries to log an exception using ExceptionManager.Publish(ex) it fails. Instead the only exception that gets logged is "An unhandled security exception has occurred." It almost seems like the application Id does not have access to log exception to Windows log. The code works in other environments but fails in QA. Any idea what permission I am missing? I tried raising and logging a simple exception below and instead of logging this it logged Security exception stated above.

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Try
Throw New Exception("Test Error")
Catch ex As Exception
ExceptionManager.Publish(ex)
End Try
End Sub

Thank you,
AJ
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900