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

首页 » PageAdmin使用区 » 安装及使用交流 » 请问安装在国外的空间出现Server Error in '/' Application.怎么解决?
Buyeah - 2009/9/2 19:27:00
Server Error in '/' Application.             Access to the path 'D:\inetpub\vhosts\wdemo.tongsite.com\httpdocs\web.Config' is denied.                          Description: Anunhandled exception occurred during the execution of the current webrequest. Please review the stack trace for more information about theerror and where it originated in the code.

             Exception Details: System.UnauthorizedAccessException: Access to the path 'D:\inetpub\vhosts\wdemo.tongsite.com\httpdocs\web.Config' is denied.

ASP.NET is not authorized to access the requested resource.Consider granting access rights to the resource to the ASP.NET requestidentity. ASP.NET has a base process identity (typically{MACHINE}\ASPNET on IIS 5 or Network Service on IIS 6) that is used ifthe application is not impersonating. If the application isimpersonating via <identity impers/>, the identitywill be the anonymous user (typically IUSR_MACHINENAME) or theauthenticated request user.

To grant ASP.NET access to a file, right-click the file inExplorer, 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 thecurrent web request. Information regarding the origin and location ofthe exception can be identified using the exception stack trace below.                  
            
            Stack Trace:

            
                      [UnauthorizedAccessException: Access to the path 'D:\inetpub\vhosts\wdemo.tongsite.com\httpdocs\web.Config' is denied.]
   System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) +7714255
   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) +1162
   System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share) +66
   System.Xml.XmlTextWriter..ctor(String filename, Encoding encoding) +37
   System.Xml.XmlDocument.Save(String filename) +77
   PageAdmin.Install.Update_Config() +733
   PageAdmin.Install.Next_2(Object src, EventArgs e) +13
   System.Web.UI.WebControls.Button.OnClick(EventArgs e) +111
   System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +110
   System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565
                  
            
                        Version Information: Microsoft .NET Framework Version:2.0.50727.3082; ASP.NET Version:2.0.50727.3082            
apple - 2009/9/2 19:37:00
目录没有写权限导致的,找主机商设置一下就可以了
http://bbs.pageadmin.net/showtopic-1978.aspx
Buyeah - 2009/9/2 19:38:00
安装到第第二步出现的.

win2003的主机应该没有权限问题的
Buyeah - 2009/9/2 19:46:00
Server Error in '/' Application.             Validationof viewstate MAC failed. If this application is hosted by a Web Farm orcluster, ensure that <machineKey> configuration specifies thesame validationKey and validation algorithm. AutoGenerate cannot beused in a cluster.                          Description: Anunhandled exception occurred during the execution of the current webrequest. Please review the stack trace for more information about theerror and where it originated in the code.

             Exception Details: System.Web.HttpException:Validation of viewstate MAC failed. If this application is hosted by aWeb Farm or cluster, ensure that <machineKey> configurationspecifies the same validationKey and validation algorithm. AutoGeneratecannot be used in a cluster.

            Source Error:

            
                      The source code that generated this unhandled exception can only beshown when compiled in debug mode. To enable this, please follow one ofthe below steps, then request the URL:

1. Add a "Debug=true" directive at the top of the file that generated the error. Example:

   <%@ Page Language="C#" Debug="true" %>

or:

2) Add the following section to the configuration file of your application:

<configuration>
    <system.web>
        <compilation debug="true"/>
    </system.web>
</configuration>

Note that this second technique will cause all files within a givenapplication to be compiled in debug mode. The first technique willcause only that particular file to be compiled in debug mode.

Important:Running applications in debug mode does incur a memory/performanceoverhead. You should make sure that an application has debuggingdisabled before deploying into production scenario.                  
            
            Stack Trace:

            
                      [HttpException (0x80004005): Unable to validate data.]
   System.Web.Configuration.MachineKeySection.GetDecodedData(Byte[] buf, Byte[] modifier, Int32 start, Int32 length, Int32& dataLength) +289
   System.Web.UI.ObjectStateFormatter.Deserialize(String inputString) +140

