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

CRASH: Generated OpenAccess Domain Model Wizard

2 Answers 47 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Fred Lackey
Top achievements
Rank 1
Fred Lackey asked on 21 May 2012, 04:37 PM
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?

Thanx,
Fred

------

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 Answers, 1 is accepted

Sort by
0
Fred Lackey
Top achievements
Rank 1
answered on 21 May 2012, 04:47 PM
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,
Fred
0
Viktor Zhivkov
Telerik team
answered on 23 May 2012, 11:44 AM
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.

Regards,
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!
Tags
General Discussions
Asked by
Fred Lackey
Top achievements
Rank 1
Answers by
Fred Lackey
Top achievements
Rank 1
Viktor Zhivkov
Telerik team
Share this question
or