积极答复者
.net 3.5

问题
-
我在服务器上升级了.net版本。原来是2.0的,现在安装.net 3.5 ,安装正确,没有报错。并把我的.net3.5程序传上去,但是运行不了,服务上站点设置为IIS属性--asp.net--2.0.50727,并在主目录--配置--应用程序映射中将.aspx映射到c:\windows\microsoft.net\framework\v2.0.50727\aspnet_isapi.dll。且在WEB服务扩展中允许了.net2.0,这样设置应该就可以运行的,为什么还报这个错误呢。是不是.net3.5程序还要映射其他DLL文件或者其他设置,这个程序是没有问题的,程序员编出来后可以正常运行,请各位大侠赐教
- 已移动 Sheng Jiang 蒋晟Moderator 2009年11月28日 23:34 web开发问题 (发件人:.NET Framework 一般性问题讨论区)
答案
-
你好!
你检查一下程序,这个是程序本身出现问题,当然,也可能是权限设置问题导致的程序出现错误!你按这个错误提示设置配置文件,就可以看到详细的错误信息了,然后在重新检查代码就可以了!
周雪峰- 已标记为答案 KeFang Chen 2009年12月4日 2:28
全部回复
-
怎么还报Runtime Error的错误呢,实在想不通
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>
-
你好!
你检查一下程序,这个是程序本身出现问题,当然,也可能是权限设置问题导致的程序出现错误!你按这个错误提示设置配置文件,就可以看到详细的错误信息了,然后在重新检查代码就可以了!
周雪峰- 已标记为答案 KeFang Chen 2009年12月4日 2:28