Code Access Security Problems in IE-hosted Winform

From: Philipp Lenz (Barbelith_at_Gallileo.mo)
Date: 09/23/05


Date: Fri, 23 Sep 2005 18:02:42 +0200


Hi!

I have a winform that I host in IE, this winform communicates with a
webservice. On my development machine, this works perfectly, when I
access the IE page remotely, I get a System.Net.Webpermission failed
error when I try to access my webservice.

Now what I don't underatand is this: The webpage with the control
lies on server http://MyServer/mypage.html so I tried two things:
I created a codegroup that gives fulltrust to applications with url
evidelce http://MyServer/*

This did not work.

I then made sure that MyServer is part of my Local Intranet Zone
and edited the "Local Intranet" policy to give Full Trust to code run
from that zone.

Nothing

I suspect that I'm doing something wrong because the dll for the
winform is run from the local dell temp cache, but I don't know what
to do next, please help!

Thanks in advance for any replies,

Philipp Lenz



Relevant Pages

  • Re: Server did not recognize the value of HTTP Header SOAPAction
    ... I have this winform 1.1 project where before I started changing the backend ... I understand you've developed an ASP.NET webservice ... which is consumed by a winform client application. ... application is sending an unexpected SoapAction header to the service. ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • Re: app type
    ... The logger may be used in a winform, webform or in a webservice. ... This way your logging component can ...
    (microsoft.public.dotnet.general)
  • Re: Starting exe from WebService
    ... I need to execute the program through the webservice ... WebService because the program is complicated and I don't ... WinForm app is getting ... >Why do you want a WebMethod to launch a WinForm on the ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: call from a webservice to a windows Form
    ... > something more efficient like remoting or named pipes, ... Because the WinForm isn't the client of the webservice. ...
    (microsoft.public.dotnet.languages.csharp)