MVC3 Deployed in IIS 7.5 - Keep getting CS1009: Unrecognised escape sequence error message

半世苍凉 提交于 2019-12-31 04:31:11

问题


I keep getting

Line 43:         public override void Execute() {
Line 44: WriteLiteral("\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" +
Line 45: "\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\");
Line 46: 

Source File: c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\ef576117\c80eec5d\App_Web_index.cshtml.a8d08dba.hua2yaob.0.cs    Line: 44 

Error message.

Can someone please help? I've done all the following items below:

If IIS was installed after .NET 4.0 on the server you need to run aspnet_regiis.exe to register it with IIS The application pool is set to run in integrated mode In your web.config you have the set You are accessing your site with http://server/home/index (change the controller and action names to match yours). You have a route that will match the {controller}/{action} url in your Global.asax. The corresponding view exists in ~/Views/Home/Index.cshtml.

This website with same binaries runs in local machine but not on another server. The other server has MVC3 installed too


回答1:


The binaries were missing when I deployed website to another server. It was not that the code was incomplete or contained odd number of "/". Recompiling and publishing recompiled DLLS worked.



来源:https://stackoverflow.com/questions/9133053/mvc3-deployed-in-iis-7-5-keep-getting-cs1009-unrecognised-escape-sequence-err

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!