首页 新闻 赞助 找找看

很郁闷的问题,关于ASP.NET程序发布.运行服务器和开发服务器

0
悬赏园豆:120 [已关闭问题] 关闭于 2009-09-23 10:02

     做了好久的.NET. 但是一直都是在windows XP 下学习新的技术,,巩固旧的知识,,   从来没有发布到网上实验过..

     这几天帮部门做一个很小的内部管理系统,, 要发布到服务器上.. 问题就出来了...

     发到这里寻求帮助,, 其实这也是我一直在头疼怕做不好的问题.. 所以我奉上全分求解..

先说一下事情原由:

     空闲时间 在WINDOW XP SP2 下写的这个程序... 用到了动软.NET代码生成器,,,在XP环境下 运行一切正常, 但是没有在XP IIS 上测试...

     今天带到公司... 机器是 2003   .. 开发工具是 vs 2005  没有安装 SP1 补丁(我自己的机器上有安装SP1补丁),  在2003 的 VS 直接运行一切正常..  但是在 2003 的 IIS 上运行就出问题了..

     所有的验证控件全部失效..不但失效,, 而且按钮点了也没反应...

    

 

     最后我发布之后  放到服务器里边... 运行不起来

如下错误:

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>

Server Error in '/' Application.

Runtime Error

 

 

 

高手给解答啊...

问题补充: 修改配置文件后出现的问题: Server Error in '/' Application. -------------------------------------------------------------------------------- Configuration Error Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. Parser Error Message: It is an error to use a section registered as allowDefinition='MachineToApplication' beyond application level. This error can be caused by a virtual directory not being configured as an application in IIS. Source Error: Line 41: 以标识传入的用户。 Line 42: --> Line 43: <authentication mode="Forms"/> Line 44: <!--<authentication mode="Forms"> Line 45: <forms loginUrl="Default.aspx" name="LoginCookied"> Source File: E:\Web\临时空间\sjb\web.config Line: 43 -------------------------------------------------------------------------------- Version Information: Microsoft .NET Framework Version:2.0.50727.3082; ASP.NET Version:2.0.50727.3082
西安-DB的主页 西安-DB | 初学一级 | 园豆:4
提问于:2009-09-09 14:55
< >
分享
所有回答(4)
0

老大 你先把配置文件改改吧

 

Code

 

 

然后在来问问题

我觉得有可能是iis没有装framework

或者没有开asp。net服务 webdev服务

或者文件夹没给asp。net用户权限,和user权限导致的

小眼睛老鼠 | 园豆:2731 (老鸟四级) | 2009-09-09 15:20
0

同意楼上的看法。在配置文件中加入如下

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

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

看看究竟出了什么状况再分析。

Kinglee | 园豆:3158 (老鸟四级) | 2009-09-09 15:28
0

sjb目录是不是没有配置为应用程序?把这个目录设置为虚拟目录试试

Falcon Yin | 园豆:275 (菜鸟二级) | 2009-09-09 17:08
0

分几部排查:

1,服务器上安装与您开发环境一样的.net framework

2,在IIS里面WEB服务扩展里面除CGI,ISAPI(视情况定)外,全部允许

3,看看您的网站属性-Asp.net里面是否选择了正确的.net framework

4,文档里面找到你项目里面要启动的页面,基本正常后,在IIS里面浏览看看问题在那里

这个与系统无关的,你只要把配置搞好就OK,也不是IIS5.0,6.0的问题,基本上有"\"错误的大部份是配置错误...

祝成功!

Jerry Gao | 园豆:2 (初学一级) | 2009-09-09 17:27
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册