Server Error in '/aspnet' 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: CS1519: Invalid token 'catch' in class, struct, or interface member declaration
Source Error:
Line 62: }
Line 63: }
Line 64: catch (Exception ex)
Line 65: {
Line 66: lblMessage.Text += "Error description" + ": " + ex.Message + "<p>";
Source File: e:\Inetpub\wwwroot\aspnet\Main_list.aspx.cs Line: 64
Show Detailed Compiler Output:
C:\WINNT\system32> "C:\WINNT\Microsoft.NET\Framework\v2.0.50727\csc.exe" /t:library /utf8output /R:"C:\WINNT\Microsoft.NET\Framework\v2.0.50727\mscorlib.dll" /R:"C:\WINNT\assembly\GAC_MSIL\System.Configuration\2.0.0.0b03f5f7f11d50a3a\System.Configuration.dll" /R:"C:\WINNT\assembly\GAC_MSIL\System.Drawing\2.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll" /R:"C:\WINNT\assembly\GAC_MSIL\System\2.0.0.0b77a5c561934e089\System.dll" /R:"C:\WINNT\assembly\GAC_32\System.Web\2.0.0.0b03f5f7f11d50a3a\System.Web.dll" /R:"C:\WINNT\assembly\GAC_MSIL\System.Xml\2.0.0.0b77a5c561934e089\System.Xml.dll" /R:"C:\WINNT\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\aspnet\9eac2755\41537dcc\App_Code.jxhwpnpp.dll" /R:"C:\WINNT\assembly\GAC_MSIL\System.Web.Services\2.0.0.0b03f5f7f11d50a3a\System.Web.Services.dll" /R:"C:\WINNT\assembly\GAC_32\System.EnterpriseServices\2.0.0.0b03f5f7f11d50a3a\System.EnterpriseServices.dll" /R:"C:\WINNT\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\aspnet\9eac2755\41537dcc\App_Web_default.master.cdcab7d2.o4-9q7oy.dll" /R:"C:\WINNT\assembly\GAC_32\System.Data\2.0.0.0__b77a5c561934e089\System.Data.dll" /R:"C:\WINNT\assembly\GAC_MSIL\System.Web.Mobile\2.0.0.0__b03f5f7f11d50a3a\System.Web.Mobile.dll" /out:"C:\WINNT\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\aspnet\9eac2755\41537dcc\App_Web_main_list.aspx.cdcab7d2.vlckfeqm.dll" /D:DEBUG /debug+ /optimize- /win32res:"C:\WINNT\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\aspnet\9eac2755\41537dcc\ivvurgso.res" /w:4 /nowarn:1659;1699 "C:\WINNT\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\aspnet\9eac2755\41537dcc\App_Web_main_list.aspx.cdcab7d2.vlckfeqm.0.cs" "C:\WINNT\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\aspnet\9eac2755\41537dcc\App_Web_main_list.aspx.cdcab7d2.vlckfeqm.1.cs" "C:\WINNT\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\aspnet\9eac2755\41537dcc\App_Web_main_list.aspx.cdcab7d2.vlckfeqm.2.cs"
Microsoft ® Visual C# 2005 Compiler version 8.00.50727.42
for Microsoft ® Windows ® 2005 Framework version 2.0.50727
Copyright © Microsoft Corporation 2001-2005. All rights reserved.
e:\Inetpub\wwwroot\aspnet\Main_list.aspx.cs(64,5): error CS1519: Invalid token 'catch' in class, struct, or interface member declaration
e:\Inetpub\wwwroot\aspnet\Main_list.aspx.cs(64,24): error CS1002: ; expected
e:\Inetpub\wwwroot\aspnet\Main_list.aspx.cs(66,25): error CS1519: Invalid token '+=' in class, struct, or interface member declaration
e:\Inetpub\wwwroot\aspnet\Main_list.aspx.cs(66,68): error CS1519: Invalid token '+' in class, struct, or interface member declaration
e:\Inetpub\wwwroot\aspnet\Main_list.aspx.cs(67,29): error CS1519: Invalid token '=' in class, struct, or interface member declaration
e:\Inetpub\wwwroot\aspnet\Main_list.aspx.cs(69,5): error CS0116: A namespace does not directly contain members such as fields or methods
e:\Inetpub\wwwroot\aspnet\Main_list.aspx.cs(81,1): error CS1022: Type or namespace definition, or end-of-file expected
Show Complete Compilation Source:
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42