[英]Text file I/O works fine in VS2015 development but not IIS deployment
[英]ASP NET MVC5 compiler publish error in IIS (works fine in VS2015)
我正在开发一个ASP NET MVC 5应用程序。 在Visual Studio 2015中工作正常,但是当我尝试在IIS中发布时,出现下一个错误:
CS0103: the name 'model' does not exist in the current context.
Línea 1: @using Name.Models
**Línea 2: @model LoginViewModel**
c:\windows\system32\inetsrv>"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\csc.exe" /t:library /utf8output /R ...
This compiler is provided as part of the Microsoft (R) .NET Framework,
but only supports language versions up to C# 5, which is no longer the
latest version. For compilers that support newer versions of the C#
programming language, see http://go.microsoft.com/fwlink/?LinkID=533240
在同一项目的先前出版物中,我没有遇到任何问题。
我们发现了问题! Views文件夹的web.config已从项目中排除。 我们添加了它,一切又恢复了。
感谢大家!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.