CRASH: Generated OpenAccess Domain Model Wizard

3 posts, 0 answers
  1. Fred Lackey
    Fred Lackey avatar
    7 posts
    Member since:
    Jul 2012

    Posted 21 May 2012 Link to this post

    Any attempt to generate the OpenAccess Domain Model with a separate service and hosting project results in VS2K10 crashing.  I'm on version: Telerik-OpenAccess-ORM-2012.1.427.1

    Any thoughts?



    An unhandled exception occurred and the process was terminated.

    Application ID: DefaultDomain

    Process ID: 728

    Exception: System.AggregateException

    Message: A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread.

    StackTrace:    at System.Threading.Tasks.TaskExceptionHolder.Finalize()

    InnerException: System.AggregateException

    Message: One or more errors occurred.

    StackTrace:    at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
       at System.Threading.Tasks.Task`1.get_Result()
       at Telerik.OpenAccess.Extensibility.InteractiveWorkflow.AdvanceToTheNext(Task`1 task)
       at System.Threading.Tasks.Task`1.<>c__DisplayClass17.<ContinueWith>b__16(Object obj)
       at System.Threading.Tasks.Task.InnerInvoke()
       at System.Threading.Tasks.Task.Execute()

    InnerException: System.InvalidOperationException

    Message: The calling thread cannot access this object because a different thread owns it.

    StackTrace:    at System.Windows.Threading.Dispatcher.VerifyAccess()
       at System.Windows.DependencyObject.GetValue(DependencyProperty dp)
       at System.Windows.Window.GetWindow(DependencyObject dependencyObject)
       at Telerik.OpenAccess.DSW.SelectDomainModelAddInHelper.ShowOutputServiceProjectFrameworkVersionIncompatibleMessage(IView view, IProject outProject, IProject codeBehindProject)
       at Telerik.OpenAccess.DSW.SelectDomainModelAddIn.ValidateData(SelectDomainModelViewModel viewModel)
       at Telerik.OpenAccess.DSW.DswAddIn`2.ValidateData(IViewModel viewModel)
       at Telerik.OpenAccess.Extensibility.BaseViewAddIn.Finish()
       at Telerik.OpenAccess.Extensibility.InteractiveWorkflow.<>c__DisplayClass4.<DoPerformNext>b__1()
       at System.Threading.Tasks.Task`1.InvokeFuture(Object futureAsObj)
       at System.Threading.Tasks.Task.InnerInvoke()
       at System.Threading.Tasks.Task.Execute()
  2. Fred Lackey
    Fred Lackey avatar
    7 posts
    Member since:
    Jul 2012

    Posted 21 May 2012 Link to this post

    A bit of helpful info...

    The problem seems to have aggravated by the "New Project" wizard in VS2K10.  When creating a WCF Service Library the wizard uses the ".NET Client Profile" as the target framework:

    MyProject.Data (Target Framework: .NET 4)
    MyProject.DataHost (Target Framework: .NET 4)
    MyProject.DataService (Target Framework: .NET 4 Client Profile)

    Changing the target framework to use .NET 4 on all three projects (not the client profile) allowed me to get past the error.   

    It would probably be a good idea to account for these differences in the next release of ORM.

    Good luck,
  3. Viktor Zhivkov
    Viktor Zhivkov avatar
    317 posts

    Posted 23 May 2012 Link to this post

    Hi Fred,

    This is a known issue that we have introduced in the latest internal build, please excuse us for the inconvenience caused. We have already fixed the problem and the fix will be available in our official Q2 2012 release coming in the beginning of June.

    Thank you for sharing the solution with the community and if you have any questions about OpenAccess, please do not hesitate to contact us.

    Viktor Zhivkov
    the Telerik team
    Follow @OpenAccessORM Twitter channel to be the first one to get the latest updates on new releases, tips and tricks and sneak peeks at our product labs!
Back to Top