Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Permission Error running program from Shared Network

Status
Not open for further replies.

PointProg

Programmer
Jan 28, 2008
6
US
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top