alfdev wrote:
E non esiste una soluzione?
uhm, forse WebRequest/Response non usano lo stesso codice di WebClient, potresti provarci.
perchè, riporto da MSDN, quando la tua app ASP.NET è in medium trust hai queste limitazioni:
* OleDbPermission is not available. This means you cannot use the ADO.NET managed OLE DB data provider to access databases. However, you can use the managed SQL Server provider to access SQL Server databases.
* EventLogPermission is not available. This means you cannot access the Windows event log.
* ReflectionPermission is not available. This means you cannot use reflection.
* RegistryPermission is not available. This means you cannot access the registry.
* WebPermission is restricted. This means your application can only communicate with an address or range of addresses that you define in the <trust> element.
* FileIOPermission is restricted. This means you can only access files in your application's virtual directory hierarchy. Your application is granted Read, Write, Append, and PathDiscovery permissions for your application's virtual directory hierarchy.