Page 1 of 1

Error when trying to generate datacontext for VB.NET

Posted: Tue 28 Feb 2012 15:33
by yosel
Hello,
I am using Devart Version 6.70.311.0

I receive this error when trying to generate the datacontext for VB.NET...
The error does not ocurre for C#...

'Custom tool 'DevartLinqToSqlGenerator' failed.
' - An error occurred during an attempt to compile the template 'LinqConnect'.
'Error List:
'error : Expression expected.
'error : End of statement expected.
'error : Expression expected.
'error : End of statement expected.
'error : Expression expected.
'error : Syntax error.
'error : Syntax error.

Posted: Wed 29 Feb 2012 08:33
by MariiaI
This issue may be caused by an installation error; try reinstalling dotConnect for Oracle and generating the code for your model again.
Also, this may be an error in the code generation template. If the error occurs again after reinstall, please specify the templates you are using to generate the model (i.e., whether it is one of default templates or a custom one).
And if possible, please send us the model with which you are encountering the error.

Posted: Wed 29 Feb 2012 18:40
by yosel
Hi,
I am using linqConnect Default Template...I uninstalled Devart....manually unistalled assamblies from the GAC...Restarted...Istalled back and the issue still persisted...













<#
' Settings
output.Extension = ".vb"
baseFileName = model.FileName

' Begin generation

'------------------------------------------------------------------------------
' DataContext class generation
'------------------------------------------------------------------------------
Dim contextClassName As String = model.Name...

Posted: Thu 01 Mar 2012 11:27
by MariiaI
Please try the following steps:

1. Open another Visual Studio instance. Select Tools -> Attach To Process. In the opened window select the necessary process (devenv.exe with your application).Click Ok.
2. Choose Debug -> Exceptions. Common Language Runtime Exceptions "Thrown" and "User-unhandled" must be selected.
3. Try to generate your model again. If any exceptions are thrown at this moment, please specify their messages and stack traces, so that we are able to find what causes the problem.

Also, please send us the model you are working with. If this model content should not be disclosed, please try creating a simpler model with which the problem can be reproduced.

Posted: Fri 02 Mar 2012 21:33
by yosel
Hi,
I installed in a brand new machine...I am getting the same error...the model is not been generated for VB.NET...Have you try it in your end?...I am using the default template with no changes...This is critical for me right now...My model was generated before with another version 5.35 if I recall correctly...I can not go back to the previous version...again, If I generate the model using C# it works!!!. I need it in VB.

Thanks for your help

Posted: Mon 05 Mar 2012 11:10
by MariiaI
We couldn't reproduce this issue. The VB code is generated successfully in our environment.
This issue may be caused by using an old model (as you said you have generated it before with version 5.35) and new templates.
Please send us:
- model you are using; if this model content should not be disclosed, please try creating a simpler model;
- the full text of the VB template you are using.

Also, please debug the error doing the steps described above.