IIS7 web app error : "Could not load type 'System.Security.Claims.ClaimsIdentity' from assembly
2016-04-14 20:23
603 查看
原贴地址点击打开链接
The problem was that I even though had <compilation targetFramework="4.0"> in the web.config, that's not enough. The web service was already compiled with 4.5 as the
target (in the Visual Studio project properties) so references to ClaimsIdentiy was embedded in the dll that was produced by the build.
I tried to simply change the project property setting from 4.5 to 4.0 and recompiling but that gave be a world of other errors. I ended up creating a new VS solution and added the code back in and targetted 4.0 from the start. That let me deploy without this
error (however I'm now stuck on the next error but think its unrelated to this one).
出现的原因是netFramework版本不符,创建的程序是用的4.5,使用程序的是4.0. 编者解决的办法是重新创建一个VS解决方案把代码重新拷贝进去,然后重新用4.0版本生成。
通常是用VS高版本如2012,编写的程序代码,在VS10中运行不了,看网上还有人说开发的应用程序重新用VS2012 的net framework4.0生成
相关问题可以参考以下:
http://blog.csdn.net/findstr/article/details/8772372
VS2010打开VS2012或者13的方法:
http://www.cnblogs.com/johnsony/p/Version2012To2010.html
1、在sln解决方案中出现Visual Studio 2012的地方 改为2010
2、所有的工程文件.csproj中<TargetFrameWorkVersion> 版本号<TargetFrameWorkVersion> ,将版本号改为VS2010可以识别的4.0
3、删除工程文件中<import project=“$........\Microsoft.Common.props”/>这一行
4、config文件中也有Framework更改,改为4.0即可
The problem was that I even though had <compilation targetFramework="4.0"> in the web.config, that's not enough. The web service was already compiled with 4.5 as the
target (in the Visual Studio project properties) so references to ClaimsIdentiy was embedded in the dll that was produced by the build.
I tried to simply change the project property setting from 4.5 to 4.0 and recompiling but that gave be a world of other errors. I ended up creating a new VS solution and added the code back in and targetted 4.0 from the start. That let me deploy without this
error (however I'm now stuck on the next error but think its unrelated to this one).
出现的原因是netFramework版本不符,创建的程序是用的4.5,使用程序的是4.0. 编者解决的办法是重新创建一个VS解决方案把代码重新拷贝进去,然后重新用4.0版本生成。
通常是用VS高版本如2012,编写的程序代码,在VS10中运行不了,看网上还有人说开发的应用程序重新用VS2012 的net framework4.0生成
相关问题可以参考以下:
http://blog.csdn.net/findstr/article/details/8772372
VS2010打开VS2012或者13的方法:
http://www.cnblogs.com/johnsony/p/Version2012To2010.html
1、在sln解决方案中出现Visual Studio 2012的地方 改为2010
2、所有的工程文件.csproj中<TargetFrameWorkVersion> 版本号<TargetFrameWorkVersion> ,将版本号改为VS2010可以识别的4.0
3、删除工程文件中<import project=“$........\Microsoft.Common.props”/>这一行
4、config文件中也有Framework更改,改为4.0即可
相关文章推荐
- windows7 安装iis7.0图文教程(不需要单独的安装包)
- IIS 7.0 架构详解
- asp.net IIS中上传大小的修改(针对IIS7.0)
- win7下架设asp.net+IIS7.0服务器
- IIS设置问题
- Windows7 + IIS7 下使用 access
- ASP.NET是如何在IIS下工作的
- IIS6升级到 IIS 7AJax出错问题 设置 ajax.dll web.config 配置
- 如何在IIS7或IIS7.5中导入导出站点及应用程序池
- PHP+IIS7+PHPMangerForIIS搭建开发环境
- IIS7.0、IIS7.5、IIS8.0、IIS8.5自定义错误,配置404页面转向处理
- IIS系列:三、管理应用程序池
- IIS7.0 禁用SSL 2.0 和 SSL 3.0 协议
- Discuz!X3.1安装图文教程的补充:IIS7.0下关于PHP配置的懒人模式
- IIS7的应用程序池详细解析
- IIS关于设置
- iis访问数据的问题
- Windows Server 2008 IIS 7.0 WebDAV设置
- IIS 6.0 升级为 IIS7.0 后 Web.Config的修改
- IIS6⇒IIS7网站注意点