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

Build fails

6 Answers 54 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.
Michael Bendtsen
Top achievements
Rank 1
Michael Bendtsen asked on 18 Nov 2009, 09:41 AM
Okay, I have a strange problem in Visual Studio 2010 Beta 2.

I have to projects: DAL and DALTestConsole.

I have enabled ORM on both projects. Reversed engineered the database which provides me with the ObjectScopeProvider1 and class which represent my tables. So far so good.

Now I want to make a simple test to get the connection up and running. I build the DAL project which works fine. I then use add a reference to DAL project and gets an object scope to add some data to the database. The IDE tells me that there are no errors, but when I build the entire solution the build fails, with an error telling me that it cannot find the DAL project and all my Intellisence is gone from that project. When I then build the DAL project it comes back. But, again if I build the Console project the same problem appears.

Is there some limitation in the trail or what?

Best regards,
Michael

6 Answers, 1 is accepted

Sort by
0
Michael Bendtsen
Top achievements
Rank 1
answered on 18 Nov 2009, 09:58 AM
Yes yes... I found that OpenAccess is dependent on System.Web and for some reason my console app was set to 4.0 Client Profile.

But just to clarify: Why is OpenAccess dependent on System.Web? It would seem strange if I was building a client application or a service application to include System.Web when I'm not building a web application.
0
Jan Blessenohl
Telerik team
answered on 18 Nov 2009, 10:31 AM
Hello Michael Bendtsen,
We will add a check there.

The problem is that the OpenAccess dll contains the Objectview and the OpenAccessDatasource used in forms and web scenarios. For Vs2010 we have to factor those out but the result is that we have 2 more assemblies, what I also do not like. VS2010 is a little to picky there.

Regards,
Jan Blessenohl
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Michael Bendtsen
Top achievements
Rank 1
answered on 19 Nov 2009, 01:14 PM
It may be that I am new to ORM, but it seems every where I look ORM are Web-oriented. When I look at your demo videos and at other ORM products. Are OpenAccess primarily build to support web development?
0
Jan Blessenohl
Telerik team
answered on 19 Nov 2009, 02:45 PM
Hello Michael Bendtsen,
You can use OpenAccess in all kinds of architectures. The .NET runtime system loads reference assemblies only if they are needed. This means as long as you do not use a winform or web component in your application the references are never loaded. It is secure to use OpenAccess everywhere, the Visual Studio just does more tests now.

Greetings,
Jan Blessenohl
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Axe
Top achievements
Rank 1
answered on 23 Feb 2010, 04:41 AM
So what's the solution to this? Do I add reference to System.Web? I did that but still same problem. The same solution works fine in Visual Studio 2008.
0
Jan Blessenohl
Telerik team
answered on 26 Feb 2010, 01:06 PM
Hi Axe,
We have already factored out the web and form dependency. With the Q1 release the problem will be gone. For the moment you have to set your project to use the ".NET 4.0" framework instead of ".NET 4.0 Client Profile".

Sincerely yours,
Jan Blessenohl
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
Michael Bendtsen
Top achievements
Rank 1
Answers by
Michael Bendtsen
Top achievements
Rank 1
Jan Blessenohl
Telerik team
Axe
Top achievements
Rank 1
Share this question
or