By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,300 Members | 1,789 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,300 IT Pros & Developers. It's quick & easy.

Console app and System.Security.SecurityException via network

P: n/a
hi,

here it is my problem.

My console app, reads a text file where it grabs
username/password. Next, my app creates a .BAT file to
trigger the command ftp:\\user:password@ftphomeaddress.

Then, I use Process() to start the batch.
In my local machine, the app runs just fine. But the users
will run it from a mapped network location (eg.: e:\)
in this case I get a securityException. Here the details
of the error message:

<PermissionSet class="System.Security.PermissionSet"
version="1">
<IPermission
class="System.Security.Permissions.FileDialogPermi ssion,
mscorli
b, Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089"
version="1"
Access="Open"/>
<IPermission
class="System.Security.Permissions.IsolatedStorage FilePermi
ssion
, mscorlib, Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089
"
version="1"
Allowed="DomainIsolationByUser"
UserQuota="10240"/>
<IPermission
class="System.Security.Permissions.SecurityPermiss ion,
mscorlib,
Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089"
version="1"
Flags="Execution"/>
<IPermission
class="System.Security.Permissions.UIPermission, mscorlib,
Versi
on=1.0.5000.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089"
version="1"
Window="SafeTopLevelWindows"
Clipboard="OwnClipboard"/>
<IPermission
class="System.Drawing.Printing.PrintingPermission,
System.Drawin
g, Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a"
version="1"
Level="SafePrinting"/>
<IPermission
class="System.Security.Permissions.StrongNameIdent ityPermis
sion,
mscorlib, Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089"

version="1"

PublicKeyBlob="00240000048000009400000006020000002 400005253
41310
004000001000100C3EDAB5A8009B74A362EA1CE86ECCCA1B5A 7B728403B
252E5995F2949AB0210E0
38643C7D80BC7E6A167B2B421EE50ED5A05612BBA61452DA10 519E035DC
4BD741DF541138C5202AD
DC5E02A8A68B3040A839D7496FAC6692EB8E2A3293ABA75C41 DA3AEC162
BB093FF82A8E0480942E2
6EEF706C0A1B8F633BB5EED6D7CCEDB"
Name="Listagem"
AssemblyVersion="1.0.1951.16777"/>
<IPermission
class="System.Security.Permissions.UrlIdentityPerm ission,
mscorl
ib, Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089"
version="1"
Url="file://E:/Listagem.exe"/>
<IPermission
class="System.Security.Permissions.ZoneIdentityPer mission,
mscor
lib, Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089"
version="1"
Zone="Internet"/>
</PermissionSet>
Does anyone has any hint?
TIA
-Edge
Nov 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Offhand, I'm thinking the problem is with Code Access Security. I presume
that the share does not have permissions to execute code.

This post has a similar situation, and solution:
http://groups-beta.google.com/group/...c5306d567a620a

Microsoft documentation:
http://msdn.microsoft.com/library/de...sssecurity.asp

Take a look at this link:
http://msdn.microsoft.com/library/de...ecpoladmin.asp

"ed**@superedge.com" wrote:
hi,

here it is my problem.

My console app, reads a text file where it grabs
username/password. Next, my app creates a .BAT file to
trigger the command ftp:\\user:password@ftphomeaddress.

Then, I use Process() to start the batch.
In my local machine, the app runs just fine. But the users
will run it from a mapped network location (eg.: e:\)
in this case I get a securityException. Here the details
of the error message:

<PermissionSet class="System.Security.PermissionSet"
version="1">
<IPermission
class="System.Security.Permissions.FileDialogPermi ssion,
mscorli
b, Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089"
version="1"
Access="Open"/>
<IPermission
class="System.Security.Permissions.IsolatedStorage FilePermi
ssion
, mscorlib, Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089
"
version="1"
Allowed="DomainIsolationByUser"
UserQuota="10240"/>
<IPermission
class="System.Security.Permissions.SecurityPermiss ion,
mscorlib,
Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089"
version="1"
Flags="Execution"/>
<IPermission
class="System.Security.Permissions.UIPermission, mscorlib,
Versi
on=1.0.5000.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089"
version="1"
Window="SafeTopLevelWindows"
Clipboard="OwnClipboard"/>
<IPermission
class="System.Drawing.Printing.PrintingPermission,
System.Drawin
g, Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a"
version="1"
Level="SafePrinting"/>
<IPermission
class="System.Security.Permissions.StrongNameIdent ityPermis
sion,
mscorlib, Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089"

version="1"

PublicKeyBlob="00240000048000009400000006020000002 400005253
41310
004000001000100C3EDAB5A8009B74A362EA1CE86ECCCA1B5A 7B728403B
252E5995F2949AB0210E0
38643C7D80BC7E6A167B2B421EE50ED5A05612BBA61452DA10 519E035DC
4BD741DF541138C5202AD
DC5E02A8A68B3040A839D7496FAC6692EB8E2A3293ABA75C41 DA3AEC162
BB093FF82A8E0480942E2
6EEF706C0A1B8F633BB5EED6D7CCEDB"
Name="Listagem"
AssemblyVersion="1.0.1951.16777"/>
<IPermission
class="System.Security.Permissions.UrlIdentityPerm ission,
mscorl
ib, Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089"
version="1"
Url="file://E:/Listagem.exe"/>
<IPermission
class="System.Security.Permissions.ZoneIdentityPer mission,
mscor
lib, Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089"
version="1"
Zone="Internet"/>
</PermissionSet>
Does anyone has any hint?
TIA
-Edge

Nov 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.