Security Issue with Webservice

M

MisterG

Hi,

I have an error when making a request to a webservice in managed code in my
Infopath form.
This is the error :
System.Security.SecurityException: Request for the permission of type
System.Net.WebPermission...

The web service is under Integrated Authentication in IIS 6.

BUT I don't have security issue when using DataConnection in my Infopath
form when making WS calls to other webservices : everything goes fine !


Here is my code :
GEN.GeneralService _generalService = new GEN.GeneralService();

_generalService.Credentials = CredentialCache.DefaultCredentials;

_generalService .GetCurrencyCodeByCountry(countryCode);



Thanks for your help.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top