Hosted WinForms Controls and CAS
- From: Shawn Wildermuth <swildermuth@xxxxxxxxxx>
- Date: Mon, 27 Feb 2006 14:57:44 -0800
I am workign with a small intranet app for a customer and we've decided to use Hosted WinForms controls for several really complicated code we have. I can host the controls fine (much easier than I thought actually). But I can't do certain work without elevating the CAS and Zone permissions. THis isn't a concern for the customer. They are happy to include the app in the "Trusted" zone.
I am at the point where I can detect the framework requirements and the security requirement and forward the user to a page to download an installable package to do the security work of elevating permissions. Before I invent my own thing, I wondered if anyone knew of any examples of how to do with in an Installer? I don't want to elevate more permissions than I really need, so any advice about how to elevate CAS permissions for my particular assembly instead of elevating it for the entire zone would be great. The installer is *not* installing the assembly with the controls so that we can download new versions as necessary. That might complicate things those. Any hints or urls would help.
BTW, I have googled and found lots of example of how to do the hosting, but not the security side...so don't bother just sending me links to places that explain the <object ... /> tag syntax.
TIA
Shawn Wildermuth C# MVP, Author and Speaker
http://adoguy.com
.
- Follow-Ups:
- Re: Hosted WinForms Controls and CAS
- From: Dominick Baier [DevelopMentor]
- Re: Hosted WinForms Controls and CAS
- Prev by Date: Permissions on dynamically loaded assembly?
- Next by Date: Re: Hosted WinForms Controls and CAS
- Previous by thread: Permissions on dynamically loaded assembly?
- Next by thread: Re: Hosted WinForms Controls and CAS
- Index(es):
Relevant Pages
|