Missing Connectionstring for DBML

I encountered a problem today which in the end had an easy solution, but nevertheless took me over an hour to fix.

Our project had been running for weeks without any problems, but today it suddenly failed with the message:

‘ProjectDataContext’ does not contain a constructor that takes ‘0’ arguments.

The Connection setting was empty and I couldn’t re-select the Connectionstring from the App.Config. If I changed the ‘Application Settings’ to false the project did build but this wasn’t the setting it used to have.

In the end my Settings.settings file was corrupt. Trying to open the settings file gave me the error: “Value does not fall within the expected range”.

I deleted the settings file, have the property sheet create a new one and the problem was fixed.


Technorati Tags: ,,

Downsides of Smart Client Software Factory

I like the concept of SCSF but…


  1. Model-View-Presenter is a must . This is a good thing, but from a business point of view (fast fast fast) I would like to be able to hack a temporary tool quickly.
  2. SCSF still uses entlib 3.x
  3. Guidance package gives error on VSTS for DBPro projects (see…)
  4. Unable / not sure how to convert existing solutions to SCSF

So I’m looking for another way to create a shell application around all our companies business applications.