1. what kind of errors did you get?2. what database are you using?3. if you are using Microsoft Access, make sure you give Everyone account read/write permissions on the database file and the folder it is in, also check Everyone account can write to the system temp directory

解决方案 »

  1.   

    to  saucer(思归) :
    我用的是access2002,FTP上传到internet远程服务器后,http他不行,是否是connectionstring的设置是本地路径,我是初学,如何设置数据库连接串呢?绑定了datagrid的,又怎么办呢?请多多指教!
      

  2.   

    use DSN-less connection string,"Driver={Microsoft Access Driver (*.mdb)}; Dbq=" + Server.MapPath("mydb.mdb") + ";"
      "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" + Server.MapPath("mydb.mdb") + ";"see
    http://www.able-consulting.com/ADO_Conn.htm
      

  3.   

    运行时错误 
    说明: 服务器上出现应用程序错误。此应用程序的当前自定义错误设置禁止远程查看应用程序错误的详细信息(出于安全原因)。但可以通过在本地服务器计算机上运行的浏览器查看。 详细信息: 若要使他人能够在远程计算机上查看此特定错误信息的详细信息,请在位于当前 Web 应用程序根目录下的“web.config”配置文件中创建一个 <customErrors> 标记。然后应将此 <customErrors> 标记的“mode”属性设置为“Off”。
    <!-- Web.Config 配置文件 --><configuration>
        <system.web>
            <customErrors mode="Off"/>
        </system.web>
    </configuration>
     注释: 通过修改应用程序的 <customErrors> 配置标记的“defaultRedirect”属性,使之指向自定义错误页的 URL,可以用自定义错误页替换所看到的当前错误页。
    <!-- Web.Config 配置文件 --><configuration>
        <system.web>
            <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>
        </system.web>
    </configuration>
     
      

  4.   

    连接字付串为:constr = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" + Server.MapPath("my.mdb") + ";Persist Security Info=False;Jet OLEDB:Database Password=mypassword"
    也是本地行, ftp后不行.报错如上.
      

  5.   

    change
     <customErrors mode="RemoteOnly" defaultRedirect="mycustompage.htm"/>to<customErrors mode="Off"/>and tell us the detailed error messages
      

  6.   

    应该是asp.net的配置问题吧, 我把文件替换了只放一张图片的.aspx,上传后还是这个报错.配置如何呢?
      

  7.   

    要设置一个虚拟目录映射到你放asp.net程序的目录。
    建议你做一个web setup project,那样很方便。
      

  8.   

    做web setup project? 在vs.net里?
      

  9.   

    是新建一个web 安装项目,哦,我明白了!是只要在 web setup projiect里搞就行,不需其他?
      

  10.   

    是新建一个web 安装项目,哦,我明白了!是只要在 web setup projiect里搞就行,不需其他? 你真是一语点醒梦中人!很感谢!不知如何感谢