Hi -
We have multiple data providers that we've been using for several years on our DNN site. We recently upgraded the site from 4.9.5 to 5.1.2 and the site does not load now. In the web.config file we define our providers like so:
<connectionStrings>
<!-- Connection String for SQL Server 2005 Express à
<add name="SiteSqlServer" connectionString="Data Source=.;Initial Catalog=DNN;User ID=XXXXX;Password=XXXXXXX" providerName="System.Data.SqlClient" />
<add name="OasisSqlServer" connectionString="Data Source=admin-01;Initial Catalog=DB;User ID=XXXXXX;Password=XXXXXX” providerName="System.Data.SqlClient"/>
</connectionStrings>
and defined in the default providers:
data defaultProvider="SqlDataProvider">
We receive the following error:
Server Error in '/DNN' Application.
Could not load provider Bold.Providers.OasisDataProvider, Bold.Providers
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.Configuration.ConfigurationErrorsException: Could not load provider Bold.Providers.OasisDataProvider, Bold.Providers
Source Error:
Line 67: Dim type As Type = System.Web.Compilation.BuildManager.GetType(provider.Type, False, True)
Line 68: If type Is Nothing Then
Line 69: Throw New ConfigurationErrorsException(String.format("Could not load provider {0}", provider.Type))
Line 70: End If
Line 71:
|
Source File: C:\Dev-TechVSS\DotNetNuke\Library\ComponentModel\ProviderInstaller.vb
Line: 69
Stack Trace:
[ConfigurationErrorsException: Could not load provider Bold.Providers.OasisDataProvider, Bold.Providers]
DotNetNuke.ComponentModel.ProviderInstaller.InstallProvider(IContainer container, Provider provider) in C:\Dev-TechVSS\DotNetNuke\Library\ComponentModel\ProviderInstaller.vb:69
DotNetNuke.ComponentModel.ProviderInstaller.InstallComponents(IContainer container) in C:\Dev-TechVSS\DotNetNuke\Library\ComponentModel\ProviderInstaller.vb:59
DotNetNuke.ComponentModel.ComponentFactory.InstallComponents(IComponentInstaller[] installers) in C:\Dev-TechVSS\DotNetNuke\Library\ComponentModel\ComponentFactory.vb:42
DotNetNuke.Common.Global.Application_Start(Object Sender, EventArgs E) in C:\Dev-TechVSS\DotNetNuke\Website\App_Code\Global.asax.vb:72
|
Version Information: Microsoft .NET Framework Version:2.0.50727.3082; ASP.NET Version:2.0.50727.3082
Any ideas why this is occuring? Thanks!
<providers>
<clear />
<add name="SqlDataProvider" type="DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider" connectionStringName="SiteSqlServer" upgradeConnectionString="" providerPath="~\Providers\DataProviders\SqlDataProvider\" objectQualifier="" databaseOwner="dbo" />
<add name="OasisDataProvider" type="Bold.Providers.OasisDataProvider, Bold.Providers" connectionStringName="OasisSqlServer" upgradeConnectionString="" providerPath="~\Providers\DataProviders\OasisDataProvider\" objectQualifier="" databaseOwner="dbo"/>
</providers>
</data>