We use the redirection of folder My Documents folder on a shared network, which has the effect of deporting the directory that stores the Visual Studio 2005 or 2008. When executing these projects gives errors:
A first chance exception of type 'System.Security.SecurityException' occurred in System.Data.dll
A first chance exception of type 'System.Exception' occurred in Projet1.DLL
{"Failed to request the permission of type 'System.Data.SqlClient.SqlClientPermission, System.Data, Version = 2.0.0.0, Culture = neutral, PublicKeyToken = b77a5c561934e089'. "}
This is because the. NET Framework 1.1 (or 2.0) does not recognize the network directory as a secure location. So that's the case you must go to Control Panel> System. NET Framework 1.1 (or 2.0) and then in the Runtime Security Policy> Computer> Code Groups> All_Code. Depending on the case it will create a new group code is either in LocalIntranet_Zone Internet_Zone. In our case it is the second solution that worked.
Right click on Internet_Zone then New. Give a name like Visual Studio Projects eg, click Next and then select URL as type of condition. In the box that appears, enter the network path to the network share (in our case the directory path storage projects in the folder redirected the user profile) followed a star, for example:
file :/ / \ \ http://corp.local/Stockage/Profils/user1/Mes Documents / Visual Studio 2005 / *
Then click Next, choose the option FullTrust then click Next and Finish. The project implementation should now work correctly.
Tags: Visual Studio









