首页 > 社会 > 正文

Access to the path 'C:\CptchnWeb\html24\h5

频道:社会     来源:网络     发布:2019-11-20 05:07:09     手机版

天使公主简谱,银河战记,国防军事频道直播

De ion: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.UnauthorizedAccessException: Access to the path 'C:\CptchnWeb\html24\h5_msgshow_m=237778.html' is denied.

ASP.NET is not authorized to access the requested resource. Consider granting access rights to the resource to the ASP.NET request identity. ASP.NET has a process identity (typically {MACHINE}\ASPNET on IIS 5 or Network Service on IIS 6 and IIS 7, and the configured application pool identity on IIS 7.5) that is used if the application is not impersonating. If the application is impersonating via identity impersonate= true / , the identity will be the anonymous user (typically IUSR_MACHINENAME) or the authenticated request user.

To grant ASP.NET access to a file, right-click the file in File Explorer, choose Properties and select the Security tab. Click Add to add the appropriate user or group. Highlight the ASP.NET account, and check the boxes for the desired access.

Source Error:


Line 55: if (!System.IO.Directory.Exists(cachefolder)) { System.IO.Directory.CreateDirectory(cachefolder); } Line 56: //保存页面内容到静态文件中 Line 57: System.IO.StreamWriter swriter = new System.IO.StreamWriter(filepath, false, System.Text.Encoding.UTF8); Line 58: swriter.Write(pagecontent); Line 59: swriter.Close();
[UnauthorizedAccessException: Access to the path C:\CptchnWeb\html24\h5_msgshow_m=237778.html is denied.] System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +217 System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) +1305 System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) +66 System.IO.StreamWriter.CreateFile(String path, Boolean append, Boolean checkHost) +73 System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize, Boolean checkHost) +124 System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding) +22 Cptchn.Web.HtmlPage _24.Render(HtmlTextWriter writer) in c:\CptchnWeb\App_Code\HtmlPage _24.cs:57 System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +57 System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100 System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1386
Version Information: Microsoft .NET work Version:4.0.30319; ASP.NET Version:4.0.30319.36480

本文地址:http://www.51tuanyan.com/shehui/gylllpmjo.html 转载请注明出处

上一篇: 7月11日亚洲380
下一篇: 国家湿地公园,感受生态美景

相关图文

热点话题

频道月排行