Thankyou - Re: Permissions needed for a Windows Forms Control to call a WebService

From: Danny Shisler (danny@NOSPAMshisler.com)
Date: 11/29/02


From: "Danny Shisler" <danny@NOSPAMshisler.com>
Date: Fri, 29 Nov 2002 19:12:10 -0000


Thanks everyone for all your help.

I have things working now.

Danny

"Heath Stewart" <nospam.clubstew@hotmail.com> wrote in message
news:uVs0y3ElCHA.3752@tkmsftngp08...
> You're right, Dan, and it's not a difficult problem to solve. I spent a
lot
> of time on the phone and email with MSDN about the problem and it's being
> fixed in .NET 1.1. Currently, embedded controls have absolutely no
> permissions so your control will not run while embedded in Internet
Explorer
> without modification to your code groups. You also must not use any
> SystemColor enumeration members in your main control otherwise Internet
> Explorer won't display it either.
>
> You should read more about .NET security so that you can better customize
> your code group, but here are some tips:
>
> 1. Internet Explorer (or IEExec.exe, rather) only passes Host evidence, so
> things like X.509 certificates and StrongNames are not presented to the
> AppDomain that IEExec creates. Only Host, Url, and Zone are passed as
> evidence.
>
> 2. Caspol.exe and the "Microsoft .NET Framework Configuration" tool in the
> "Administrative Tools" folder are helpful. For information about
Caspol.exe,
> make sure the .NET framework SDK and runtime directories are in your path
> (something I hope they fix for .NET 1.1, too) and type caspol.exe -h at
the
> command line. For instance, to change the Intranet_Zone to full trust (not
> recommended, especially in larger companies), you would type:
>
> caspol.exe -m -cg "LocalIntranet_Zone" FullTrust
>
> To reset the Machine policy level (dictated by the -m above), you would
> type;
>
> caspol.exe -m -rs
>
> 3. Rather than opening your computer to attacks because the .NET security
> model is somewhat different from previous models (similar to Java, but
more
> advanced), granualize your permission sets and security zones and don't
> needlessly open things such as setting the Internet zone to FullTrust.
This
> is a common mistake among new .NET developers (heck, even more experienced
> ones).
>
> 4. Check out the entire System.Security namespaces if you'd like to look
at
> it from a developer perspective. That'll cover code groups, policy levels,
> permission sets, evidence, etc.
>
> --
> Heath Stewart
> Senior Software Architect
> Proplanner.NET: Web-based Production Planning Solutions
> http://www.proplanner.net
>
>



Relevant Pages

  • Re: Permissions needed for a Windows Forms Control to call a WebService
    ... permissions so your control will not run while embedded in Internet Explorer ... You should read more about .NET security so that you can better customize ... Internet Explorer only passes Host evidence, so ... needlessly open things such as setting the Internet zone to FullTrust. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: AD DNS naming
    ... my e-mail and Site Internet." ... infrastructure (mostly with respect to DNS and VPN). ... If you do not select this option and go with scenario 2 ... Each DNS zone is authoritative for the zone of that ...
    (microsoft.public.windows.server.dns)
  • Re: How many Global Catalog Servers are needed?
    ... make for an AD DNS FQDN domain name, ... external Internet you need scenario 1, although it is the most DNS-intensive ... Each DNS zone is authoritative for the zone of that name so ...
    (microsoft.public.windows.server.active_directory)
  • Re: .com versus.local
    ... DNS and public names on the internet etc but I have never had someone ... All DNS entries are help at the ISP. ... external Internet you need scenario 1, although it is the most DNS-intensive ... Each DNS zone is authoritative for the zone of that name so ...
    (microsoft.public.windows.server.dns)
  • Re: Domain naming strategies
    ... a delegation to an unreachable internal dns server. ... my e-mail and Site Internet." ... network and from the external Internet you need scenario 1, ... Each DNS zone is authoritative for the zone of that name so ...
    (microsoft.public.windows.server.active_directory)