M
Martin Hart Turner
Hi:
I am trying to convert my VS2003 project to VS2005 beta 2. The actual
conversion has gone fine, but some code that was working fine under to
old IDE is now giving me an exception when run under the VS2005
generated code.
The code is:
using (SqlConnection conn = new SqlConnection("Integrated
Security=True;Initial Catalog=GestionNET00001;Data Source=localhost")
{
...
}
And the error I'm getting is:
{"The type initializer for 'System.Data.SqlClient.SqlConnection' threw
an exception."}
Has anyone any idea why this is happening?
TIA,
MartinH.
I am trying to convert my VS2003 project to VS2005 beta 2. The actual
conversion has gone fine, but some code that was working fine under to
old IDE is now giving me an exception when run under the VS2005
generated code.
The code is:
using (SqlConnection conn = new SqlConnection("Integrated
Security=True;Initial Catalog=GestionNET00001;Data Source=localhost")
{
...
}
And the error I'm getting is:
{"The type initializer for 'System.Data.SqlClient.SqlConnection' threw
an exception."}
Has anyone any idea why this is happening?
TIA,
MartinH.