I created a VB .Net program on Visual Studio 2005 and it runs fine locally but when I put it on a share network I have permission errors. I get a permission error (FileIOPermission) when the project tries to create a directory on the C drive or save a file on the c drive. I also get a permission error (SecurityPermission) when I try to view Crystal Report, the crystal report error could be because my project is creating xml file on the c drive. I am using Framework 2.0 and I can go into my Microsoft .NET Framework Configuration and change the security around and everything works fine. At my company not every one has the Configuration tool, so I created a batch file that works on some clients, but for some reason it doesn't work on all of them - very frustrating when something works for one client and not the other. Here is the script
%windir%\Microsoft.NET\Framework\v2.0.50727\Caspol -q -m -ag LocalIntranet_Zone -url "S:\Projects\DO PCN Test\*" FullTrust -n "DO_PCN"
%windir%\Microsoft.NET\Framework\v2.0.50727\Caspol -q -m -ag My_Computer_Zone -url "S:\Projects\DO PCN Test\*" FullTrust -n "DO_PCN"
I am wondering if there are any other ideas out there or maybe a better script to run. Any help would be greatly appreciated. I try looking at other threads on this site but still no luck.
%windir%\Microsoft.NET\Framework\v2.0.50727\Caspol -q -m -ag LocalIntranet_Zone -url "S:\Projects\DO PCN Test\*" FullTrust -n "DO_PCN"
%windir%\Microsoft.NET\Framework\v2.0.50727\Caspol -q -m -ag My_Computer_Zone -url "S:\Projects\DO PCN Test\*" FullTrust -n "DO_PCN"
I am wondering if there are any other ideas out there or maybe a better script to run. Any help would be greatly appreciated. I try looking at other threads on this site but still no luck.