请教,如何将做好的网页放上Inetrnet?
我之前是用XP系统,IIS5.1,Visual stdio 2003 做好的一个网页,在我自己的机上运行正常。但当我将它放在别一个服务器,这台服务器是可以作为万维网的服务器,它的配置是Windows Server 2003,IIS6.0,就出现了错误。我是这样做的,在一个站点下新建一个虚拟目录,路径指向网页所在的文件夹。比如该站点名称是[url]http://www.[/url],我的虚拟目录名为office,我就在浏览器上输入[url]http://www.[/url],但出错了,好像是NET Framework里面的web.config提示的错误,我当时也没把图截下来,真后悔。请问各位大师,该怎么解决呢? 会不会是IIS设置了什么样的权限才使到出现错误的?我对IIS6.0不了解,未做过配置,希望做过配置的人指教一下。谢谢。
Server Error in '/office' 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>
[[italic] 本帖最后由 chashen8888 于 2007-12-28 13:41 编辑 [/italic]]