.net winform app not working on mapped drive

  • Thread starter Thread starter vadim
  • Start date Start date
V

vadim

Hi,

I have a small .net app that just generates licenses for my program, nothing
fancy, it runs fine from any subdirectory on drive C:,
but it doesn't run from a mapped network drive on the same machine, although
if I run it on the same where the network drive is installed it runs fine,
it feels as if running the program from a mapped drive produces exception,
here are some of the debug messages:
Warning: Can not load symbols for C:\winnt\....\mscorlib.dll
and several other system dlls

and then Request for the permission of type
System.Security.Permissions.EnvironmentPermission, mscorlib ...failed

there is some other info there.

Does anybody have any ideas why this is happening when the program runs from
the mapped drive and what I can.


Thank you,

Vadim
 
The cause of this is a feature that is built into the .Net framework to
keep untrusted code from running on your machine. In this case it sees
the network drive as a partially trusted application source. To correct
this you will need to modify the security settings on the machine where
you execute the program telling it that it is ok to run. Here's a blog
entry that will get you going along the right path. Hope this works out
for you.

http://blogs.msdn.com/shawnfa/archive/2003/06/20/57023.aspx

Have A Better One!

John M Deal, MCP
Necessity Software
 
Thanks a lot. It solved the problem.


John M Deal said:
The cause of this is a feature that is built into the .Net framework to
keep untrusted code from running on your machine. In this case it sees
the network drive as a partially trusted application source. To correct
this you will need to modify the security settings on the machine where
you execute the program telling it that it is ok to run. Here's a blog
entry that will get you going along the right path. Hope this works out
for you.

http://blogs.msdn.com/shawnfa/archive/2003/06/20/57023.aspx

Have A Better One!

John M Deal, MCP
Necessity Software
 
Back
Top