一个很奇怪的dotNet环境问题,求帮助。
一台windows 2003服务器,需要部署一个网站,网站代码使用的是dotNet4.0环境,
于是,上网下载了dotNetF4.0的安装包,全名是:dotNetFx40_Full_x86.exe,35.2M的,
安装完后,重启服务器,网站成功部署了。
同时这个服务器上还要装一个软件程序和服务,两个也是用dotNet4.0环境下编写的,
问题来了,安装后程序和服务无法启动!
于是,我在生成安装程序时,选择了将所需的环境同时打包,再次安装,发现还要安装dotNet4.0环境(注意我之前的,明明已经装了),安装完后,重启,程序和服务都正常启动运行了。
好了,问题又来了!到网站无法启动了,提示如下:
Server Error in '/' Application.
--------------------------------------------
No http handler was found for request type 'GET'
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Web.HttpException: No http handler was found for request type 'GET'
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[HttpException (0x80004005): No http handler was found for request type 'GET']
System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig) +698
System.Web.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +173
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +163
真的是一筹莫展,于是,我将dotNet4.0全部卸载(卸载界面好像有三个NF4.0的东西),然后再重新安装dotNet4.0安装包,网站又正常起来了(除了重启电脑什么都没改),程序和服务不行。然后我再安装程序和服务,又是要安装dotNet4.0.....点击安装后,程序和服务起来了,网站又挂了··········
究竟是怎么回事啊,都是dotNet4.0环境下的程序,咋就搞成这样?
[解决办法]
检查下应用程序池是否配置的是4.0,是传统还是集成