产品使用及交流论坛

首页 » 产品使用交流区 » 安装及使用交流 » 本机测试正常发到服务器就出错是怎么回事呢
joinchen - 2010/8/5 14:54:00
我们公司的用该系统放到服务器上面就出错了,但是在我自己的主机上面就能通过啊,请问是怎么回事呢
Server Error in '/' Application.
--------------------------------------------------------------------------------

操作必须使用一个可更新的查询。
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.Data.OleDb.OleDbException: 操作必须使用一个可更新的查询。

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:


[OleDbException (0x80004005): 操作必须使用一个可更新的查询。]
   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.web_bottom.Tongji() +1020
   PageAdmin.web_bottom.Get_Bottom() +171
   PageAdmin.web_bottom.Page_Load(Object sender, EventArgs e) +202
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +50
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Control.LoadRecursive() +141
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627




--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.3603; ASP.NET Version:2.0.50727.3614

Server Error in '/' Application.
--------------------------------------------------------------------------------

Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: The type 'PageAdmin.masterhead' is ambiguous: it could come from assembly 'd:\freehost\dcsync\web\bin\PageAdmin.Master.DLL' or from assembly 'd:\freehost\dcsync\web\bin\PageAdmin.Web.DLL'. Please specify the assembly explicitly in the type name.

Source Error:


Line 1:  <% @ Control language="c#"  Inherits="PageAdmin.masterhead"%><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Line 2:  <html xmlns="http://www.w3.org/1999/xhtml">
Line 3:  <head>


Source File: /master/head.ascx    Line: 1


--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.3603; ASP.NET Version:2.0.50727.3614



Server Error in '/' Application.
--------------------------------------------------------------------------------

Access to the path 'd:\freehost\dcsync\web\web.Config' 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 'd:\freehost\dcsync\web\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 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 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 'd:\freehost\dcsync\web\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.3603; ASP.NET Version:2.0.50727.3614
xiyou - 2010/8/5 15:01:00
操作必须使用一个可更新的查询。
Access to the path 'd:\freehost\dcsync\web\web.Config' is denied.

这些都是应为网站目录没有写入和修改权限导致的
http://bbs.pageadmin.net/showtopic-41.aspx
joinchen - 2010/8/5 15:03:00
我用ftp把整个web文件夹都改成了777还是那样啊?
joinchen - 2010/8/5 15:04:00
我用ftp把整个web文件夹都改成了777还是那样啊?
xiyou - 2010/8/6 10:13:00
这个权限是需要主机商设置的,FTP改不了
1
查看完整版本: 本机测试正常发到服务器就出错是怎么回事呢