Build fails

7 posts, 0 answers
  1. Michael Bendtsen
    Michael Bendtsen avatar
    6 posts
    Member since:
    Nov 2009

    Posted 18 Nov 2009 Link to this post

    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
  2. Michael Bendtsen
    Michael Bendtsen avatar
    6 posts
    Member since:
    Nov 2009

    Posted 18 Nov 2009 Link to this post

    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.
  3. DevCraft banner
  4. Jan Blessenohl
    Admin
    Jan Blessenohl avatar
    707 posts

    Posted 18 Nov 2009 Link to this post

    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.
  5. Michael Bendtsen
    Michael Bendtsen avatar
    6 posts
    Member since:
    Nov 2009

    Posted 19 Nov 2009 Link to this post

    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?
  6. Jan Blessenohl
    Admin
    Jan Blessenohl avatar
    707 posts

    Posted 19 Nov 2009 Link to this post

    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.
  7. Axe
    Axe avatar
    88 posts
    Member since:
    Feb 2007

    Posted 22 Feb 2010 Link to this post

    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.
  8. Jan Blessenohl
    Admin
    Jan Blessenohl avatar
    707 posts

    Posted 26 Feb 2010 Link to this post

    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.
Back to Top
DevCraft banner