Security problem initalizating component


#1

I GET THE FOLLOWRING ERROR :

Exception Details: System.Security.SecurityException: That assembly does not allow partially trusted callers.

THIS APPEND ONLY ON MY INTERNET WEB SERVER NOT ON MY LOCAL DEVELOPER MACHINE

BEFORE IT WAS WORKING, NOW I THINK THE HOSTING COMPANY DONE SOMETHING ON SECURITY:

COULD IT BE POSSIBLE?

THIS PROBLEM OCCURS ONLY WITH THE ASPOSE.NETWORK , WORD,CELL FOR EXAMPLE SO FAR ARE WORKING

REGARDS

IVANO PANICHELLI



#2

Hello Ivano,

Thank you for considering Aspose.Network!
Could you send the web.config file to guangzhou@aspose.com or just a section of it about security settings?

Thank you again.


#3

<?xml version="1.0"?>












































#4

Hi, Ivanopan,

Which version of Aspose.Network are you using? It seems the web site is runing under partially trusted mode.

Please let me know the version of Aspose.Network, we will provide quick fix as soon as possible.

Refer note:

http://bloggingabout.net/blogs/rick/archive/2006/04/07/11929.aspx


#5

i’m using version 3.0.1.903


#6

Hello,

Thank you for considering Aspose.Network!

We've added allow partially trusted call attribute to the assembly. Please try out the following hot fix:

http://www.aspose.com/products/aspose.network/tmp/aspose.network.zip

Best regards.


#7

i do not get error now in the hosting environment ,

but it do not send file neither

on my local dev machine is working, on the server do not go on error but it does nothing!!


#8

Hello Ivanopan,

Sorry for your inconvenience. This mal function could be caused by other issues, our developers have already started testing this right now. We will get back to you as soon as possible.

Thank you for your patience.


#9

Hi,

Could you share your code about using Aspose.Network? Therefore, we can reproduce it in our environment and do investigation?

Thanks


#10

Dear Ivano,

Did you get any exception in the run-time? If you got some, please send me the exception information too.

What is the trust level for your web site server ? Please check the config file on the web server, by default it is placed on

C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\CONFIG\Web.Config










<trust level="Full" originUrl="" />

It is great appreciated if you can provide the config on your web site server, therefore, our dev team can be more easier to reproduce your production environment.

We are now looking into this problem, and back to you ASAP.

Thanks.


----- Original Message -----
From: Merit Cooper
To:
Cc: kyle.huang@aspose.com
Sent: Mon, 2 Oct 2006 10:18:06 -0500
Subject: RE: (Aspose.com) Topic Reply: Re: security problem initalizating component

Hello Ivano,

I have copied Kyle on this email. Your email did not make it to Kyle. You
will need to post this on the forum so he can help you. Have a great day.

Thanks,
Merit Cooper
Sales, Aspose Texas Team
Ph: 888-277-6734
Fax: 866-810-9465
sales@aspose.com
http://www.aspose.com/
-----Original Message-----
From: Ivano Panichelli [mailto:ivano.p@robit-informatica.it]
Sent: Saturday, September 30, 2006 3:37 AM
To: Aspose.com - Automated Email
Subject: R: (Aspose.com) Topic Reply: Re: security problem initalizating
component



from the aspx page:
Dim myftp As New components.website
Dim Host As String = ""
Dim Username As String = ""
Dim Password As String = ""
Dim source_db As String = ""
Dim dest_db As String = ""
Dim err_msg As String = ""
If Not myftp.send_db(source_db, dest_db, Host, Username, Password,
err_msg) Then
Response.Write("ERROR:" & err_msg)
Else
Response.Write("OK")
End If

in the component dll

Public Class website
Public Function send_db(ByVal source_db As String, ByVal dest_db
As String, ByVal Host As String, ByVal Username As String, ByVal Password
As String, ByRef err_msg As String) As Boolean
Try
'Instantiate an instance of license and set the license file
through its path
Dim license As Aspose.Network.License = New
Aspose.Network.License()
license.SetLicense("Aspose.Total.lic")

Dim client As Aspose.Network.Ftp.FtpClient = New
Aspose.Network.Ftp.FtpClient(Host, 21, Username, Password)


client.Connect(True)


client.Upload(source_db, dest_db & "/mdb-database/listino.mdb")

client.Disconnect()
Return True
Catch ex As Exception
err_msg = ex.Message

End Try
End Function


#11

hi sorry for the delay but i was seek.

i ask my provider for the config file, but there is no need anymore. they did something and now is working again using your fix

now just for curiuosity i wanna check the old dll if it's working like before

thank's a lot for your time

regards

Ivano Panichelli