2010-09-22 80 views
0

任何人有任何想法如何開始調試呢? 下面是錯誤發生時瀏覽器顯示的內容。ASP.NET MVC非用戶代碼錯誤,我該如何調試?

我剛剪下它並粘貼在下面。

似乎錯誤是在自動生成的臨時文件。


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: CS1026:) expected 

Source Error: 


Line 240:   #line default 
Line 241:   #line hidden 
Line 242:   @__w.Write("\r\n\r\n <p>\r\n  "); 
Line 243:    
Line 244:   #line 15 "K:\Projects\GroupTargets_01\Views\Group\Index.aspx" 

Source File: c:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\c52144fb\cf3eebf6\App_Web_index.aspx.1dacda6f.ihdui7sw.0.cs Line: 242 


Show Detailed Compiler Output: 

Show Complete Compilation Source: 


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1 
+0

請添加相應的源代碼!並且你的代碼缺少a),所以這很容易解決。 – 2010-09-22 18:07:39

回答

1

這是在K:\Projects\GroupTargets_01\Views\Group\Index.aspx視圖頁面代碼中的錯誤。您在錯誤消息中看到的代碼是那些<@ ... @>代碼轉化爲的代碼。