日期:2014-05-19  浏览次数:20468 次

求问 上传到了空间 出错.
1.     数据库是不是应该单独上传?

http://vwdhosting.net的空间

Restore   database   from   file                                                   Restore      
 
Restore   database   from   SQL   Server   2005   mdf   file           Attach

数据库有这两个选项

2.全部文件上传完毕后出现:

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

Runtime   Error  
Description:   An   application   error   occurred   on   the   server.   The   current   custom   error   settings   for   this   application   prevent   the   details   of   the   application   error   from   being   viewed   remotely   (for   security   reasons).   It   could,   however,   be   viewed   by   browsers   running   on   the   local   server   machine.  

Details:   To   enable   the   details   of   this   specific   error   message   to   be   viewable   on   remote   machines,   please   create   a   <customErrors>   tag   within   a   "web.config "   configuration   file   located   in   the   root   directory   of   the   current   web   application.   This   <customErrors>   tag   should   then   have   its   "mode "   attribute   set   to   "Off ".


<!--   Web.Config   Configuration   File   -->

<configuration>
        <system.web>
                <customErrors   mode= "Off "/>
        </system.web>
</configuration>
 

Notes:   The   current   error   page   you   are   seeing   can   be   replaced   by   a   custom   error   page   by   modifying   the   "defaultRedirect "   attribute   of   the   application 's   <customErrors>   configuration   tag   to   point   to   a   custom   error   page   URL.


<!--   Web.Config   Configuration   File   -->

<configuration>
        <system.web>
                <customErrors   mode= "RemoteOnly "   defaultRedirect= "mycustompage.htm "/>
        </system.web>
</configuration>
 
请问怎么修改  

目前我的数据库没有单独上传     而是保存在App_Data文件夹中一起传上去的.

请问我是不是应该对web.config文件进行修改.      
 


------解决方案--------------------
重新传一次,试试
实在不行,你新建一张数据表,然后写几行测试代码,看看能不能查询这张表中的数据