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

Telerik.OpenAccess.Query<T>

8 Answers 284 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.
Laurent Fabre
Top achievements
Rank 2
Laurent Fabre asked on 13 Apr 2010, 04:22 PM
Hi,

Since I switched to Visual 2010 I see an error upon namespace declaration :

"Using the generic type 'Telerik.OpenAccess.Query<T>' requires 1 type arguments"

Of course if I delete the declaration I cannot use the .Extent<T>() method anymore......

If add a reference to all the required Assemblies including Telerik.OpenAccess.40.Extensions but nothing seems to operate.

I'm pretty sure it happened when I switcher to framework 4.0 target platform.

Any hint would be greatly appreciated.

Laurent

8 Answers, 1 is accepted

Sort by
0
Laurent Fabre
Top achievements
Rank 2
answered on 13 Apr 2010, 05:02 PM
Ok I solved it by adding also the 3.5 extensions (which is a bit counter-intuitive...). Sometimes I seed a VistaDB 4.0 not found error and I don't use VistaDB to the best of my knowledge. Is this related to OpenAccess ?

LF
0
Thomas
Telerik team
answered on 13 Apr 2010, 06:15 PM
Hi Laurent,

yes, adding the new Telerik.OpenAccess.35 assembly (containing the code that was formerly located in the Telerik.OpenAccess.Query assembly) is the right step.

Wrt. VistaDB: This database has been added in the latest release. How are you seeing such not found errors, when do they occur? 

All the best,
Thomas
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.
0
Laurent Fabre
Top achievements
Rank 2
answered on 13 Apr 2010, 06:24 PM
Ok :)

They occur systematically upon the first reload of the website wether it's dev or production, as soon as I hit reload a second time it disappear and never appear again (hopefully). My dev is a IIS 7.5 running Windows 7 x64 and my prod is an IIS 7 running Windows 2008 SP2. Both use ASP.NET MVC 2 and Framework 4.0. Looks like a race condition of some kind.

Could not load file or assembly 'VistaDB.4, Version=4.0.0.0, Culture=neutral, PublicKeyToken=dfc935afe2125461' or one of its dependencies. The system cannot find the file specified.


Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.IO.FileNotFoundException: Could not load file or assembly 'VistaDB.4, Version=4.0.0.0, Culture=neutral, PublicKeyToken=dfc935afe2125461' or one of its dependencies. The system cannot find the file specified.

Source Error: 

Line 124:             <div style="margin-left:212px;width:815px">Line 125:                <form id="form1" runat="server">Line 126:                    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">Line 127:                    </telerik:RadScriptManager>Line 128:                    <telerik:RadFormDecorator ID="FormDecorator1" runat="server" DecoratedControls="All" ControlsToSkip="Fieldset,Select" DecorationZoneID="TelerikContent">

Source File: c:\Users\Laurent\Documents\Visual Studio 2010\Projects\konnect\Kirranet.Centrex.Mvc\Views\Shared\Site.Master    Line: 126 

Stack Trace: 

[FileNotFoundException: Could not load file or assembly 'VistaDB.4, Version=4.0.0.0, Culture=neutral, PublicKeyToken=dfc935afe2125461' or one of its dependencies. The system cannot find the file specified.]   System.ModuleHandle.ResolveType(RuntimeModule module, Int32 typeToken, IntPtr* typeInstArgs, Int32 typeInstCount, IntPtr* methodInstArgs, Int32 methodInstCount, ObjectHandleOnStack type) +0   System.ModuleHandle.ResolveTypeHandleInternal(RuntimeModule module, Int32 typeToken, RuntimeTypeHandle[] typeInstantiationContext, RuntimeTypeHandle[] methodInstantiationContext) +180   System.Reflection.RuntimeModule.ResolveType(Int32 metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments) +192   System.Reflection.CustomAttribute.FilterCustomAttributeRecord(CustomAttributeRecord caRecord, MetadataImport scope, Assembly& lastAptcaOkAssembly, RuntimeModule decoratedModule, MetadataToken decoratedToken, RuntimeType attributeFilterType, Boolean mustBeInheritable, Object[] attributes, IList derivedAttributes, RuntimeType& attributeType, IRuntimeMethodInfo& ctor, Boolean& ctorHasParameters, Boolean& isVarArg) +115   System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeModule decoratedModule, Int32 decoratedMetadataToken, Int32 pcaCount, RuntimeType attributeFilterType, Boolean mustBeInheritable, IList derivedAttributes, Boolean isDecoratedTargetSecurityTransparent) +426   System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeAssembly assembly, RuntimeType caType) +103   System.Reflection.RuntimeAssembly.GetCustomAttributes(Boolean inherit) +33   System.Web.UI.AssemblyCache.GetAjaxFrameworkAssemblyAttribute(Assembly assembly) +76   System.Web.UI.ScriptManager.get_DefaultAjaxFrameworkAssembly() +388   System.Web.UI.ScriptManager..ctor() +26   Telerik.Web.UI.RadScriptManager..ctor() +14   ASP.views_shared_site_master.__BuildControlRadScriptManager1() in c:\Users\Laurent\Documents\Visual Studio 2010\Projects\konnect\Kirranet.Centrex.Mvc\Views\Shared\Site.Master:126   ASP.views_shared_site_master.__BuildControlform1() in c:\Users\Laurent\Documents\Visual Studio 2010\Projects\konnect\Kirranet.Centrex.Mvc\Views\Shared\Site.Master:125   ASP.views_shared_site_master.__BuildControlTree(views_shared_site_master __ctrl) in c:\Users\Laurent\Documents\Visual Studio 2010\Projects\konnect\Kirranet.Centrex.Mvc\Views\Shared\Site.Master:1   ASP.views_shared_site_master.FrameworkInitialize() in c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\e4a1eda9\623f6129\App_Web_site.master.639c3968.j-zwqbwv.0.cs:0   System.Web.UI.UserControl.InitializeAsUserControlInternal() +35   System.Web.UI.MasterPage.CreateMaster(TemplateControl owner, HttpContext context, VirtualPath masterPageFile, IDictionary contentTemplateCollection) +8832342   System.Web.UI.Page.get_Master() +54   System.Web.UI.Page.ApplyMasterPage() +15   System.Web.UI.Page.PerformPreInit() +45   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +328


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.1

0
Thomas
Telerik team
answered on 13 Apr 2010, 06:49 PM
Hello Laurent,

there is already a version 2010.1.312.2  available which contains a fix for this issue. Can you update to this version?

Regards,
Thomas
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.
0
Laurent Fabre
Top achievements
Rank 2
answered on 13 Apr 2010, 06:51 PM
I already upgraded this morning and yes I had this issue priori the upgrade but I just looked at the properties of the OpenAccess.dll and it says 2010.1.312.2. Maybe that's a new build with the same version ?

LF
0
Accepted
Thomas
Telerik team
answered on 15 Apr 2010, 10:12 AM
Hello Laurent,

we have just uploaded our newest build 2010.1.414.3 that contains an additional check for this issue. 

Best wishes,
Thomas
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.
0
Laurent Fabre
Top achievements
Rank 2
answered on 16 Apr 2010, 03:04 AM
Hi Thomas,

I'll try this build tomorrow and keep you posted. Thanks.

LF
0
Laurent Fabre
Top achievements
Rank 2
answered on 17 Apr 2010, 06:00 AM
It works :) Thank you.
Tags
General Discussions
Asked by
Laurent Fabre
Top achievements
Rank 2
Answers by
Laurent Fabre
Top achievements
Rank 2
Thomas
Telerik team
Share this question
or