subsonicsubsonic3

DataProvider = ProviderFactory.GetProvider("") NullReferenceException?


I am getting a NullReferenceException when SubSonic calls the default contructor for my database.

In my case the line it errors on is.

DataProvider = ProviderFactory.GetProvider("MDMA");

I have the namespaces set correctly and the classes seam to be getting generated correctly, so it looks like I can connect to the database. Is this a bug?

I am using version 3.0.0.2.


Solution

  • This line of code requires a connection string in your execution environment with a name "MDMA".