This question is locked. New answers and comments are not allowed.
First off, I'm new to OA, so I may be missing something obvious here. Any suggestions would be apprecaited.
Regardless, I'm trying to do a simple project -- bind the categories table from NorthWind to a RadGridView. I'm getting an error that gets thrown as the form is loading.
Using VS 2010 (VB.net)
RadControls for WinForms Q2 2010 SP1
OpenAccess 2010 2 714
Here are the steps to reproduce:
1. Create a new Windows Application project
2. Add a "Telerik OpenAccess Domain Model" item and link it to Northwind and the Categories table. (default options). ASIDE: I can't click on "New Connection" when defining the model; I have to provide the connection string manually.
3. Save & Compile the project to get the Context
4. On Form1, Add an OA ObjectProvider and link to the context & Category object
5. On Form1, Add an OA ObjectView and link to the ObjectProvider
6. Add a RadGridView on Form1 and set the DataSource to be the ObjectView from step 5.
Note: At this point, the RadGridView shows the columns from the object in Design Mode.
7. Run the app. Error gets thrown.
Here's what I get:
System.InvalidOperationException was unhandled
Message=An error occurred creating the form. See Exception.InnerException for details. The error is: ObjectProvider: Helper type has no ObjectScope method.
Source=ORMTest2
StackTrace:
at RadControlsWinFormsApp1.My.MyProject.MyForms.Create__Instance__[T](T Instance) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 190
at RadControlsWinFormsApp1.My.MyProject.MyForms.get_Form1()
at RadControlsWinFormsApp1.My.MyApplication.OnCreateMainForm() in C:\Projects\ORMTest2\ORMTest2\My Project\Application.Designer.vb:line 35
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine)
at RadControlsWinFormsApp1.My.MyApplication.Main(String[] Args) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 81
at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
InnerException: System.MissingMethodException
Message=ObjectProvider: Helper type has no ObjectScope method.
Source=Telerik.OpenAccess.Windows
StackTrace:
at Telerik.OpenAccess.ObjectProvider.InitializeHelper(Boolean reset)
at Telerik.OpenAccess.ObjectProvider.get_ObjectContext()
at Telerik.OpenAccess.ObjectProvider.InitializeDataSource(Boolean refresh)
at Telerik.OpenAccess.ObjectProvider.GetObjectSet()
at Telerik.OpenAccess.ObjectProvider.get_Objects()
at Telerik.OpenAccess.ObjectView.GetMyObjectList(Boolean firechanged)
at Telerik.OpenAccess.ObjectView.get_Count()
at System.Windows.Forms.ListBindingHelper.GetFirstItemByEnumerable(IEnumerable enumerable)
at System.Windows.Forms.ListBindingHelper.GetListItemTypeByEnumerable(IEnumerable iEnumerable)
at System.Windows.Forms.ListBindingHelper.GetListItemType(Object list)
at Telerik.WinControls.Data.RadListSource`1.Bind(Object dataSource, String dataMember)
at Telerik.WinControls.Data.RadListSource`1.notification_Initialized(Object sender, EventArgs e)
at System.Windows.Forms.BindingSource.OnInitialized()
at System.Windows.Forms.BindingSource.System.ComponentModel.ISupportInitialize.EndInit()
at RadControlsWinFormsApp1.Form1.InitializeComponent() in C:\Projects\ORMTest2\ORMTest2\Form1.Designer.vb:line 110
at RadControlsWinFormsApp1.Form1..ctor()
InnerException:
Any suggestions?
Regardless, I'm trying to do a simple project -- bind the categories table from NorthWind to a RadGridView. I'm getting an error that gets thrown as the form is loading.
Using VS 2010 (VB.net)
RadControls for WinForms Q2 2010 SP1
OpenAccess 2010 2 714
Here are the steps to reproduce:
1. Create a new Windows Application project
2. Add a "Telerik OpenAccess Domain Model" item and link it to Northwind and the Categories table. (default options). ASIDE: I can't click on "New Connection" when defining the model; I have to provide the connection string manually.
3. Save & Compile the project to get the Context
4. On Form1, Add an OA ObjectProvider and link to the context & Category object
5. On Form1, Add an OA ObjectView and link to the ObjectProvider
6. Add a RadGridView on Form1 and set the DataSource to be the ObjectView from step 5.
Note: At this point, the RadGridView shows the columns from the object in Design Mode.
7. Run the app. Error gets thrown.
Here's what I get:
System.InvalidOperationException was unhandled
Message=An error occurred creating the form. See Exception.InnerException for details. The error is: ObjectProvider: Helper type has no ObjectScope method.
Source=ORMTest2
StackTrace:
at RadControlsWinFormsApp1.My.MyProject.MyForms.Create__Instance__[T](T Instance) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 190
at RadControlsWinFormsApp1.My.MyProject.MyForms.get_Form1()
at RadControlsWinFormsApp1.My.MyApplication.OnCreateMainForm() in C:\Projects\ORMTest2\ORMTest2\My Project\Application.Designer.vb:line 35
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine)
at RadControlsWinFormsApp1.My.MyApplication.Main(String[] Args) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 81
at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
InnerException: System.MissingMethodException
Message=ObjectProvider: Helper type has no ObjectScope method.
Source=Telerik.OpenAccess.Windows
StackTrace:
at Telerik.OpenAccess.ObjectProvider.InitializeHelper(Boolean reset)
at Telerik.OpenAccess.ObjectProvider.get_ObjectContext()
at Telerik.OpenAccess.ObjectProvider.InitializeDataSource(Boolean refresh)
at Telerik.OpenAccess.ObjectProvider.GetObjectSet()
at Telerik.OpenAccess.ObjectProvider.get_Objects()
at Telerik.OpenAccess.ObjectView.GetMyObjectList(Boolean firechanged)
at Telerik.OpenAccess.ObjectView.get_Count()
at System.Windows.Forms.ListBindingHelper.GetFirstItemByEnumerable(IEnumerable enumerable)
at System.Windows.Forms.ListBindingHelper.GetListItemTypeByEnumerable(IEnumerable iEnumerable)
at System.Windows.Forms.ListBindingHelper.GetListItemType(Object list)
at Telerik.WinControls.Data.RadListSource`1.Bind(Object dataSource, String dataMember)
at Telerik.WinControls.Data.RadListSource`1.notification_Initialized(Object sender, EventArgs e)
at System.Windows.Forms.BindingSource.OnInitialized()
at System.Windows.Forms.BindingSource.System.ComponentModel.ISupportInitialize.EndInit()
at RadControlsWinFormsApp1.Form1.InitializeComponent() in C:\Projects\ORMTest2\ORMTest2\Form1.Designer.vb:line 110
at RadControlsWinFormsApp1.Form1..ctor()
InnerException:
Any suggestions?