This topic is locked
[SOLVED]

 Compiler Error Message: CS1519: Invalid token 'catch' in class

12/6/2006 12:32:29 PM
ASPRunner.NET General questions
swat author

Server Error in '/WTFI' 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\WTFI\Table1_list.aspx.cs Line: 64
--------------------------------------------------------------------------------

Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42

Eugene 12/6/2006

Could you please send me your project (including project file, output directory and database backup) with this error on support@xlinesoft.com? I will investigate it on my box.

R
rgrazzini 12/6/2006

Hi,
this error occurs when "Search" is not found in some LIST form. Select this option and try again.
Rubens

swat author 12/6/2006

Hi,

this error occurs when "Search" is not found in some LIST form. Select this option and try again.
Rubens


Yes this helps- When I remove all search - Advance Search options I am getting this-

Eugene 12/7/2006

Thank you for your feedback.

You can fix this bug manually:

Open file "C:\Program Files\ASPRunner.NET\source\2.0\list.aspx.cs

Find code:

##MASTER_PAGE_ENABLE##

##SEARCHBOX##

Page.Form.DefaultButton = btnSearch.UniqueID;

Page.Form.DefaultFocus = txtSearchValue.UniqueID;

##SEARCHBOX##

##/MASTER_PAGE_ENABLE##

and replace it to:

##MASTER_PAGE_ENABLE##

##SEARCHBOX##

Page.Form.DefaultButton = btnSearch.UniqueID;

Page.Form.DefaultFocus = txtSearchValue.UniqueID;

##/SEARCHBOX##

##/MASTER_PAGE_ENABLE##



Rebuild your project.

We release update with fixed bug within 3 days.