Running application from share

  • Thread starter Thread starter dan
  • Start date Start date
D

dan

I get an error when I'm trying to run my application from a share on a
remote machine.
It seems that it generates an error any try my app is going to use an
library (even mscorlib)
It's falling on the line
Environment.GetCommandLineArgs()

with error:

"Request of the permission type
System.Security.Permissions.EnvironmentPermission, mscorlib,
version=1.0.5000.0, Culture=neutral, PublicToken=b77a5c561934e089 was
unsucessful"

I have administration privilages on that remote machine - any conceptions?
 
This isn't about your privileges it is about the security settings that
..Net puts in place. You'll need to look at how to enable the security
settings on the machine accessing the share so that it will allow .Net
applications to be executed from the share. Here's a link that might help:

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

Have A Better One!

John M Deal, MCP
Necessity Software
 
Thanks - the right link can do miracles.
And I was changing the rights on the remote machine not on MY computer.

Once again - thank you
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top