PageAdmin网站内容管理系统(CMS)交流论坛

注册

 

QQ登录

只需一步,快速开始

发新话题 回复该主题

网站搬到空间商出现报错 [复制链接]

1#
Server Error in '/' Application. 拒绝访问。 (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)) 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: 拒绝访问。 (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))

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) that is used if the application is not impersonating. If the application is impersonating via <identity impers/>, 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: 拒绝访问。 (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))][FileLoadException: Could not load file or assembly 'System.Web.RegularExpressions, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. 拒绝访问。]   System.Web.Handlers.AssemblyResourceLoader..cctor() +0[TypeInitializationException: The type initializer for 'System.Web.Handlers.AssemblyResourceLoader' threw an exception.]   System.Web.Handlers.AssemblyResourceLoader.IsValidWebResourceRequest(HttpContext context) +0   System.Web.Security.FormsAuthenticationModule.OnEnter(Object source, EventArgs eventArgs) +3396668   System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +92   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64

Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42
分享 转发
TOP
2#

上传的目录有没正确?
现在有没有访问权限,如果在本地正常,也可以让空间商帮忙配置一下
TOP
3#

目录是正确的,本地正常,传上去后就这样了
TOP
4#

在哪买的空间问一下他们的技术支持
TOP
发新话题 回复该主题