我正在 .NET 中开发一个网络应用程序,它的目标是 4.5(不能使用 4.0,因为有些人只使用 4.5 的功能)。现在我正在尝试将应用程序上传到 IIS,但它向我显示此错误(它是西类牙语,但我会翻译):
Atributo 'targetFramework' no reconocido. Tenga en cuenta que en los nombres de atributo se distinguen mayúsculas y minúsculas.
Unrecognized attribute targetFramework. Note that attribute names are case-sensitive
我很确定我有安装了 .NET 框架的 IIS,我搜索了很多,发现 IIS 似乎不存在 v4.5,但它仍然不起作用。
最佳答案
查看第一个屏幕截图的最后几行,您的 IIS 应用程序池似乎正在使用 .NET CLR 2.0。
您应该仔细检查您的 ASP.NET 应用程序实际使用的是哪个应用程序池,并将应用程序池设置更改为使用 .NET CLR 4.0
关于c# - .NET targetFramework ="4.5"无法识别,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27354313/