Problem with model editing

Discussion of open issues, suggestions and bugs regarding LinqConnect – Devart's LINQ to SQL compatible ORM
Post Reply
listonic
Posts: 39
Joined: Mon 06 Dec 2010 15:47

Problem with model editing

Post by listonic » Thu 23 Aug 2012 13:57

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

StanislavK
Devart Team
Posts: 1710
Joined: Thu 03 Dec 2009 10:48

Re: Problem with model editing

Post by StanislavK » Thu 23 Aug 2012 16:31

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.

listonic
Posts: 39
Joined: Mon 06 Dec 2010 15:47

Re: Problem with model editing

Post by listonic » Fri 24 Aug 2012 08:58

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

StanislavK
Devart Team
Posts: 1710
Joined: Thu 03 Dec 2009 10:48

Re: Problem with model editing

Post by StanislavK » Mon 27 Aug 2012 13:31

Thank you for the screenshot. We will analyze the situation and inform you about the results as soon as possible.

StanislavK
Devart Team
Posts: 1710
Joined: Thu 03 Dec 2009 10:48

Re: Problem with model editing

Post by StanislavK » Tue 28 Aug 2012 11:54

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.

listonic
Posts: 39
Joined: Mon 06 Dec 2010 15:47

Re: Problem with model editing

Post by listonic » Wed 29 Aug 2012 06:57

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

woodyiii
Posts: 1
Joined: Thu 17 Jul 2014 20:06

Re: Problem with model editing

Post by woodyiii » Thu 17 Jul 2014 20:10

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.

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Re: Problem with model editing

Post by Shalex » Fri 18 Jul 2014 11:19

We have asked for an additional information by email.

Post Reply