.net网站发布问题 高手请进

来源:百度知道 编辑:UC知道 时间:2024/07/03 00:10:03
接触.net时间不长。满怀热情的弄了个.net的网站,结果不能再空间上运行。

背景
1:在我的机器上是可以的。
2:开发工具是2005
3:空间据说支持.NET ,还给了个SQL2000数据库的地址和名字等相关资料。
4:我用SQLEXPRESS开发的数据库。
5:上网出现的错误是以下内容:

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&quo

网页上出现错误,

要看详细的错误信息,将 web.config 中的相应结点修改成:

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

上面提示信息上写的也是这个意思

1。如果服务器支持sqlexpress数据库,那么你要把这个数据库放到web服务器上,就放在App_Data下面。
2。运行时错误。
描述:服务器发生应用程序错误,当前的错误设置不允许
远程查看错误细节(由于安全原因),但是在本地服务器
上的浏览者仍可以查看。
细节:要远程查看错误细节请设置根目录的web.config 的<customErrors mode="Off"/>
3。这个不太清楚。

有没有注册IIS啊

aspnetregiis

SQLEXPRESS 的链接数据库方式和 企业版的不一样

链接字符串应该是
connectionString="Data Source=.;Initial Catalog=doodiiV5;User Id=sa;pwd=sa"

试一下用sql然后把数据库放到数据库服务器上应该没有错