This question is locked. New answers and comments are not allowed.
Hey people,
I get the following error message in my task list in visual studio, when i try to use my telerik open acces datasources with any of the controls:
The ascx file where I get this error:
My OpenAccess version is: 2010.2.804.5
Any ideas what could be the problem?
Regards,
Gabor Varga
Xapt Hungary Ltd.
I get the following error message in my task list in visual studio, when i try to use my telerik open acces datasources with any of the controls:
An error was encountered while obtainining the Persistent types defined in the solution.Please build the projects in the solution and try again. System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidCastException: Specified cast is not valid. at System.StubHelpers.InterfaceMarshaler.ConvertToNative(Object objSrc, IntPtr itfMT, IntPtr classMT, Int32 flags) at EnvDTE.Project.get_Object() at Telerik.OpenAccess.Sdk.Addin.Model.VAProject.IsWebProject() at Telerik.OpenAccess.Sdk.Addin.Model.VAProject.GetProjectItemExtension() at Telerik.OpenAccess.Sdk.Addin.Model.VASolution.RefillProjectCache() at Telerik.OpenAccess.Sdk.Addin.Model.VASolution.SolutionOpened() at Telerik.OpenAccess.Sdk.Addin.Model.VASolution..ctor(BaseAddin addin, _DTE dte) at Telerik.OpenAccess.Sdk.Addin.Model.VASolution.GetSolution(_DTE applicationObject) at Telerik.OpenAccess.Sdk.Addin.Core.DesignTimeHelper.GetHelperClassNamesFromWebSite() at Telerik.OpenAccess.Sdk.Addin.Core.DesignTimeHelper.DoWorkInAnotherDomain() at System.AppDomain.DoCallBack(CrossAppDomainDelegate callBackDelegate) at System.AppDomain.DoCallBack(CrossAppDomainDelegate callBackDelegate) at Telerik.OpenAccess.Sdk.Addin.Core.DesignTimeHelper.Initialize() at Telerik.OpenAccess.Sdk.Addin.Core.DesignTimeHelper.GetProxyTypes() at Telerik.OpenAccess.Sdk.Addin.API.RuntimeSupport.GetProxyTypes() --- End of inner exception stack trace --- at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner) at System.RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeType typeOwner) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at Telerik.OpenAccess.RT.PersistentClassesProvider.ObtainTypes() at Telerik.OpenAccess.RT.PersistentClassesProvider.GetClassesSorted() at Telerik.OpenAccess.Sdk.Addin.Design.PersclassTypeConverter.GetPersistentClasses() The ascx file where I get this error:
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Functions.ascx.cs" Inherits="Xapt.AgilePoint.UI.Microsite.UserControls.Functions" %> <%@ Register Assembly="Telerik.OpenAccess.Web" Namespace="Telerik.OpenAccess" TagPrefix="telerik" %> <%@ Register Assembly="Xapt.General.Web" Namespace="Xapt.General.Web.UI" TagPrefix="xapt" %> <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> <%@ Register Assembly="Telerik.OpenAccess.Web" Namespace="Telerik.OpenAccess" TagPrefix="telerik" %> <div class="mediumCenter"> <telerik:OpenAccessDataSource ID="SiteFunctions" runat="server" EnableDelete="False" EnableInsert="False" EnableUpdate="False" ObjectContextProvider="Xapt.AgilePoint.Data.SiteContextModel.SiteEntityDiagrams, Xapt.AgilePoint.Data.SiteContextModel" TypeName="Xapt.AgilePoint.Data.SiteContextModel.SiteFunction" AutoGenerateWhereClause="True"> </telerik:OpenAccessDataSource> <telerik:RadGrid ID="FunctionsGrid" runat="server" AutoGenerateColumns="False" GridLines="None" oneditcommand="FunctionsGrid_EditCommand" OnInsertCommand="FunctionsGrid_InsertCommand" DataSourceID="SiteFunctions" > <MasterTableView CommandItemDisplay="Bottom" DataKeyNames="FunctionId" > <CommandItemSettings ExportToPdfText="Export to Pdf"></CommandItemSettings> <Columns > <telerik:GridBoundColumn HeaderText="FunctionId" UniqueName="columnFunctionId" DataField="FunctionId" Visible="false"> <ItemStyle HorizontalAlign="Left" /> </telerik:GridBoundColumn> <telerik:GridBoundColumn HeaderText="FunctionName" UniqueName="columnFunctionName" Resizable="true" DataField="Name" ColumnEditorID="GridTextBoxColumnEditor1"> <ItemStyle HorizontalAlign="Left" /> </telerik:GridBoundColumn> <telerik:GridEditCommandColumn HeaderText="" UniqueName="EditCommandColumn" ButtonType="ImageButton"> <HeaderStyle Width="15%" /> <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" /> </telerik:GridEditCommandColumn> </Columns> <EditFormSettings ColumnNumber="1" > <FormMainTableStyle Width="100%" /> <EditColumn ButtonType="ImageButton"/> <FormTableButtonRowStyle HorizontalAlign="Right" /> </EditFormSettings> </MasterTableView> </telerik:RadGrid> <telerik:GridTextBoxColumnEditor ID="GridTextBoxColumnEditor1" runat="server" TextBoxStyle-Width="200px" /> </div> <telerik:RadWindowManager ID="RadWindowManager1" runat="server" Modal="True" Title="Test" Behavior="Default" InitialBehavior="None"> </telerik:RadWindowManager> <telerik:RadWindow ID="RadWindowEditFunction" runat="server" Width="900" Height="500" Modal="true" VisibleOnPageLoad="false" OnClientClose="Window_OnClientClose"> </telerik:RadWindow>My OpenAccess version is: 2010.2.804.5
Any ideas what could be the problem?
Regards,
Gabor Varga
Xapt Hungary Ltd.