Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Mar 01, 2013 04:29 AM by Pengzhen Song - MSFT
Member
182 Points
50 Posts
Feb 28, 2013 08:51 AM|LINK
I am using visual studio 2008 +IBM DB2 version 8.1.2.1. The below line i have added in web.config file.
<DbProviderFactories>
<add name="IBM DB2.NET Data Provider" invariant="IBM.Data.DB2" description="IBM DB2 Data Provider for .NET Framework 2.0" type="IBM.Data.DB2.DB2Factory,IBM.Data.DB2, Version=8.1.2, Culture=neutral, PublicKeyToken=7c307b91aa13d208"></add></DbProviderFactories>
I could see that the version details in c:\windows\assembly.
Then too im getting error as "Failed to Load or Register .net framework data provider"
I have only one version of db2 on my machine and in assembly also i could see oly one version.
I searched a lot in google but couldnt find anything.
I have a doubt,whether this 8.1 is supported by VS 2008 or not
Please help
Thanks in advance
Abi.
634 Points
210 Posts
Feb 28, 2013 08:57 AM|LINK
You can registry data provider by add refrence option in asp.net .
Make sure IBM db data provider installed
Feb 28, 2013 09:06 AM|LINK
i added reference..but still the same
i could see IBM.Data.db2 dll in assembly....is there anyother way to check whether it is installed?
It should be in GAC ??
Star
8662 Points
889 Posts
Microsoft
Mar 01, 2013 04:29 AM|LINK
Hi,
You can check the machine.config found in
\Windows\Microsoft.net\Framework\vXXXX\Config
<system.data> <DbProviderFactories> <add name="Odbc Data Provider" invariant="System.Data.Odbc" ... /> <add name="OleDb Data Provider" invariant="System.Data.OleDb" ... /> <add name="OracleClient Data Provider" invariant="System.Data ... /> <add name="SqlClient Data Provider" invariant="System.Data ... /> <add name="IBM DB2 for i .NET Provider" invariant="IBM.Data ... /> <add name="Microsoft SQL Server Compact Data Provider" ... /> </DbProviderFactories> <DbProviderFactories/> //if exist,remove this one! </system.data>
And refer here which should be helpful to you
http://blogs.msdn.com/b/spike/archive/2008/07/18/failed-to-find-or-load-the-registered-net-framework-data-provider.aspx
Hope it can help you.
abiaspfor
Member
182 Points
50 Posts
Failed to Load or Register .net framework data provider
Feb 28, 2013 08:51 AM|LINK
I am using visual studio 2008 +IBM DB2 version 8.1.2.1. The below line i have added in web.config file.
<DbProviderFactories>
<add name="IBM DB2.NET Data Provider" invariant="IBM.Data.DB2" description="IBM DB2 Data Provider for .NET Framework 2.0" type="IBM.Data.DB2.DB2Factory,IBM.Data.DB2, Version=8.1.2, Culture=neutral, PublicKeyToken=7c307b91aa13d208"></add></DbProviderFactories>
I could see that the version details in c:\windows\assembly.
Then too im getting error as "Failed to Load or Register .net framework data provider"
I have only one version of db2 on my machine and in assembly also i could see oly one version.
I searched a lot in google but couldnt find anything.
I have a doubt,whether this 8.1 is supported by VS 2008 or not
Please help
Thanks in advance
Abi.
shriniwasshu...
Member
634 Points
210 Posts
Re: Failed to Load or Register .net framework data provider
Feb 28, 2013 08:57 AM|LINK
You can registry data provider by add refrence option in asp.net .
Make sure IBM db data provider installed
abiaspfor
Member
182 Points
50 Posts
Re: Failed to Load or Register .net framework data provider
Feb 28, 2013 09:06 AM|LINK
i added reference..but still the same
i could see IBM.Data.db2 dll in assembly....is there anyother way to check whether it is installed?
It should be in GAC ??
Pengzhen Son...
Star
8662 Points
889 Posts
Microsoft
Re: Failed to Load or Register .net framework data provider
Mar 01, 2013 04:29 AM|LINK
Hi,
You can check the machine.config found in
.<system.data> <DbProviderFactories> <add name="Odbc Data Provider" invariant="System.Data.Odbc" ... /> <add name="OleDb Data Provider" invariant="System.Data.OleDb" ... /> <add name="OracleClient Data Provider" invariant="System.Data ... /> <add name="SqlClient Data Provider" invariant="System.Data ... /> <add name="IBM DB2 for i .NET Provider" invariant="IBM.Data ... /> <add name="Microsoft SQL Server Compact Data Provider" ... /> </DbProviderFactories> <DbProviderFactories/> //if exist,remove this one! </system.data>And refer here which should be helpful to you
http://blogs.msdn.com/b/spike/archive/2008/07/18/failed-to-find-or-load-the-registered-net-framework-data-provider.aspx
Hope it can help you.
Feedback to us
Develop and promote your apps in Windows Store