Can't download files from my ftp server through code

Posted by Sucin.chan under ASP.NET on 4/19/2011 | Points: 10 | Views : 1795 | Status : [Member] | Replies : 1
I hope you can help me with this. I have my website( and C#) and ftp server hosted on godaddy. In my website i have a code to downlad a file from the ftp server, but when I try it I get this error:

Security Exception
Description: The application attempted to perform an operation not allowed by the security policy. To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.

Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Net.WebPermission, System, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

Please could anybody help me with this? It's pretty urgent.

Thanks in advance


Posted by: Umeshdwivedi on: 4/19/2011 [Member] Starter | Points: 25

I suggest you first you talk about your ISP,if after that same problem then you contact us
this not a lots of matter i hope if you talk to your service provider your problem solved

Latest Technology Trainer
And Part time software consultant

Sucin.chan, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response