遇到问题1: 请求的内容似乎是脚本,因而将无法由静态文件处理程序来处理。
解决方案:
1.打开应用程序池,
2.右键–高级设置,将“启动32位应用程序”改为“true”,
3.右键-应用程序池默认设置,“启动32位应用程序"改为“true”,
4.基本设置-.NET Framework版本选择.NET Framework 4.0.30319.
之后,发现并没有解决
遇到问题2:处理程序“PageHandlerFactory-Integrated”在其模块列表中有一个错误模块“ManagedPipelineHandler”
问题原因:在安装FrameWorkv4.0后在安装IIS6,导致Framework没有安装完全
解决方案:在Frameworv4.0的目录中安装的程序以管理员权限重新运行一下就可以了,
如图所示,运行 aspnet_regiis.exe -i 或者 %windir%\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe -i
此时应用程序池中就会多出2项来,如图所示
遇到问题3:找不到程序文件(.net4.0没有启用)
1.找到网站下面对应的Web扩展服务~ 如图所示~
2.找到对应的.Net v4.0文件 改为允许即可