| 编程中国 | 业界新闻 | 技术文章 | 视频教程 | 下载频道 | 程序源码 | 个人空间 | 编程论坛
全能ASP/PHP/ASP.NET主机,支持月付专业 MSSQL 数据库空间,支持月付专业 MySQL 数据库空间,支持月付学习型 ASP/PHP/ASP.NET 主机 30元/年
高端软件开发 = 年薪十万不是梦赛孚耐:软件保护加密专家身份认证令牌USB KEY 
共有 594 人关注过本帖
标题:请教,如何将做好的网页放上Inetrnet?
收藏  订阅  推荐  打印 
chashen8888
Rank: 2
等级:注册会员
帖子:130
积分:1534
注册:2007-5-6
请教,如何将做好的网页放上Inetrnet?

我之前是用XP系统,IIS5.1,Visual stdio 2003 做好的一个网页,在我自己的机上运行正常。但当我将它放在别一个服务器,这台服务器是可以作为万维网的服务器,它的配置是Windows Server 2003,IIS6.0,就出现了错误。我是这样做的,在一个站点下新建一个虚拟目录,路径指向网页所在的文件夹。比如该站点名称是[url]http://www.abcd.com[/url],我的虚拟目录名为office,我就在浏览器上输入[url]http://www.abcd.com/office[/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]]
搜索更多相关主题的帖子: 网页  Inetrnet  web  Framework  
2007-12-24 20:06
yms123
Rank: 12Rank: 12Rank: 12
等级:版主
威望:72
帖子:8017
积分:81786
注册:2004-7-17

建在默认站点下,还有就是IIS要安装.NET Frameworks才能运行ASP.NET

http://www.lxzhcn.net
临时域名:http://yms126.1.suhai.com.cn/
版块版主招募中
网站论坛发帖无问题,欢迎发帖。
2007-12-24 20:28
chashen8888
Rank: 2
等级:注册会员
帖子:130
积分:1534
注册:2007-5-6

装了呀,因为该IIS有几个.NET写的网站,它们都可以正常运行,是不是我这个可能版本不兼容还是什么的?
2007-12-24 20:35
yms123
Rank: 12Rank: 12Rank: 12
等级:版主
威望:72
帖子:8017
积分:81786
注册:2004-7-17

楼主的是.NET2003编写的还是.NET2005编写的?

http://www.lxzhcn.net
临时域名:http://yms126.1.suhai.com.cn/
版块版主招募中
网站论坛发帖无问题,欢迎发帖。
2007-12-24 23:23
chashen8888
Rank: 2
等级:注册会员
帖子:130
积分:1534
注册:2007-5-6
回复 4# 的帖子

2003写的,这不关事吧?
2007-12-25 10:08
关于我们 | 广告合作 | 编程中国 | 清除Cookies | Archiver | WAP | TOP

编程中国 版权所有,并保留所有权利。鲁ICP备08000592号
Powered by Discuz, Processed in 0.064071 second(s), 9 queries.
Copyright©2004-2008, BCCN.NET, All Rights Reserved