Console app and System.Security.SecurityException via network

E

edge

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.FileDialogPermission,
mscorli
b, Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089"
version="1"
Access="Open"/>
<IPermission
class="System.Security.Permissions.IsolatedStorageFilePermi
ssion
, mscorlib, Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089
"
version="1"
Allowed="DomainIsolationByUser"
UserQuota="10240"/>
<IPermission
class="System.Security.Permissions.SecurityPermission,
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.StrongNameIdentityPermis
sion,
mscorlib, Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089"

version="1"

PublicKeyBlob="00240000048000009400000006020000002400005253
41310
004000001000100C3EDAB5A8009B74A362EA1CE86ECCCA1B5A7B728403B
252E5995F2949AB0210E0
38643C7D80BC7E6A167B2B421EE50ED5A05612BBA61452DA10519E035DC
4BD741DF541138C5202AD
DC5E02A8A68B3040A839D7496FAC6692EB8E2A3293ABA75C41DA3AEC162
BB093FF82A8E0480942E2
6EEF706C0A1B8F633BB5EED6D7CCEDB"
Name="Listagem"
AssemblyVersion="1.0.1951.16777"/>
<IPermission
class="System.Security.Permissions.UrlIdentityPermission,
mscorl
ib, Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089"
version="1"
Url="file://E:/Listagem.exe"/>
<IPermission
class="System.Security.Permissions.ZoneIdentityPermission,
mscor
lib, Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089"
version="1"
Zone="Internet"/>
</PermissionSet>


Does anyone has any hint?


TIA
-Edge
 
G

Guest

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...curityexception&rnum=1&hl=en#1bc5306d567a620a

Microsoft documentation:
http://msdn.microsoft.com/library/d...n-us/cpguide/html/cpconcodeaccesssecurity.asp

Take a look at this link:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetsec/html/entsecpoladmin.asp
 

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

Top