473,412 Members | 2,081 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,412 software developers and data experts.

Running application from share

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?
Nov 22 '05 #1
2 2075
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/archiv.../20/57023.aspx

Have A Better One!

John M Deal, MCP
Necessity Software

dan wrote:
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?

Nov 22 '05 #2
dan
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

Uzytkownik "John M Deal" <jo******@necessitysoftware.com> napisal w
wiadomosci news:uV**************@TK2MSFTNGP11.phx.gbl...
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/archiv.../20/57023.aspx

Have A Better One!

John M Deal, MCP
Necessity Software

dan wrote:
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?

Nov 22 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: MF | last post by:
In visual basic 6 I can write an application and toss it up on a shared network drive for the company to access. Works like a champ. In .NET my C# application runs fine on anyones machine, but...
3
by: Chung Ley | last post by:
Hi I am having problem running an .net application on a Windows2000 Terminal Server. The application seems to work fine on user's desktop The issues that I have with running the application on...
7
by: Marek | last post by:
Whe i'm running my .net aplication from share on other server, i've got an error. Can someone explain what i must do? Unhandle exception:System.Security.SecurityException: Permission demand type...
2
by: David Olive | last post by:
Hi guys, I'm having a bit of a problem getting a VB .NET console app to run happily as a scheduled task. The app itself generates a bunch of word documents on a file share on another server by...
8
by: nickdu | last post by:
I'm trying to isolate "applications" into their own application domain within a single process. I've quoted applications because it's a logical representation of an application. Basically it...
8
by: JR | last post by:
I have a Web server running on Windows XP. On this Web server, I have a Web site configured with its home directory on a network share. In the Web site, there's a virtual folder pointing to a local...
2
by: flat_ross | last post by:
Hi, I am in a shop where developers are required to work off of a network share. This is so that code is backed up nightly. So I am testing running an ASP.NET Web application with a Class...
11
by: ASP.NET User | last post by:
Hi I am in a shop where developers are required to work off of a networ share. This is so that code and other documentation is backed up nightly. This is outside the realm of Visual SourceSafe...
4
by: Jeremy S. | last post by:
We're in the process of writing a new Windows Forms app and the desktop support folks want for it to be run from a network share. I know it's possible (i.e., just have the framework on the clients...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.