[Mono-list] Using System.Data.Common.DbProviderFactory with Mono
dr_doom1983 at yahoo.de
Fri Mar 28 08:15:42 EDT 2008
I started this thread about a month ago and I still do not know how to
handle the problem.
I checked it with the new 1.9 version, but with the same result.
Is there anybody who recognized my bug report?
Or is it just a stupid mistake I made using Mono?
I would be glad if anybody could give me a small hint about this...
> I posted the bug as Bug 365911 to bugzilla.novell.com
> Thanks for any further help.
> Veerapuram Varadhan wrote:
>> Can you file a bug and attach a sample console app using similar
>> providerstring? It would be easier to track and solve this through
>> V. Varadhan
>> On Thu, 2008-02-28 at 04:19 -0800, dr_d00m wrote:
>>> I am trying to create an application which should be designed for common
>>> database connectivity. Therefore I used the
>>> System.Data.Common.DbProviderFactory. I created my application in Visual
>>> Studio and then tried to run it under Mono. I also tested it with Moma
>>> gave me the go-ahead in any cases. In .Net everything worked fine but
>>> Mono it threw a weired exception.
>>> Unhandled Exception: System.Configuration.ConfigurationErrorsException:
>>> Failed to find or load the registered .Net Framework Data Provider. ()
>>> at System.Data.Common.DbProviderFactories.GetFactory
>>> providerRow) [0x00000]
>>> at System.Data.Common.DbProviderFactories.GetFactory (System.String
>>> providerInvariantName) [0x00000]
>>> at Connectivity.DBLoader.Load () [0x00000]
>>> I tried to google this one but without any success.
>>> The code looks like this:
>>> using System.Data.OracleClient;
>>> using System.Data.Common;
>>> DbProviderFactory factory =
>>> using (conn = factory.CreateConnection())
>>> conn.ConnectionString = ConnectionParameter;
>>> // Here the data from the database is processed.
>>> Is there anything I did not consider or is it impossible to procede like
>>> this under Mono in general?
>>> Thanks in advance for any help.
>>> Best regard,
>> Mono-list maillist - Mono-list at lists.ximian.com
View this message in context: http://www.nabble.com/Using-System.Data.Common.DbProviderFactory-with-Mono-tp15735200p16349638.html
Sent from the Mono - General mailing list archive at Nabble.com.
More information about the Mono-list