[ViewStateException: Invalid viewstate.
        Client IP: 113.67.9.162
        Port: 57142
        User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; zh-CN; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2
        ViewState: /wEPDwUKMTU3NzM1MjM2Mw9kFgICAQ9kFgQCAQ8PFgIeB1Zpc2libGVoZGQCAw8PFgIfAGdkFgQCAQ8QDxYCHgdDaGVja2VkZ2RkZGQCAw8QDxYCHwFoZGRkZBgBBR5fX0NvbnRyb2xzUmVxdWlyZVBvc3RCYWNrS2V5X18WAwUHUmFkaW9fMQUHUmFkaW9fMgUHUmFkaW9fMqOlx79TmMdhO+P3v27fmvUju3Sd
        Referer: http://wdemo.tongsite.com/install/Index.aspx?setup=2
        Path: /install/Index.aspx]

[HttpException (0x80004005): Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machineKey> configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster.]
   System.Web.UI.ViewStateException.ThrowError(Exception inner, String persistedState, String errorPageMessage, Boolean macValidationError) +106
   System.Web.UI.ViewStateException.ThrowMacValidationError(Exception inner, String persistedState) +14
   System.Web.UI.ObjectStateFormatter.Deserialize(String inputString) +242
   System.Web.UI.ObjectStateFormatter.System.Web.UI.IStateFormatter.Deserialize(String serializedState) +4
   System.Web.UI.Util.DeserializeWithAssert(IStateFormatter formatter, String serializedState) +37
   System.Web.UI.HiddenFieldPageStatePersister.Load() +207
   System.Web.UI.Page.LoadPageStateFromPersistenceMedium() +105
   System.Web.UI.Page.LoadAllState() +43
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +6785
   System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +242
   System.Web.UI.Page.ProcessRequest() +80
   System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +21
   System.Web.UI.Page.ProcessRequest(HttpContext context) +49
   ASP.install_index_aspx.ProcessRequest(HttpContext context) +4
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +181
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75
                  
            
            
            Version Information: Microsoft .NET Framework Version:2.0.50727.3082; ASP.NET Version:2.0.50727.3082            
Buyeah - 2009/9/2 19:51:00
Server Error in '/' Application.             Operation must use an updateable query.                          Description: Anunhandled exception occurred during the execution of the current webrequest. Please review the stack trace for more information about theerror and where it originated in the code.

             Exception Details: System.Data.OleDb.OleDbException: Operation must use an updateable query.

            Source Error:

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

            
                      [OleDbException (0x80004005): Operation must use an updateable query.]
   System.Data.OleDb.OleDbCommand.ExecuteCommandTextErrorHandling(OleDbHResult hr) +1003520
   System.Data.OleDb.OleDbCommand.ExecuteCommandTextForSingleResult(tagDBPARAMS dbParams, Object& executeResult) +255
   System.Data.OleDb.OleDbCommand.ExecuteCommandText(Object& executeResult) +188
   System.Data.OleDb.OleDbCommand.ExecuteCommand(CommandBehavior behavior, Object& executeResult) +58
   System.Data.OleDb.OleDbCommand.ExecuteReaderInternal(CommandBehavior behavior, String method) +161
   System.Data.OleDb.OleDbCommand.ExecuteNonQuery() +113
   PageAdmin.Install.Update_Login() +268
   PageAdmin.Install.Next_3(Object src, EventArgs e) +21
   System.Web.UI.WebControls.Button.OnClick(EventArgs e) +111
   System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +110
   System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565
                  
            
                        Version Information: Microsoft .NET Framework Version:2.0.50727.3082; ASP.NET Version:2.0.50727.3082            
shengge - 2009/9/2 19:57:00
Operation must use an updateable query

翻译就是:操作必须是一个可更新的查询,数据库写不进去就出这个错误,直接给httpdocs整个目录加个写权限就完事了
Buyeah - 2009/9/2 20:13:00
Server Error in '/' Application.             Validationof viewstate MAC failed. If this application is hosted by a Web Farm orcluster, ensure that <machineKey> configuration specifies thesame validationKey and validation algorithm. AutoGenerate cannot beused in a cluster.                          Description: Anunhandled exception occurred during the execution of the current webrequest. Please review the stack trace for more information about theerror and where it originated in the code.

             Exception Details: System.Web.HttpException:Validation of viewstate MAC failed. If this application is hosted by aWeb Farm or cluster, ensure that <machineKey> configurationspecifies the same validationKey and validation algorithm. AutoGeneratecannot be used in a cluster.

            Source Error:

            
                      The source code that generated this unhandled exception can only beshown when compiled in debug mode. To enable this, please follow one ofthe below steps, then request the URL:

1. Add a "Debug=true" directive at the top of the file that generated the error. Example:

   <%@ Page Language="C#" Debug="true" %>

or:

