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

HELP on RENT A CAR DEMO PLEAE

3 Answers 106 Views
Getting Started
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Stuart
Top achievements
Rank 1
Stuart asked on 06 Mar 2011, 04:03 PM
Hi There

I'm having real problems with the  RENT A CAR DEMO.  I have just installed the very latest version of the TELERIK ultimate collection, I tried running the rent a car DEMO but got an error regarding the 
Telerik.OpenAccess, Version=2010.2.714.1, Culture=neutral, PublicKeyToken=7CE17EEAF1D59342"

So I changed the webconfic to :
Telerik.OpenAccess, Version=2010.3.1125.1, Culture=neutral, PublicKeyToken=7CE17EEAF1D59342"/>

I also chaged all the DLL's in the BIn file to the most recent versions open acces version, asnd did the automatix upgrade wich was prompted by Visual Studio 2010..

BUT...... NOW I GET THE ERROR BELOW...  PLease Tell me what I am supposed to do..  thanks so much

Stu

erver Error in '/Telerik.CarRental.Web' Application.
Could not load file or assembly 'Telerik.OpenAccess, Version=2010.2.714.1, Culture=neutral, PublicKeyToken=7ce17eeaf1d59342' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
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.FileLoadException: Could not load file or assembly 'Telerik.OpenAccess, Version=2010.2.714.1, Culture=neutral, PublicKeyToken=7ce17eeaf1d59342' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
 
Source Error:
 
Line 190:            cmbCarsSearch.Items.Add(new RadComboBoxItem(make, make));
Line 191:        }
Line 192:    }
Line 193:
Line 194:    protected void cmbCarsSearch_SelectedIndexChanged(object sender, RadComboBoxSelectedIndexChangedEventArgs e)
 
 
Source File: c:\Users\Stuart Cook\Documents\Visual Studio 2010\WebSites\CarRental-Origional\CarRental\Telerik.CarRental.Web\DailySchedule.aspx.cs    Line: 192
 
Assembly Load Trace: The following information can be helpful to determine why the assembly 'Telerik.OpenAccess, Version=2010.2.714.1, Culture=neutral, PublicKeyToken=7ce17eeaf1d59342' could not be loaded.

Telerik.OpenAccess, Version=2010.3.1125.1, Culture=neutral, PublicKeyToken=7CE17EEAF1D59342"/></assemblies></compilation>

3 Answers, 1 is accepted

Sort by
0
PetarP
Telerik team
answered on 08 Mar 2011, 06:04 PM
Hello Stuart,

It seems that you are having problems with upgrading the references to your latest OpenAccess version. The best and easiest way to do that would be to run our upgrade reference wizard that will do everything for you. I believe you will find the following help topic useful. 

Regards,
Petar
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
Stuart
Top achievements
Rank 1
answered on 09 Mar 2011, 01:38 AM

Hi there Petar

Thanks for your help, I have run the open access upgrade and checked that assembly references are 2010.3.1125.1  but i still get the error below when i debug..  I'm guessing that this is related to Telerik.CarRental.Core.dll open access upgrade does not seam to impact this DLL..  i don't know what to do now to get this to work... Please see the error below...

Can you give me any further instructions,  or possibly update that sample on your websites so it works with the most recent release of open access and the ASP Ajax controls..

thanks a lot for your help

Stuart 
Server Error in '/Telerik.CarRental.Web' Application.
 
Could not load file or assembly 'Telerik.OpenAccess, Version=2010.2.714.1, Culture=neutral, PublicKeyToken=7ce17eeaf1d59342' 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 'Telerik.OpenAccess, Version=2010.2.714.1, Culture=neutral, PublicKeyToken=7ce17eeaf1d59342' or one of its dependencies. The system cannot find the file specified.
 
Source Error:
 
 
Line 12: <body>
Line 13:     <form id="form1" class="mainForm" runat="server">
Line 14:     <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
Line 15:     </telerik:RadScriptManager>
Line 16:    
 
Source File: c:\Users\Stuart\Documents\Visual Studio 2010\CarRental\Telerik.CarRental.Web\Masters\Master.master    Line: 14
 
Assembly Load Trace: The following information can be helpful to determine why the assembly 'Telerik.OpenAccess, Version=2010.2.714.1, Culture=neutral, PublicKeyToken=7ce17eeaf1d59342' could not be loaded.
 
 
=== Pre-bind state information ===
LOG: User = Stuart-PC\Stuart
LOG: DisplayName = Telerik.OpenAccess, Version=2010.2.714.1, Culture=neutral, PublicKeyToken=7ce17eeaf1d59342
 (Fully-specified)
