Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
3k views
in .NET FTP by (200 points)
Hi to all.
I'm using your great net library since 2 months. In the last 3 days i think someone on my hosting has chanced some policy because i get the error in the subject. Nothing has been changed on my app and on the local server it still runs.
Could you give me any hint? I've read about assembly:AllowPartiallyTrustedCallers but i do not understand if it's to be used in your soure or where.

Thank you in advance.

3 Answers

0 votes
by (162k points)
It may be that your web hoster has changed security settings.

edtFTPnet.dll is strongly named and it appears that you may have problems using it from a webpage as described here:

http://support.microsoft.com/?kbid=839300

You could rebuild the DLL without the strong name if you wish.

Hi to all.
I'm using your great net library since 2 months. In the last 3 days i think someone on my hosting has chanced some policy because i get the error in the subject. Nothing has been changed on my app and on the local server it still runs.
Could you give me any hint? I've read about assembly:AllowPartiallyTrustedCallers but i do not understand if it's to be used in your soure or where.

Thank you in advance.
0 votes
by (200 points)
Thank you for the hints. I'll try your suggestions as soon as possible and i'll share the result.

Bye

It may be that your web hoster has changed security settings.

edtFTPnet.dll is strongly named and it appears that you may have problems using it from a webpage as described here:

http://support.microsoft.com/?kbid=839300

You could rebuild the DLL without the strong name if you wish.

0 votes
by (200 points)
Allowing or removing the strong name gives me a new error. Locally everything is ok, on the shared host i get the following error.

The error message is Request failed and the source is edtFTPnet.

The stack trace is:

at System.Security.CodeAccessSecurityEngine.ThrowSecurityException(Assembly asm, PermissionSet granted, PermissionSet refused, RuntimeMethodHandle rmh, SecurityAction action, Object demand, IPermission permThatFailed)

at System.Security.CodeAccessSecurityEngine.ThrowSecurityException(Object assemblyOrString, PermissionSet granted, PermissionSet refused, RuntimeMethodHandle rmh, SecurityAction action, Object demand, IPermission permThatFailed)

at System.Security.CodeAccessSecurityEngine.CheckSetHelper(PermissionSet grants, PermissionSet refused, PermissionSet demands, RuntimeMethodHandle rmh, Object assemblyOrString, SecurityAction action, Boolean throwException)

at System.Security.CodeAccessSecurityEngine.CheckSetHelper(CompressedStack cs, PermissionSet grants, PermissionSet refused, PermissionSet demands, RuntimeMethodHandle rmh, Assembly asm, SecurityAction action)

at EnterpriseDT.Net.Ftp.FTPConnection.InvokeDelegate(Boolean preferAsync, Delegate del, Object[] args)

at EnterpriseDT.Net.Ftp.FTPConnection.InvokeEventHandler(Delegate eventHandler, Object sender, EventArgs e) in (mylocalpath)\src\net\ftp\FTPConnection.cs:line 1902

at EnterpriseDT.Net.Ftp.FTPConnection.OnDownloaded(String localPath, String remoteFile, Boolean cancelled) in (mylocalpath)\src\net\ftp\FTPConnection.cs:line 2159

at EnterpriseDT.Net.Ftp.FTPConnection.DownloadFile(String localPath, String remoteFile) in (mylocalpath)\src\net\ftp\FTPConnection.cs:line 1485

at Service.getit(String l, String r)


Could you give me any hint? It seems to me a security problem while invoking the delegate.

It may be that your web hoster has changed security settings.

edtFTPnet.dll is strongly named and it appears that you may have problems using it from a webpage as described here:

http://support.microsoft.com/?kbid=839300

You could rebuild the DLL without the strong name if you wish.

Categories

...