how to install ODBC.NET and use it

  • Thread starter Thread starter Rajesh Tiwari
  • Start date Start date
R

Rajesh Tiwari

hi group,
can anyone tell me all the steps needed in installing Odbc.net and then
using it in an aspx file.

thanks in advance
 
i have installed it from the link that you gave .after that i added a
refrence in machine.config file.but it installed Microsoft.Data.Odbc.Dll and
not System.Data.Odbc.Dll
so when i use
using System.Data.Odbc in any program it says assembly not found.

here is the sample error picture
Description: An error occurred during the processing of a configuration file
required to service this request. Please review the specific error details
below and modify your configuration file appropriately.

Parser Error Message: File or assembly name System.Data.Odbc, or one of its
dependencies, was not found.

Source Error:

Line 256: <add assembly="System.EnterpriseServices,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
Line 257: <add assembly="System.Web.Mobile,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
Line 258: <add assembly="System.Data.Odbc,
Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
Line 259: <add assembly="*"/>
Line 260: </assemblies>

Source File:
c:\winnt\microsoft.net\framework\v1.1.4322\Config\machine.config Line:
258

Assembly Load Trace: The following information can be helpful to determine
why the assembly 'System.Data.Odbc' could not be loaded.

=== Pre-bind state information ===
LOG: DisplayName = System.Data.Odbc, Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a
(Fully-specified)
LOG: Appbase = file:///c:/inetpub/wwwroot
LOG: Initial PrivatePath = bin
Calling assembly : (Unknown).
===

LOG: Publisher policy file is not found.
LOG: No redirect found in host configuration file
(C:\WINNT\Microsoft.NET\Framework\v1.1.4322\aspnet.config).
LOG: Using machine configuration file from
C:\WINNT\Microsoft.NET\Framework\v1.1.4322\config\machine.config.
LOG: Post-policy reference: System.Data.Odbc, Version=1.0.5000.0,
Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
LOG: Attempting download of new URL
file:///C:/WINNT/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/root/2135a508/8d69a834/System.Data.Odbc.DLL.
LOG: Attempting download of new URL
file:///C:/WINNT/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/root/2135a508/8d69a834/System.Data.Odbc/System.Data.Odbc.DLL.
LOG: Attempting download of new URL
file:///c:/inetpub/wwwroot/bin/System.Data.Odbc.DLL.
LOG: Attempting download of new URL
file:///c:/inetpub/wwwroot/bin/System.Data.Odbc/System.Data.Odbc.DLL.
LOG: Attempting download of new URL
file:///C:/WINNT/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/root/2135a508/8d69a834/System.Data.Odbc.EXE.
LOG: Attempting download of new URL
file:///C:/WINNT/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET
Files/root/2135a508/8d69a834/System.Data.Odbc/System.Data.Odbc.EXE.
LOG: Attempting download of new URL
file:///c:/inetpub/wwwroot/bin/System.Data.Odbc.EXE.
LOG: Attempting download of new URL
file:///c:/inetpub/wwwroot/bin/System.Data.Odbc/System.Data.Odbc.EXE.



----------------------------------------------------------------------------
----
Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET
Version:1.1.4322.573


tell me what is wrong.
thanks for replying
 
The 1.1 version of the .NET Framework includes System.Data.Odbc. You should
not need to install anything to get at this provider.

--
____________________________________
Bill Vaughn
www.betav.com
Please reply only to the newsgroup so that others can benefit.
This posting is provided "AS IS" with no warranties, and confers no rights.
__________________________________
 
Back
Top