LOG: Appbase = file:///C:/Users/Stuart/Documents/Visual Studio 2010/CarRental/Telerik.CarRental.Web/
LOG: Initial PrivatePath = C:\Users\Stuart\Documents\Visual Studio 2010\CarRental\Telerik.CarRental.Web\bin
Calling assembly : Telerik.CarRental.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null.
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: C:\Users\Stuart\Documents\Visual Studio 2010\CarRental\Telerik.CarRental.Web\web.config
LOG: Using host configuration file:
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
LOG: Post-policy reference: Telerik.OpenAccess, Version=2010.2.714.1, Culture=neutral, PublicKeyToken=7ce17eeaf1d59342
LOG: Attempting download of new URL file:///C:/Users/Stuart/AppData/Local/Temp/Temporary ASP.NET Files/telerik.carrental.web/742d00c5/cbb5b22a/Telerik.OpenAccess.DLL.
LOG: Attempting download of new URL file:///C:/Users/Stuart/AppData/Local/Temp/Temporary ASP.NET Files/telerik.carrental.web/742d00c5/cbb5b22a/Telerik.OpenAccess/Telerik.OpenAccess.DLL.
LOG: Attempting download of new URL file:///C:/Users/Stuart/Documents/Visual Studio 2010/CarRental/Telerik.CarRental.Web/bin/Telerik.OpenAccess.DLL.
LOG: Attempting download of new URL file:///C:/Users/Stuart/Documents/Visual Studio 2010/CarRental/Telerik.CarRental.Web/bin/Telerik.OpenAccess/Telerik.OpenAccess.DLL.
LOG: Attempting download of new URL file:///C:/Users/Stuart/AppData/Local/Temp/Temporary ASP.NET Files/telerik.carrental.web/742d00c5/cbb5b22a/Telerik.OpenAccess.EXE.
LOG: Attempting download of new URL file:///C:/Users/Stuart/AppData/Local/Temp/Temporary ASP.NET Files/telerik.carrental.web/742d00c5/cbb5b22a/Telerik.OpenAccess/Telerik.OpenAccess.EXE.
LOG: Attempting download of new URL file:///C:/Users/Stuart/Documents/Visual Studio 2010/CarRental/Telerik.CarRental.Web/bin/Telerik.OpenAccess.EXE.
LOG: Attempting download of new URL file:///C:/Users/Stuart/Documents/Visual Studio 2010/CarRental/Telerik.CarRental.Web/bin/Telerik.OpenAccess/Telerik.OpenAccess.EXE.
 
Stack Trace:
 
 
[FileNotFoundException: Could not load file or assembly 'Telerik.OpenAccess, Version=2010.2.714.1, Culture=neutral, PublicKeyToken=7ce17eeaf1d59342' 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() +30
   ASP.masters_master_master.__BuildControlRadScriptManager1() in c:\Users\Stuart\Documents\Visual Studio 2010\CarRental\Telerik.CarRental.Web\Masters\Master.master:14
   ASP.masters_master_master.__BuildControlform1() in c:\Users\Stuart\Documents\Visual Studio 2010\CarRental\Telerik.CarRental.Web\Masters\Master.master:13
   ASP.masters_master_master.__BuildControlTree(masters_master_master __ctrl) in c:\Users\Stuart\Documents\Visual Studio 2010\CarRental\Telerik.CarRental.Web\Masters\Master.master:1
   ASP.masters_master_master.FrameworkInitialize() in c:\Users\Stuart\Documents\Visual Studio 2010\CarRental\Telerik.CarRental.Web\Masters\Master.master.cs:912308
   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
Alexander
Telerik team
answered on 14 Mar 2011, 07:29 AM
Hello Stuart,

It seems a reference to the old version of OpenAccess is still present in the project. The easiest way to update that would be to do a search in the entire solution for the string "2010.2.714.1" and replace it with the version you have installed wherever this string is found, this includes aspx pages and configuration files. Also, please delete any OpenAccess assemblies you find in the bin folder of the web project before rebuilding the solution.
We will try to update the uploaded demo soon. Please excuse us for the inconvenience caused.

Greetings,
Alexander
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Tags
Getting Started
Asked by
Stuart
Top achievements
Rank 1
Answers by
PetarP
Telerik team
Stuart
Top achievements
Rank 1
Alexander
Telerik team
Share this question
or