Server Error in '/' Application

來源:互聯網
上載者:User

標籤:

1,

Server Error in ‘/‘ Application. Access to the path ‘636081729995142753‘ is denied.

Description: 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 ‘636081729995142753‘ 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 base 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 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:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[UnauthorizedAccessException: Access to the path ‘636081729995142753‘ is denied.]   System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +12892983   System.IO.FileInfo.Delete() +183   ASP.global_asax.Application_Start(Object sender, EventArgs e) +283[HttpException (0x80004005): Access to the path ‘636081729995142753‘ is denied.]   System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +3985477   System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +191   System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +325   System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +407   System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +375[HttpException (0x80004005): Access to the path ‘636081729995142753‘ is denied.]   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +11524352   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +141   System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +4782309

Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1

2,

原因:出現這個問題是因為web.config沒有修改許可權導致的 解決方案:給網站目錄寫入許可權,目錄許可權配置請見下面的相關文檔。

網站目錄使用權限設定

PageAdmin目錄需如下許可權 administrators --->完全控制許可權 system --->完全控制許可權 network service (或aspnet)--->讀取、寫入、運行、修改、列出檔案夾許可權 everyone(如單獨分配使用者的,給相應使用者的許可權)--->使用者修改、運行、列出檔案夾改、讀取、寫入許可權

2.2,

http://blog.csdn.net/myflysun/article/details/17399689

Server Error in '/' Application

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.