关于网站部署的几个问题
1。我部署好以后,必须输入端口号才能访问,如http://59.66.94.31:8080/ 怎么 才能把8080 给去掉?我在属性里设置成80端口后,就不能访问了。
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>
---------------------------------------我把mode= "Windows " 改成了 mode= "off ",结果连主页面都访问不了了,大小写我都式过了。
请指教啊,谢谢拉
------解决方案--------------------1、80端口是被占用了吧,只有80可能不输入(默认),否则访问要带商品号,你可以查一下,谁用了80端口,把它改了,然后你用;
2、这个不一定是数据库的问题,不过,提醒一下,注意Web.config里的连接字符串配置