This is a migrated thread and some comments may be shown as answers.

Domain Model has no entities

10 Answers 315 Views
Getting Started
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Alex
Top achievements
Rank 1
Alex asked on 21 Jun 2010, 05:28 AM
Hi everyone,

I'm trying to use the OA Domain Model but I can't seem to get it to make any entities.

Firstly, I create a new Class Library project (DAL). Then I add new item, OA Domain Model.
I use my existing connection strings (they do work fine) and press next
I then select what ever tables (I tried all, and I tried 1, doesn't work either way) and press next
I use the default naming rules
I use the default adv options and hit finish

It goes If the project has not been previously ...
[Ok]
[Reload]

I can see that it has added some references, specifically:
Telerik.OpenAccess
Telerik.OpenAccess.35.Extensions
Telerik.OpenAccess.40.Extensions



I then open up my designer and its empty, it has no items in the relation model (i.e. no tables views or stored proc's, even thou I know I did select some)


And it brings up the following warning (Although I suspect this should be an error)
Failed to load types from assembly 'Telerik.OpenAccess.40.Extensions, Version=2010.1.527.2, Culture=neutral, PublicKeyToken=7ce17eeaf1d59342' so the assembly will be ignored.
Could not load file or assembly 'Microsoft.Data.Services, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. The system cannot find the file specified.   

And I did a quick check, I do not have a reference Microsoft.Data.Services, nor do I have one any where
So I googled it, downloaded
ADONETDataServices_v15_CTP1.exe
Ran it, installed it, now I don't get the above error, but I still have no entities and the following errors

Error    1    Root element is missing.    C:\Users\Alex\Desktop\Documents\Visual Studio 2010\Projects\SunixSilver OA\DAL\SunixSilver2EntityDiagrams.rlinq    DAL
Error    2    Invoke validation method 'RunValidationFramework' failed    C:\Users\Alex\Desktop\Documents\Visual Studio 2010\Projects\SunixSilver OA\DAL\SunixSilver2EntityDiagrams.rlinq    0    1    DAL


Any ideas?

10 Answers, 1 is accepted

Sort by
0
Serge
Telerik team
answered on 21 Jun 2010, 07:28 PM
Hello Alexander Sun,

 This is some strange behavior, you are in fact following the steps as you should. Can you provide a little more information about your setup. Such as the visual studio version you are using, what .NET version are you targeting, what kind of a project are you trying to add the domain model into. Also are you using the latest version of Telerik OpenAccess ORM, if not please visit your account's page and download the latest version. 

You should note that the Domain Model cannot be added to a project targeting the 2.0 .NET framework and cannot be added to project of type Web Site or Silverlight Application.

I am looking forward to resolving this issue with you.

Best wishes,
Serge
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Alex
Top achievements
Rank 1
answered on 22 Jun 2010, 12:39 AM
VS 2010 10.0.30319.1 RMTRel
Latest OA 2010 1 527

I have a new silverlight application (so sl client + sl web) and the DAL class library, they are all .net 4.0

The domain model is sitting on the dal class library

Just some more info, yes I've tried reinstalling OA (and restarting) to no affect


If I manually add some meta classes/comments then I get the following errors:

Warning    2    The C# 2.0 and C# 3.5 compilers are no longer supported. Templates will always be compiled with the version 4 compiler instead of 'v3.5' as specified.    C:\Users\Alex\Desktop\Documents\Visual Studio 2010\Projects\SunixSilver OA\DAL\EntityDiagrams1.rlinq    1    4    
Error    1    Invoke validation method 'RunValidationFramework' failed    C:\Users\Alex\Desktop\Documents\Visual Studio 2010\Projects\SunixSilver OA\DAL\EntityDiagrams1.rlinq    0    1    DAL
Error    4    Compiling transformation: The type 'Microsoft.VisualStudio.TextTemplating.ITextTemplatingEngineHost' is defined in an assembly that is not referenced. You must add a reference to assembly 'Microsoft.VisualStudio.TextTemplating, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.    c:\Program Files (x86)\Telerik\OpenAccess ORM\dsl\CodeGenerationTemplates\CSharp\Includes\General.ttinclude    28    2    
Error    5    Compiling transformation: The best overloaded method match for 'Telerik.OpenAccess.CodeGeneration.TemplateContextFactory.Create(Microsoft.VisualStudio.TextTemplating.ITextTemplatingEngineHost, System.Text.StringBuilder)' has some invalid arguments    c:\Program Files (x86)\Telerik\OpenAccess ORM\dsl\CodeGenerationTemplates\CSharp\Includes\General.ttinclude    28    25    
Warning    3    Compiling transformation: Assuming assembly reference 'Telerik.OpenAccess, Version=2010.1.310.2, Culture=neutral, PublicKeyToken=7ce17eeaf1d59342' matches 'Telerik.OpenAccess, Version=2010.1.527.2, Culture=neutral, PublicKeyToken=7ce17eeaf1d59342', you may need to supply runtime policy    C:\Users\Alex\Desktop\Documents\Visual Studio 2010\Projects\SunixSilver OA\DAL\EntityDiagrams1.rlinq    1    1    
Error    6    Compiling transformation: Argument 1: cannot convert from 'Microsoft.VisualStudio.TextTemplating.ITextTemplatingEngineHost [c:\Windows\Microsoft.NET\assembly\GAC_MSIL\Microsoft.VisualStudio.TextTemplating.Interfaces.10.0\v4.0_10.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualStudio.TextTemplating.Interfaces.10.0.dll]' to 'Microsoft.VisualStudio.TextTemplating.ITextTemplatingEngineHost'    c:\Program Files (x86)\Telerik\OpenAccess ORM\dsl\CodeGenerationTemplates\CSharp\Includes\General.ttinclude    28    55    
Error    7    A namespace cannot directly contain members such as fields or methods    C:\Users\Alex\Desktop\Documents\Visual Studio 2010\Projects\SunixSilver OA\DAL\EntityDiagrams1.cs    1    1    DAL

(And just to reiterate, yes it is a .net 4.0, i don't know why it think its a 3.5)
Upon closer inspection, I Only seem to have 8.2.0.0 of the text template tool and not 9


Also I can not update from the database, it flashes some dialogue box which disappears before I can read it






0
Alex
Top achievements
Rank 1
answered on 22 Jun 2010, 03:38 AM
Ok... after doing a windows update (with a ton of optional componenents)
restart (x2)

Uninstall OA
restart
Reinstall OA

It works now thou I'm unsure of exactly which step fixed it :S
0
Zoran
Telerik team
answered on 24 Jun 2010, 07:03 PM
Hi Alexander Sun,

 We are very glad that you have solved your issue. It probably was related to some old assembly being left in the GAC and then re-installing the product has actually removed it and replace it with the latest one.

Sincerely yours,
Zoran
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Krzysztof Wiacek
Top achievements
Rank 1
answered on 22 Jul 2010, 04:11 PM
Hi,

I also have this problem. I reinstall OA but the problem was not solved.
Windows7
VS 2010 10.0.30319.1 RMTRel
OA 2010.2.714.1 
Net 3.5, 4.0
Winforms

If I using VS2008 on this same machine I don't have any problems.

Any ideas?

0
Jordan
Telerik team
answered on 23 Jul 2010, 03:33 PM
Hi Krzysztof Wiacek,

In order to be able to help you we will need to know exactly what errors / exceptions do you get.
Also, do you have problems in a single project or with every project that you do with Visual Studio 2010 and OpenAccess?
To what type of project you are adding the .rlinq (OpenAccess Domain Model) file?

Sincerely yours,
Jordan
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Krzysztof Wiacek
Top achievements
Rank 1
answered on 28 Jul 2010, 03:06 PM

Hi Jordan,
When I populate from database my EntityDiagrams or create Empty Domain Model I get this error :
Error 2 Invoke validation method 'RunValidationFramework' failed C:\Users\KW\Documents\Visual Studio 2010\Projects\Test_orm_Q2\Test_orm_Q2\EntityDiagrams1.rlinq 0 1 Test_orm_Q2
I have problem with every project also when I open and convert the project from VS2008.
I adding .rlinq to Windows Form Application.
Also after I instaling OA Q2 my tollbar OA looked as in attachment.After reinstaling JustCode Q2 toolbar is ok.

Thanks,

Krzysztof

0
Dimitar Kapitanov
Telerik team
answered on 29 Jul 2010, 07:23 AM
Hi Krzysztof Wiacek,
We are investigating the menu merge issue, it is reported by some of our other customers as well.

Regarding the errors you experience I suspect that you have mixed version: if you take a look you will see assemblies form different dates loaded, plus I don't have a clue but you managed to load both DSL2008 and DSL2010 in the same VS (I guess it was VS2010)?

I think your re-install procedure didn't went so right. In order to be sure this is the case please do the following:

1. Uninstall the OpenAccess ORM
2. Clean the GAC (2.0 and 4.0) - we need to be sure nothing of the previous releases remains. You can do so like:
Open the Windows File Explorer. If you navigate to the C:\Windows folder you will see a folder named "assembly". Opening the folder provides you with a view of the 2.0 GAC - just search for assemblies names that have Telerik.OpenAccess.X, Telerik.Data.X or Telerik.VS.Data.Design and delete them. The same applies to the 4.0 GAC which can be found under the C:\Windows\Microsoft.NET\assembly\GAC_MSIL folder - please repeat the same action. After than making a clean OpenAccess install will solve the issue you have now is my expectation.




Sincerely yours,
Dimitar Kapitanov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Justus Herrmann
Top achievements
Rank 2
answered on 28 Sep 2010, 10:50 AM
Hi Dimitar,

I also get the Invoke validation method 'RunValidationFramework' failed error, when using ORM 2010.2 714 or the latest internal build 2010.2 805.
Following the re-install procedure didn't work for me and I am not able to use ORM with Visual Studio 2010.
ORM and Visual Studio 2008 is working flawlessly on the same machine.

System Configuration:
Windows 7 64bit
VS 2010 10.0.30319.1 RMTRel

Thanks
Justus
0
Serge
Telerik team
answered on 29 Sep 2010, 04:59 PM
Hello Justus Herrmann,

We are still investigating the cause of this issue. Please let's continue the conversation in the other thread you have opened on this topic.

All the best,
Serge
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Getting Started
Asked by
Alex
Top achievements
Rank 1
Answers by
Serge
Telerik team
Alex
Top achievements
Rank 1
Zoran
Telerik team
Krzysztof Wiacek
Top achievements
Rank 1
Jordan
Telerik team
Dimitar Kapitanov
Telerik team
Justus Herrmann
Top achievements
Rank 2
Share this question
or