I have a .Net Console Application. I installed it on a server. I created a
bat file on the server which passes the appropriate parms to the program to
run. This application accesses and updates other files on mapped drives.
When I am logged on to the server and run the application, it runs just fine.
When I log on and run from my workstation and double clicking on the bat
file to invoke the application, I get the following error:
Unable to open log file **** Processing Terminated ******
Detail Error Message: Request for the permission of type
System.Security.Permiss
ions.FileIOPermission, mscorlib, Version=1.0.5000.0, Culture=neutral,
PublicKeyT
oken=b77a5c561934e089 failed.
File Name that program was attempting to read was: F:\Products\Batch
Jobs\Metric
BatchLoad\log20054.txt
The file being reference in error is located on the server where the
application resides. I thought maybe when the application was getting the
current directory to find the file to open, that perhaps it was getting
confused (because "f" drive is the name of the mapped drive on my machine,
but "D" is the drive letter which is used on the server. Either way, I get
the same error.
I have signed onto the server where the application is AS WELL as my
WORKSTATION and used the .Net Wizard to grant the application full trust to
the application.
So what am I missing in order to enable me to sign on to my workstation and
double click the bat file to enable me to successfully run the application?
Thanks in advance for your assistance!!