Err: Could not load type 'Devart.Common.ProviderVersionInfo

Err: Could not load type 'Devart.Common.ProviderVersionInfo

Postby PeterKitts » Fri 13 Nov 2009 12:02

I have just installed the full licensed professional version of dotConnect for Oracle. I uninstalled the trial version using the uninstaller and then ran the install for 5.25 pro. Now when I go back into VS2008 and try to run the application (built using Linq To Oracle) I get the following error:

Code: Select all
Could not load type 'Devart.Common.ProviderVersionInformation' from assembly 'Devart.Data.Oracle, Version=5.25.49.0, Culture=neutral, PublicKeyToken=09af7300eec23701'.


The stack trace:
==========
Code: Select all
[TypeLoadException: Could not load type 'Devart.Common.ProviderVersionInformation' from assembly 'Devart.Data.Oracle, Version=5.25.49.0, Culture=neutral, PublicKeyToken=09af7300eec23701'.]
   Devart.Data.Oracle.Linq.Provider.OracleDataSourceInfo..ctor() +0
   Devart.Data.Oracle.Linq.Provider.OracleDataSourceInfo..cctor() +21

[TypeInitializationException: The type initializer for 'Devart.Data.Oracle.Linq.Provider.OracleDataSourceInfo' threw an exception.]
   Devart.Data.Oracle.Linq.Provider.OracleDataSourceInfo.get_InvariantInfo() +0
   Devart.Data.Oracle.Linq.Provider.OracleDataProvider.get_DataSourceInfo() +5
   Devart.Data.Linq.h..ctor(DataContext A_0, MetaModel A_1) +110
   Devart.Data.Linq.DataContext.a(Object A_0, MappingSource A_1, Type A_2) +457
   Devart.Data.Linq.DataContext..ctor(String connectionString, MappingSource mapping) +50
   BI.Model.FLOPSDataContext..ctor() in C:\SubVersion\FlightOperations\BI\model\FLOPSDataContext.Designer.cs:68
   BI.BusinessInterface..ctor() in C:\SubVersion\FlightOperations\BI\BusinessInterface.cs:69
   FLOPS.Global.Session_Start(Object sender, EventArgs e) in C:\SubVersion\FlightOperations\FLOPS\Global.asax.cs:24
   System.Web.SessionState.SessionStateModule.RaiseOnStart(EventArgs e) +8776708
   System.Web.SessionState.SessionStateModule.CompleteAcquireState() +237
   System.Web.SessionState.SessionStateModule.BeginAcquireState(Object source, EventArgs e, AsyncCallback cb, Object extraData) +504
   System.Web.AsyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +66
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +155


I've checked the GAC and assembly versions are correct. I've also updated the references in the project.

Any help will be greatly appreciated.

Regards,

Peter.
PeterKitts
 
Posts: 2
Joined: Fri 13 Nov 2009 11:51
Location: Barrow-in-Furness, UK

Postby Shalex » Mon 16 Nov 2009 11:57

Please clear the bin and obj folders of your project, remove the references to the Devart assemblies from your project and re-add them (the 5.25.49 version of dotConnect for Oracle includes Devart.Data.dll 5.0.11.0 and Devart.Data.Oracle.dll 5.25.49.0). Rebuild your project.
Shalex
Devart Team
 
Posts: 7824
Joined: Thu 14 Aug 2008 12:44

Postby PeterKitts » Fri 20 Nov 2009 10:45

Cheers.

I did that and it worked. Should have thought of that sooner.
PeterKitts
 
Posts: 2
Joined: Fri 13 Nov 2009 11:51
Location: Barrow-in-Furness, UK


Return to dotConnect for Oracle