IIS的配置问题:Server Error in '/' Application.
来源:互联网 发布:mac好用的邮箱软件 编辑:程序博客网 时间:2024/06/03 01:53
配置完IIS后打开网站,出现错误:
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: The 'targetFramework' attribute in the <compilation> element of the Web.config file is used only to target version 4.0 and later of the .NET Framework (for example, '<compilation targetFramework="4.0">'). The 'targetFramework' attribute currently references a version that is later than the installed version of the .NET Framework. Specify a valid target version of the .NET Framework, or install the required version of the .NET Framework.
导致这种错误的原因就是IIS使用的framework版本不正确。项目框架使用framework 4.5,而服务器中没有安装framework 4.5造成的。
一般的解决方法:
1. 把项目框架改完4.0,编译后重新发布,但是当项目比较打的时候并不适用,改变项目框架会导致很多不可控的问题。
2. 配置IIS应用程序池framework版本为4.5
但其实IIS中是找不到framework为4.5版本的。
stackoverflow上解释:
When .NET 4.5 is installed it effectively replaces .NET 4.0 on the machine. .NET 4.0 gets overwritten by a new version of .NET 4.5 which - according to Microsoft - is supposed to be 100% backwards compatible. 大致意思就是:4.5本质上还是4.0,属于递增式的更新,所以对IIS 来说看到的只有4.0而已。所以即便安装了4.5,还是只能选择4.0.
所以出现这种情况的时候就需要考虑服务器上是否已经安装了framework 4.5了.
0 0
- IIS的配置问题:Server Error in '/' Application.
- Server Error in Application. IIS问题
- Server Error in Application. IIS问题
- IIS出现Server Error in ''/'' Application 的错误,解决方案
- IIS application server error 的问题及解决办法
- 关于IIS "server application error"问题
- Server Error in '/' Application caused by lack of IIS Application
- 解决了IIS的Server Application Error
- IIS Server Application Error 错误的解决
- 解决IIS的Server Application Error办法
- 解决IIS的Server Application Error办法
- IIS:server application error的处理
- 解决IIS的Server Application Error办法
- IIS- Server Application Error的解决办法
- 解决IIS的“Server Application Error”故障
- iis 出现Server Application Error的解决方法
- 解决IIS的“Server Application Error”故障
- 解决IIS的“Server Application Error”故障
- SQL
- C# 第10章
- 循环输入,将成绩分类
- Eclipse(MyEclipse)新建类自动生成注释
- Android View 事件分发机制 源码解析 (上)
- IIS的配置问题:Server Error in '/' Application.
- 关于Service中的耗时操作
- API实现批次序列号的销售出库
- Android networkonmainthreadexception
- 行星旋转案例canvas-konva.js未封装前的代码
- SQL 笔记
- java i/o 流
- ecshop SQL注入通杀漏洞以及后台拿SHELL
- 使用外连接查询信息