zoukankan      html  css  js  c++  java
  • “/wechat”应用程序中的服务器错误。

    对路径“C:inetpubwwwroot3wechatimgqrcode”的访问被拒绝。

    “/wechat”应用程序中的服务器错误。


    对路径“C:inetpubwwwroot3wechatimgqrcode”的访问被拒绝。

    说明: 执行当前 Web 请求期间,出现未经处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。

    异常详细信息: System.UnauthorizedAccessException: 对路径“C:inetpubwwwroot3wechatimgqrcode”的访问被拒绝。

    ASP.NET 无权访问所请求的资源。请考虑对 ASP.NET 请求标识授予访问此资源的权限。ASP.NET 有一个在应用程序没有模拟时使用的基进程标识(通常,在 IIS 5 上为 {MACHINE}ASPNET,在 IIS 6 和 IIS 7 上为网络服务,在 IIS 7.5 上为配置的应用程序池标识)。如果应用程序正在通过 <identity impersonate="true"/> 模拟,则标识将为匿名用户(通常为 IUSR_MACHINENAME)或经过身份验证的请求用户。

    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.

    源错误:

    行 60:                 if (!System.IO.Directory.Exists(path))
    行 61:                 {
    
    行 62: System.IO.Directory.CreateDirectory(path);
    行 63:                 }
    行 64:                 string savePath = string.Format("{0}storebook.png", path);


    源文件: F:storebookPurplePurple.WebWeChatControllersQrCodeController.cs    行: 62

    堆栈跟踪:

    [UnauthorizedAccessException: 对路径“C:inetpubwwwroot3wechatimgqrcode”的访问被拒绝。]
       System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +10797126
       System.IO.Directory.InternalCreateDirectory(String fullPath, String path, Object dirSecurityObj, Boolean checkHost) +10589134
       System.IO.Directory.InternalCreateDirectoryHelper(String path, Boolean checkHost) +136
       System.IO.Directory.CreateDirectory(String path) +33
       Purple.WebWeChat.Controllers.QrCodeController.Storebook() in F:storebookPurplePurple.WebWeChatControllersQrCodeController.cs:62
       lambda_method(Closure , ControllerBase , Object[] ) +62
       System.Web.Mvc.ActionMethodDispatcher.Execute(ControllerBase controller, Object[] parameters) +14
       System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters) +205
       System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters) +27
       System.Web.Mvc.<>c__DisplayClassd.<InvokeActionMethodWithFilters>b__a() +56
       System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodFilter(IActionFilter filter, ActionExecutingContext preContext, Func`1 continuation) +256
       System.Web.Mvc.<>c__DisplayClassf.<InvokeActionMethodWithFilters>b__c() +22
       System.Web.Mvc.ControllerActionInvoker.InvokeActionMethodWithFilters(ControllerContext controllerContext, IList`1 filters, ActionDescriptor actionDescriptor, IDictionary`2 parameters) +190
       System.Web.Mvc.ControllerActionInvoker.InvokeAction(ControllerContext controllerContext, String actionName) +324
       System.Web.Mvc.Controller.ExecuteCore() +105
       System.Web.Mvc.ControllerBase.Execute(RequestContext requestContext) +42
       System.Web.Mvc.ControllerBase.System.Web.Mvc.IController.Execute(RequestContext requestContext) +10
       System.Web.Mvc.<>c__DisplayClass8.<BeginProcessRequest>b__4() +31
       System.Web.Mvc.Async.<>c__DisplayClass1.<MakeVoidDelegate>b__0() +19
       System.Web.Mvc.Async.<>c__DisplayClass8`1.<BeginSynchronous>b__7(IAsyncResult _) +10
       System.Web.Mvc.Async.WrappedAsyncResult`1.End() +55
       System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +43
       System.Web.Mvc.MvcHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result) +9
       System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +9628972
       System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155
    

     


    版本信息: Microsoft .NET Framework 版本:4.0.30319; ASP.NET 版本:4.0.30319.18055

  • 相关阅读:
    插入排序
    第七章:Python高级编程-元类编程
    第五章:Python高级编程-深入Python的dict和set
    Pycharm 2018.2.1最新版破解到2099年图解教程
    IDEA 2018.2.5最新版破解到2100年图解教程
    python 3编写贴吧图片下载软件(超简单)
    python3.7 打包成exe程序(只需两行命令)
    SSM框架主要几个注解的位置
    Intellij IDEA导入eclipse项目配置jdk、tomcat到浏览器正常访问
    eclipse导入新项目配置jdk、tomcat到浏览器正常访问
  • 原文地址:https://www.cnblogs.com/ylbtech/p/5123489.html
Copyright © 2011-2022 走看看