Page 1 of 1

Problem with model editing

Posted: Thu 23 Aug 2012 13:57
by listonic
I have been using linq connect 3.0.16 for more than a half year now and it has been working fine. Today i started getting errors when editing anything in the model. When i do some changes and save, there is an error :

Error 72 Custom tool error: Unable to cast object of type 'Microsoft.Cct.PropertyPages.CommonProperties' to type 'VSLangProj.VSProject'. ConsoleTester\DataContext1.lqml 1 1

If i right click the DataContext1.lqml file and select "run custom tool", the same error appears. Now i am unable to edit anything in existing modesl or create any new models.

It seems that there is some problem with DevartLinqToSqlGenerator.

Regards
Piotr Wójcicki

Re: Problem with model editing

Posted: Thu 23 Aug 2012 16:31
by StanislavK
Please specify the following:
  • whether you are using a stand-alone or Visual-Studio-integrated version of Entity Developer;
  • in the latter case, please specify the edition and exact version of Visual Studio you are using;
  • whether you installed any third-party products prior to the problem (if yes, please describe them).
If possible, please also try catching this exception and send us its details, including the stack trace. To do so, please perform the following:
  • open your model;
  • open a new Visual Studio instance;
  • attach it to your process (the existing Visual Studio instance or stand-alone Entity Developer; the Tools -> 'Attach to Process' main menu item);
  • ensure that you are catching all CLR exceptions (the Debug -> Exceptions main menu item, the 'Thrown' check box in the 'Common Language Runtime Exceptions' line);
  • modify and save the model.

Re: Problem with model editing

Posted: Fri 24 Aug 2012 08:58
by listonic
I was able to catch the exception. I am sending a screenshot through contact form on this page: http://www.devart.com/company/contact.html

I am using Visual Studio 2010 Ultimate 10.0.31118.1 Sp1Rel
Framework 4.0.30319 SP1Rel

I do not recall installing anything before errors started appearing.
I am using integrated version of Entity Developer.

Regards
Piotr

Re: Problem with model editing

Posted: Mon 27 Aug 2012 13:31
by StanislavK
Thank you for the screenshot. We will analyze the situation and inform you about the results as soon as possible.

Re: Problem with model editing

Posted: Tue 28 Aug 2012 11:54
by StanislavK
Could you please specify the following:
  • the type of the project with which the issue occurs (a console library, a WinForms/WPF application, an ASP.NET web site etc.);
  • the language used in this application (VB or C#);
  • whether any other documents are opened in Visual Studio when the problem occurs.

Re: Problem with model editing

Posted: Wed 29 Aug 2012 06:57
by listonic
1. Type of the project seems irrelevant. It happens in class library and console application.
2. C#
3. I tried to check this and if there is no other documents opened the problem does not occur. Maybe this is it and some other document was problematic. We can put this issue aside and if i have any more clues i will post them.

Thanks
Piotr Wójcicki

Re: Problem with model editing

Posted: Thu 17 Jul 2014 20:10
by woodyiii
Was there ever any resolution with this error? I am receiving the same problem, however I am using DevArtEfGenerator, EF6, VS2012, C#, Project Type is a regular Class Library. I have submitted a support request in hopes I can get some better direction but was wondering what solved your issue or how you worked around it? Thanks.

Re: Problem with model editing

Posted: Fri 18 Jul 2014 11:19
by Shalex
We have asked for an additional information by email.