[Mono-list] ODBC related error

Robert Jordan robertj at gmx.net
Thu Aug 6 04:47:13 EDT 2009


Bharti Mishra wrote:
> ** (/usr/lib/mono/2.0/mod-mono-server2.exe:22010): WARNING **: The following
> assembly referenced from
> /tmp/wwwrun-temp-aspnet-0/5519dae6/assembly/shadow/0b38ee2b/caf7cdf5_c1cf23de_00000001/FNSDatabase.Net.dll
> could not be loaded:
>      Assembly:   Microsoft.Data.Odbc    (assemblyref_index=5)
>      Version:    1.0.3300.0
>      Public Key: b77a5c561934e089
> The assembly was not found in the Global Assembly Cache, a path listed in
> the MONO_PATH environment variable, or in the location of the executing
> assembly
> (/tmp/wwwrun-temp-aspnet-0/5519dae6/assembly/shadow/0b38ee2b/caf7cdf5_c1cf23de_00000001/).
> 
> but I can see FNSDatabase.net.dll inside this path
> "/tmp/wwwrun-temp-............".
> 
> can you pls explain me decribed error, and can you pls tell me there is any
> problem in odbc driver, or I have to set odbc driver into given path.

The error message clearly states what's going wrong: the
assembly Microsoft.Data.Odbc is missing.

This assembly was obsoleted by MS a couple of years ago (starting
with .NET 1.1 AFAIR).

You must remove the reference to this assembly from your
code and use System.Data instead since Mono does not
provide and will not provide the Microsoft.Data.Odbc
assembly.

Robert



More information about the Mono-list mailing list