我也遇到过这个问题.我的开发环境是Server2003,IIS6.0的.数据库也是ACCESS.在本机调试正确.可是传上去也是出错.主要原因是服务器是IIS5.0的不支持Global.asax文件和Web.config文件.删除后正常..

解决方案 »

  1.   

    Selected collating sequence not supported by the operating system. 
    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: Selected collating sequence not supported by the operating system.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): Selected collating sequence not supported by the operating system.]
       System.Data.OleDb.OleDbCommand.ExecuteCommandTextErrorHandling(Int32 hr) +41
       System.Data.OleDb.OleDbCommand.ExecuteCommandTextForSingleResult(tagDBPARAMS dbParams, Object& executeResult) +174
       System.Data.OleDb.OleDbCommand.ExecuteCommandText(Object& executeResult) +92
       System.Data.OleDb.OleDbCommand.ExecuteCommand(CommandBehavior behavior, Object& executeResult) +65
       System.Data.OleDb.OleDbCommand.ExecuteReaderInternal(CommandBehavior behavior, String method) +112
       System.Data.OleDb.OleDbCommand.ExecuteReader(CommandBehavior behavior) +69
       System.Data.OleDb.OleDbCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior) +5
       System.Data.Common.DbDataAdapter.FillFromCommand(Object data, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +304
       System.Data.Common.DbDataAdapter.Fill(DataTable dataTable, IDbCommand command, CommandBehavior behavior) +28
       System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) +88
       DataProviders.SmallTypeProvider.SelectDataSetByBigTypeID(Int32 nID)
       LoginM.TradeForms.SmallTypeMakeBinding()
       LoginM.TradeForms.SmallTypeForm_Activate(Object sender, EventArgs e)
       System.Web.UI.MobileControls.Form.OnActivate(EventArgs e) +80
       System.Web.UI.MobileControls.MobilePage.set_ActiveForm(Form value) +128
       LoginM.TradeForms.theButtonAfterSelectSearchMachine_Click(Object sender, EventArgs e)
       System.Web.UI.MobileControls.Command.OnClick(EventArgs e) +80
       System.Web.UI.MobileControls.Command.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String argument) +82
       System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +18
       System.Web.UI.MobileControls.MobilePage.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +78
       System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +138
       System.Web.UI.Page.ProcessRequestMain() +1315 
      

  2.   

    Selected collating sequence not supported by the operating system. 
    关键这里我搞不懂了。
    本机都通过 了。
    但是放到服务器上就不OK
      

  3.   

    MDAC2.7啥东西?请指教,那个服务器是第三方提供的。
      

  4.   

    是microsoft database access component,数据存取组件,还有可能是路径问题,绝对路径不如mappath!
      

  5.   

    我用的正是Server.MapPath("xxx.mdb")返回物理地址,前半部分程序的数据库操作OK,后半部分有点问题
      

  6.   

    主要原因是服务器是IIS5.0的不支持Global.asax文件和Web.config文件.删除后正常..谁说的?!!!
      

  7.   

    因为ACCSESS是的数据库连接语句是通过虚拟路径读取的,所以在不同层(目录)下会有可能调用不出的问题,请将ACCESS的数据库连接语句改成真实的物理路径试一试,这个问题不单的.net会,在ASP也是会的