我正在使用ASP.MVC4。我已经在不同的端口bulid并发布相同的文件,其中一个端口工作正常,但其他端口,我发现了以下错误页面请任何一个可以建议为解决..编译器错误消息:CS1009:无法识别的转义序列在编译此请求所需的资源编译期间发生错误
Server Error in '/' Application.
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS1009: Unrecognized escape sequence
Source Error:
Line 42: Line 43: public override void Execute() { Line 44: WriteLiteral("\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" + Line 45: "\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" + Line 46: "\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\" +
Source File: c:\Windows\Microsoft.NET\Framework64\v4.0.30319\Temporary ASP.NET Files\root\fe78b6c6\eaadfefd\App_Web_index.cshtml.364523cc.s_uuxf94.0.cs Line: 44
感谢您的回应,但在这里我不写这段代码它是自动生成我无法找到它在运行时解决方案可以建议任何解决方案如何找到它 – anil
我在下面显示完整汇编来源: 第3行:// <自动生成的> 第4行://此代码由工具生成。 行5://运行时版本:4.0.30319.34209 行6:// 行7:/ /更改此文件可能会导致不正确的行为,并将丢失如果 行8://代码重新生成。 第9行:// auto-generated> – anil
好吧,对不起,我没有意识到它是生成的代码。我不熟悉什么在做生成... – Eli