I have an application written in VS 2005 Beta that connects to a networked SQL database. The application works flawlessly when I execute from within VS, but when I attempt to execute the .exe I get this:
"Application attempted to perform an operation not allowed by the security policy. To grant this application[...blah, blah, blah]"
The message goes on to say "To allow all callers to access the data for this section, set section attribute 'requirePermission' equal 'false' in the configuration file where this section is declared."
Okay, so I did that. Now I'm getting and Unhandled exception that states:
"The type initializer for 'System.Data.SqlClient.SqlConnection' threw an exception."
For crying out loud! What the heck am I supposed to do now? What else do I have to change? I'm sure it's something simple, but there are so many hoops you have to jump through now for security's sake that it's a nightmare to figure which bloody hoop is next.
I'm all for security, but I think this is all over the top. What happened to the days when you could compile an application and expect the .exe to actually run?!?