Monday, September 23, 2013

Confounded Connection Settings

Didn't realize how drastically setting SQL connections changed from .Net v2 to .Net v3.5 and above.
Any old connections you have that were kept under 'appSettings' in web.config need to be moved to 'connectionStrings' and reformatted.
The way you then set those connections in your code-behind also must be changed.

This page has a great explanation of this:
http://www.connectionstrings.com/store-connection-string-in-webconfig/

No comments:

Post a Comment