Home  /  Questions  /  Question



50   50
Apr 18, 2015


ConnectionString is not initialized

Hi,
I can't load the Patterns in Action 4.5 (whatever the project : WebForm, MVC, WinForms)
I use professionnal VS 2012.
I always have this following error message. 
Thank you for your help.





508   99.9
Apr 19, 2015
Sandra,

All applications in the .NET Design Pattern Framework run 'out of the box'. 
Those that require a database have an LocalDb database. The default connectionstring (in web.config) points to this database.
VS 2012 Pro is supported, so that is not a problem.

Your error seems to indicate that the connectionstring is not initialized (or invalid?).
The connectionstring resides in web.config, so this error can only happen when that is changed or removed.
It this possible?  Was anything changed?

Anyhow, I hope this points you in the right direction.
Jack



 

50   50
Apr 20, 2015
Hello Jack,
Thank you for your response.
I resolved my first pb but I still cannot upload the Patterns in Action projects because I have a new error message.
Otherwise, I can upload Spark projects.
Thanks very much for your help because it become very frustated for me.



508   99.9
Apr 20, 2015
Hello Sandra: 

I see that your error refers to MySQL. I am not sure how you get that there, but MySQL is not supported.
(it might work, but not without adjustments).  

Only SQL Server and LocalDb are supported.
Please know that you do have access to LocalDb because it comes with Visual Studio.

Hope this helps.
Jack

50   50
Apr 22, 2015
Hello,
Everything is ok now.
As a member said, we need to replace the number 1 by "Action" everywhere in the connectionString if not, nothing runs correctly.