2) Add the following section to the configuration file of your application:

<configuration>
    <system.web>
        <compilation debug="true"/>
    </system.web>
</configuration>

Note that this second technique will cause all files within a givenapplication to be compiled in debug mode. The first technique willcause only that particular file to be compiled in debug mode.

Important:Running applications in debug mode does incur a memory/performanceoverhead. You should make sure that an application has debuggingdisabled before deploying into production scenario.                  
            
            Stack Trace:

            
                      [HttpException (0x80004005): Unable to validate data.]
   System.Web.Configuration.MachineKeySection.GetDecodedData(Byte[] buf, Byte[] modifier, Int32 start, Int32 length, Int32& dataLength) +289
   System.Web.UI.ObjectStateFormatter.Deserialize(String inputString) +140

[ViewStateException: Invalid viewstate.
        Client IP: 113.67.9.162
        Port: 57367
        User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; zh-CN; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2
        ViewState: /wEPDwULLTExOTA3MzI5MDMPFgIeBmNvbnN0cgVwUHJvdmlkZXI9TWljcm9zb2Z0LkpldC5PTEVEQi40LjA7RGF0YSBTb3VyY2U9RDpcaW5ldHB1Ylx2aG9zdHNcd2RlbW8udG9uZ3NpdGUuY29tXGh0dHBkb2NzXGRhdGFiYXNlXGRhdGEyMDA5Lm1kYhYCAgIPZBYEAgEPEA8WAh4HRW5hYmxlZGhkZBYBZmQCBQ8QZBAVDhvor7fpgInmi6nkuIDkuKrpo47moLzmqKHmnb8EZGl5NgdzdHlsZTAxB3N0eWxlMDIHc3R5bGUwMwdzdHlsZTA0B3N0eWxlMDUHc3R5bGUwNgdzdHlsZTA3B3N0eWxlMDgHc3R5bGUwOQdzdHlsZTEwB3N0eWxlMTEHc3R5bGUxMhUOAA4vdGVtcGxhdGUvZGl5NhEvdGVtcGxhdGUvc3R5bGUwMREvdGVtcGxhdGUvc3R5bGUwMhEvdGVtcGxhdGUvc3R5bGUwMxEvdGVtcGxhdGUvc3R5bGUwNBEvdGVtcGxhdGUvc3R5bGUwNREvdGVtcGxhdGUvc3R5bGUwNhEvdGVtcGxhdGUvc3R5bGUwNxEvdGVtcGxhdGUvc3R5bGUwOBEvdGVtcGxhdGUvc3R5bGUwOREvdGVtcGxhdGUvc3R5bGUxMBEvdGVtcGxhdGUvc3R5bGUxMREvdGVtcGxhdGUvc3R5bGUxMhQrAw5nZ2dnZ2dnZ2dnZ2dnZ2RkGAEFHl9fQ29udHJvbHNSZXF1aXJlUG9zdEJhY2tLZXlfXxYDBQ13el9sb2dvX3NpdGUxBQ13el9sb2dvX3NpdGUyBQ13el9sb2dvX3NpdGUySJaG...]

[HttpException (0x80004005): Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machineKey> configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster.]
   System.Web.UI.ViewStateException.ThrowError(Exception inner, String persistedState, String errorPageMessage, Boolean macValidationError) +106
   System.Web.UI.ViewStateException.ThrowMacValidationError(Exception inner, String persistedState) +14
   System.Web.UI.ObjectStateFormatter.Deserialize(String inputString) +242
   System.Web.UI.ObjectStateFormatter.System.Web.UI.IStateFormatter.Deserialize(String serializedState) +4
   System.Web.UI.Util.DeserializeWithAssert(IStateFormatter formatter, String serializedState) +37
   System.Web.UI.HiddenFieldPageStatePersister.Load() +207
   System.Web.UI.Page.LoadPageStateFromPersistenceMedium() +105
   System.Web.UI.Page.LoadAllState() +43
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +6785
   System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +242
   System.Web.UI.Page.ProcessRequest() +80
   System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +21
   System.Web.UI.Page.ProcessRequest(HttpContext context) +49
   ASP.master_set_1_aspx.ProcessRequest(HttpContext context) +4
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +181
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75
                  
            
            
            Version Information: Microsoft .NET Framework Version:2.0.50727.3082; ASP.NET Version:2.0.50727.3082
1
查看完整版本: 请问安装在国外的空间出现Server Error in '/' Application.怎么解决?