Click here to Skip to main content
15,916,318 members
Home / Discussions / C#
   

C#

 
GeneralUsing SendMessage and PostMessage APIs Pin
Guinness4Strength4-Mar-05 8:42
Guinness4Strength4-Mar-05 8:42 
GeneralRe: Using SendMessage and PostMessage APIs Pin
Judah Gabriel Himango4-Mar-05 12:01
sponsorJudah Gabriel Himango4-Mar-05 12:01 
GeneralRe: Using SendMessage and PostMessage APIs Pin
Guinness4Strength5-Mar-05 8:20
Guinness4Strength5-Mar-05 8:20 
GeneralRe: Using SendMessage and PostMessage APIs Pin
mav.northwind4-Mar-05 21:52
mav.northwind4-Mar-05 21:52 
GeneralRe: Using SendMessage and PostMessage APIs Pin
Guinness4Strength5-Mar-05 8:16
Guinness4Strength5-Mar-05 8:16 
GeneralLoading an assembly dynamically and using types/functions in it Pin
Bojan Rajkovic4-Mar-05 8:16
Bojan Rajkovic4-Mar-05 8:16 
GeneralRe: Loading an assembly dynamically and using types/functions in it Pin
S. Senthil Kumar4-Mar-05 9:08
S. Senthil Kumar4-Mar-05 9:08 
GeneralRunning an IO application on a network Pin
TOVB4-Mar-05 7:41
sussTOVB4-Mar-05 7:41 
I wrote a FTP program that would download files from a ftp server and store it on my machine.

Then on my other pc, I mapped the location of that program and run it (2 pcs are on the same network)

I got this error message:

Unhandled Exception: System.Security.SecurityException: Request for the permissi
on of type System.Security.Permissions.FileIOPermission, mscorlib, Version=1.0.5
000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 failed.
at System.Security.CodeAccessSecurityEngine.CheckTokenBasedSetHelper(Boolean
ignoreGrants, TokenBasedSet grants, TokenBasedSet denied, TokenBasedSet demands)

at System.Security.CodeAccessSecurityEngine.CheckSetHelper(PermissionSet gran
ts, PermissionSet denied, PermissionSet demands)
at tieFtpv2.CExecute..ctor(Boolean display, String command, CXmlDoc myProfile
, Int32 myIndex)
at tieFtpv2.CTieFTP.Main(String[] args)

The state of the failed permission was:
<ipermission class="System.Security.Permissions.FileIOPermission, mscorlib, Vers
ion=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
="" version="1" unrestricted="true">

Could anyone please help me out?
What do i need to do with the Security to be able to run the program on a network?

Thank you so much in advance.
GeneralRe: Running an IO application on a network Pin
Joel Lucsy4-Mar-05 8:40
Joel Lucsy4-Mar-05 8:40 
GeneralInstalling a service without using ServiceProcessInstaller/ServiceInstaller Pin
Lakitu4-Mar-05 5:18
Lakitu4-Mar-05 5:18 
Generalping use too long time Pin
haha200014-Mar-05 4:47
haha200014-Mar-05 4:47 
GeneralRe: ping use too long time Pin
Dave Kreskowiak4-Mar-05 7:34
mveDave Kreskowiak4-Mar-05 7:34 
GeneralRe: ping use too long time Pin
haha200014-Mar-05 15:22
haha200014-Mar-05 15:22 
GeneralRe: ping use too long time Pin
haha200014-Mar-05 15:39
haha200014-Mar-05 15:39 
GeneralRe: ping use too long time Pin
Dave Kreskowiak4-Mar-05 16:15
mveDave Kreskowiak4-Mar-05 16:15 
GeneralRe: ping use too long time Pin
haha200015-Mar-05 6:08
haha200015-Mar-05 6:08 
GeneralRe: ping use too long time Pin
Dave Kreskowiak5-Mar-05 6:17
mveDave Kreskowiak5-Mar-05 6:17 
QuestionAuthorisation Code Ideas? Pin
Tom John4-Mar-05 3:18
Tom John4-Mar-05 3:18 
Generalutf8 convert.... Pin
ABBASI_RA4-Mar-05 3:07
ABBASI_RA4-Mar-05 3:07 
GeneralAuthentication/Sql Server and C# Pin
C# Angel4-Mar-05 2:56
sussC# Angel4-Mar-05 2:56 
GeneralRe: Authentication/Sql Server and C# Pin
Colin Angus Mackay4-Mar-05 6:14
Colin Angus Mackay4-Mar-05 6:14 
GeneralRe: Authentication/Sql Server and C# Pin
Anonymous15-Mar-05 10:05
Anonymous15-Mar-05 10:05 
GeneralStill no solution :( Pin
Radgar4-Mar-05 2:43
Radgar4-Mar-05 2:43 
GeneralRe: Still no solution :( Pin
Dave Kreskowiak4-Mar-05 4:28
mveDave Kreskowiak4-Mar-05 4:28 
GeneralRe: Still no solution :( Pin
Radgar4-Mar-05 8:37
Radgar4-Mar-05 8:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.