Hi
I have recently added a handler in my global.asax to pick up on application errors. I am then email the error message. Recently the site seems to have died and I just get back loads of FileIOPermissions errors when I try to open any page.
I have included the error at the bottom of this post. Does anyone know what this means and how I might resolve it?
Note: I did have a line in my global.asax to redirect the user to an error page after emailing the error. However this was happening quite a bit even when the page loads ok. I have now taken out that line and uploaded the new asax file. It's the same as before but it now doesn't redirect. However, I don't have the ability to rebuild the solution at the moment as I am away from my development machine. Would this have any effect? Do I need to rebuild the app for chages in the asax file to take effect?
Regards, Carl Gilbert
Error Caught in Application_Error event\n
Error in: http://bwbfc.co.uk/bb/default.aspx\n
Error Message:Request for the permission of type 'System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.\n\n
REMOTE_ADDR: 217.37.196.9\n
HTTP_ACCEPT_LANGUAGE: en-gb\n
HTTP_REFERER: \n
HTTP_USER_AGENT: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; InfoPath.1; .NET CLR 2.0.50727; WinFX RunTime 3.0.50727)\n
HTTP_COOKIE: \n\n\n
Stack Trace: at System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark& stackMark, Boolean isPermSet) at System.Security.CodeAccessPermission.Demand() at System.IO.Path.GetFullPath(String path) at System.Web.Util.FileUtil.IsSuspiciousPhysicalPath(String physicalPath, Boolean& pathTooLong) at System.Web.Util.FileUtil.IsSuspiciousPhysicalPath(String physicalPath) at System.Web.CachedPathData.GetConfigPathData(String configPath) at System.Web.CachedPathData.GetConfigPathData(String configPath) at System.Web.CachedPathData.GetConfigPathData(String configPath) at System.Web.CachedPathData.GetVirtualPathData(VirtualPath virtualPath, Boolean permitPathsOutsideApp) at System.Web.HttpContext.GetPathData(VirtualPath path) at System.Web.Security.UrlAuthorizationModule.IsUserAllowedToPath(HttpContext context, VirtualPath virtualPath) at System.Web.UI.Util.IsUserAllowedToPath(HttpContext context, VirtualPath virtualPath) at System.Web.SiteMapProvider.IsAccessibleToUser(HttpContext context, SiteMapNode node) at System.Web.SiteMapNode.IsAccessibleToUser(HttpContext context) at System.Web.StaticSiteMapProvider.GetChildNodes(SiteMapNode node) at System.Web.SiteMapNode.get_ChildNodes() at System.Web.UI.WebControls.SiteMapDataSource.GetNodes() at System.Web.UI.WebControls.SiteMapDataSource.GetPathNodeCollection(String viewPath) at System.Web.UI.WebControls.SiteMapDataSource.GetView(String viewName) at System.Web.UI.WebControls.SiteMapDataSource.System.Web.UI.IDataSource.GetView(String viewName) at System.Web.UI.WebControls.Repeater.ConnectToDataSourceView() at System.Web.UI.WebControls.Repeater.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest() at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) at System.Web.UI.Page.ProcessRequest(HttpContext context) at ASP.default_aspx.ProcessRequest(HttpContext context) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)