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

Error "Can not extract domain models"

7 Answers 93 Views
Web Services
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Daniel Schilling
Top achievements
Rank 1
Daniel Schilling asked on 05 Jul 2010, 11:11 AM
Hi,

after starting DSW, selecting DAL- and Web-Project and clicking "Next" I receive an error message "Can not extract domain models".
I tried it with a completely new solution. Then adding a DAL and a WEB project. In DAL I added a new domain model with all tables from Northwind database. I compiled all, no errors occured. Aftre that I started DSW.

What can I do?




OA-Version used: 2010.1.623.5 (I uninstalled a previous version prior installing 2010.1)
VS2010 Premium (english) on WinXP SP3

Greetings,
Daniel

7 Answers, 1 is accepted

Sort by
0
Missing User
answered on 06 Jul 2010, 06:20 PM
Hi Daniel Schilling,

Actually this error may occur due to several reasons. One of them is if the connection to the database has been lost or if the DSW failed to load the model project (Installer problem).

So lets try the basic steps to use the DSW to make sure there is no problems with the installed DSW version:
1- Create a new Class library (.Net V4.0).
2- Add a domain model, set the connection string to the Northwind database.
3- Do not change the connection string name.
4- Select Tables only.
5- Add new Web application project (.Net V4.0).
6- Open the DSW.

If you are still not able to make it work, I think the problem was produced from the installer, so I would suggest you to reinstall the product (Please double check your GAC that there are no Telerik.OpenAccess assemblies left after you uninstall the product).

Kind regards,
Rizk Sobhi
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
Daniel Schilling
Top achievements
Rank 1
answered on 07 Jul 2010, 09:05 AM
Hi Rizk Sobhi,

I'm sorry, but it doesn't work. I uninstalled and reinstalled OA again (after double-checking GAC). I created a new solution as described by you and also double-checked documentation. I can create a model and I am able to use this model in another project (in my case a console application). Connection to database is available (on local machine). But DSW always says "Can not extract domain models". I also tried to run DSW by right-clicking on the model - a compile-run starts but nothing else happens.

I opened a support ticket (ID: 325625) and added my entire solution. In the web app project I added reference to OA assemblies and the connection string by hand - but it didn't made a difference.

Greetings,
Daniel

P.S.: I just checked my downloaded version. I've got a zip with filename "Telerik_OpenAccess_ORM_2010_1_624_dev.zip" but in it there are assemblies with version 2010.1.623.5 - is this correct?
0
Missing User
answered on 12 Jul 2010, 05:12 PM
Hello Daniel Schilling,

Sorry for the delayed reply, I checked the attached solution and I am afraid that I could not reproduce this problem on our side, the wizard navigates successfully to the next screen and the grids shows the available entities without problems.

So we will need to have a look at the crash log located at Documents\Telerik\OpenAccess\Data Services Wizard\Log\DSW-log.txt.

You can also force the system to always generate mini-dumps by enabling the queuing mode - just set the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Windows Error Reporting\ForceQueue (DWORD) value in the registry to 1. The crash report data is stored in C:\Users\someusername\AppData\Local\temp and C:\ProgramData\Microsoft\Windows\WER\ReportQueue.

Best wishes,
Rizk Sobhi
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
Daniel Schilling
Top achievements
Rank 1
answered on 16 Jul 2010, 10:43 AM
Hello Rizk Sobhi,

I recently upgraded to 2010.2 and nothing changed. I took a look into DSW-log.txt:
Freitag, 16. Juli 2010 11:29:33   |   Can not extract domain models

I then noticed that my DAL.dll is "cached" in your MyDocuments\Telerik\OpenAccess\Data Services Wizard\Temp folder. In my case MyDocuments is redirected to a network folder and though .NET-security comes into place. I temporary changed it to a local folder and it works. But this is not a solution for me.

Is it possible that you cache your temp files in another - .net-secure - folder in the future? In my oppinion MyDocuments is not the right place for this kind of files.

Thanks,
Daniel


0
Missing User
answered on 16 Jul 2010, 04:29 PM
Hello Daniel Schilling,

Now we can see your problem, so we are managing to change the DSW temp folder to another place away from the MyDocuments folder and will include this behavior in the upcoming versions.

Your feedback is always welcome, please feel free to share any other suggestions.

Best wishes,
Rizk Sobhi
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
Jeff
Top achievements
Rank 1
answered on 04 Oct 2010, 05:58 AM
In Daniel's post, he stated  I temporary changed it to a local folder and it works. But this is not a solution for me..


I believe I am running into the same issue.  How can i change the location away from the my documents folder other than copying the file to my local drive?  Thanks

Jeff
0
A.Alexandrov
Telerik team
answered on 14 Oct 2010, 02:28 PM
Hello Jeff,

We have already fixed the problem with this folder and the fix is available in the latest build of OpenAccess. You can download it from the Latest Internal Builds section of your account. The exact version is 2010.2.1013.8.
Sorry for the delay.

Greetings,
A.Alexandrov
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
Web Services
Asked by
Daniel Schilling
Top achievements
Rank 1
Answers by
Missing User
Daniel Schilling
Top achievements
Rank 1
Jeff
Top achievements
Rank 1
A.Alexandrov
Telerik team
Share this question
or