Server error in the "/wechat" application.

Source: Internet
Author: User
Tags stack trace

Access to the path "C:\inetpub\wwwroot3\wechat\img\qrcode\" is denied.

Server error in the "/wechat" application. access to the path "C:\inetpub\wwwroot3\wechat\img\qrcode\" is denied.


ASP. NET does not have permission to access the requested resource. Consider granting permission to access this resource to the ASP. ASP. NET has a base process identity that is used when the application does not impersonate (typically, on IIS 5, for network services on IIS 6 and IIS 7 for the configured application pool identity on IIS 7.5). If the application is impersonating by <identity impersonate= "true"/>, the identity will be the anonymous user (typically IUSR_machinename) or the authenticated requesting user.

to grant ASP. NET access to a file, right-click the file in file Explorer, choose "Properties" and select the Secur ity 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:                 if (! System.IO.Directory.Exists (path)) line:                 {
Line 62:system.io.directory.createdirectory (path);
Line:                 } line:                 string savepath = string. Format ("{0}storebook.png", path);


source file: F:\storebook\Purple\Purple.WebWeChat\Controllers\QrCodeController.cs Line: 62

Stack trace:

[UnauthorizedAccessException: Access to Path ' C:\inetpub\wwwroot3\wechat\img\qrcode\ ' is denied.   ] 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 : \storebook\purple\purple.webwechat\controllers\qrcodecontroller.cs:62 Lambda_method (Closure, ControllerBase, Object[]) +62 System.Web.Mvc.ActionMethodDispatcher.Execute (Controllerbase Controller, object[] parameters) +14 Syste   M.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

Version information: Microsoft. NET Framework Version: 4.0.30319; ASP. NET version: 4.0.30319.18055

The server error in the "/wechat" application.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.