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=839300You could rebuild the DLL without the strong name if you wish.