2016-06-28 141 views
0

我正在使用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

回答

0

更改代碼WriteLiteral(@"\\\\\\\\\\\\\" + @"\\\\\\\\\" + ...

+0

感謝您的迴應,但在這裏我不寫這段代碼它是自動生成我無法找到它在運行時解決方案可以建議任何解決方案如何找到它 – anil

+0

我在下面顯示完整彙編來源: 第3行:// <自動生成的> 第4行://此代碼由工具生成。 行5://運行時版本:4.0.30319.34209 行6:// 行7:/ /更改此文件可能會導致不正確的行爲,並將丟失如果 行8://代碼重新生成。 第9行:// anil

+0

好吧,對不起,我沒有意識到它是生成的代碼。我不熟悉什麼在做生成... – Eli