I need to deploy an application (.exe) on the server, and be able to run it from other computers within the network. I have built a simple app as a tester which creates a textwriter and saves a simple txt file. I keep getting the error: "Request for the permission of type 'System.Security.Permissio
. This will occur if I change my code to access a different reference (other than IO), also. I have done MANY things to try to rectify this, to no avail. One thing being: I have modified the policy for my local intranet zone to FullTrust (using the .NET 2.0 configuration utility) And this STILL does not work! I thought that would be a no-brainer! Maybe if you guys can help me with this task , I can figure out how to modify the permissions from there. Maybe I am doing it all wrong? Here is what I am doing:
Deploy setup file on server from msi
run program on server-works!
switch to networked desktop computer...
run configuration utility and change "machine" local intranet zone to FullTrust
(I also tried creating a new group, setting a URL, and setting it to fullTrust...didn't work)
Try running program from \\myservername\Program Files\myProgram\myProgram.
Get the above error!
I have sharing and security wide-open right now...full control from EVERYONE.
pertinent part of the code:
private void mymethod()
TextWriter tw = new StreamWriter(@"C:\Program Files\myProgram\logs\log.txt");