Wednesday, December 17, 2003 8:55 AMI have a exception handler assembly I wrote that sends error information via email to specific users and it worked fine while I developed it and used it in my application that I am developing. But once I put the application on the web server and I ran into a error that was trapped and should have gone through my exception handler I received an error which I can't diagnose.
Please give me some guidance on what I am suppose to do.
************** Exception Text **************
System.Security.SecurityException: Request for the permission of type System.Web.AspNetHostingPermission, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 failed.
at ExceptionApp.DLBExceptionHandling.ExceptionHandling.LogError(String User, String Appx, String Msg, String SrcMethod, Boolean CreateEmail)
at AUM.frmMain.frmMain_Load(Object sender, EventArgs e)
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
The state of the failed permission was:
<IPermission class="System.Web.AspNetHostingPermission, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
Sunday, January 25, 2004 9:43 AMEasy, you don't have the client setup to trust that site, you see for things like file access and what not, you don't get trusted so if you try to do these operations it will fail. You have to add the site as a trusted site and then try it out.
Check out some of the articles on this site on deployment.