ADO.NET Permission failed problem - Network Drives!
I spent half an hour trying to get a basic ADO.NET + C# database query example to work. I would get the error below:
Exception System.Security.SecurityException was thrown in debugee:
Request for the permission of type 'System.Data.SqlClient.SqlClientPermission, System.Data, Version=188.8.131.52, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
Main() - z:\SharpDevelop Projects\test4\Main.cs:21,13
The solution? Permissions! A network mapped drive is NOT the same as a local fixed drive -- you must fiddle with the permissions to allow a "remote" application connect to databases!
As an aside, this is a great tutorial:
Fake Tags: SharpDevelop, C#, dotnet, C Sharp
>> Leonard Chan's Homepage
>> Scribble Web
>> ADO.NET Permission failed problem - Network Drives!