Re: Stong named Managed C++ Assembly still needs Full trust?

From: Moe Khosravy (MKhosravy_NO_SPAMM_@VitalImages.com)
Date: 01/24/03


From: "Moe Khosravy" <MKhosravy_NO_SPAMM_@VitalImages.com>
Date: Fri, 24 Jan 2003 09:28:03 -0800


Hi Ivan,

Thanks for the reply...

So, assuming that I can NOT move the code to the user's
MyComputer and yet I still want the managed C++ code and
DLLs to run, how can I use
System.Security.SecurityManager to add my site as a
Trusted Site in IE? Is this required or not?

It seems as though I HAVE to add our domain to the list
of trusted sites in IE to allow the code to run without
any PolicyExceptions...

Thanks,
Moe

>-----Original Message-----
>Moe -
>In the current version C++ produces code requires
permission to skip
>verification in order to run. This permission is granted
by
>SecurityPermission with flag SkipVerification, which is
a part of the
>built-in permission set called "FullTrust ". To make
this code run you will
>need to change the security policy on the client machine
or move the code to
>a local drive thus putting it into "MyComputer" zone
that gets FullTrust by
>default. If you can not move the code you will need to
modify the policy,
>which is easy to do programmatically (using
System.Security.SecurityManager
>class), via script (using a tool called caspol.exe) or
manually (using ".NET
>Framework Configuration" applet from the control panel).
>For example, if you are running the code off the
intranet, your caspol
>command would be something like the following:
>caspol -ag 1.2 -strong -file <assembly_file> -noname -
noversion FullTrust
>
>Hope this helps.
>--Ivan
>
>This posting is provided "AS IS" with no warranties, and
confers no rights
>
>
>"Moe Khosravy" <MKhosravy_NOSPAM@VitalImages.com> wrote
in message
>news:O#knMypwCHA.2288@TK2MSFTNGP09...
>> Hi Guys,
>>
>> We've got a C# Windows Forms application relying on
some Managed C++ DLLs.
>>
>> All are strong named but I notice with Zero touch
deployment, I get a
>> System.IO.FileLoadException: Unverifiable assembly
exception as soon as a
>> Managed C++ DLL is pulled in. As soon as I bump up the
security to FULL
>> TRUST for "Trusted Sites" using the .NET Framework
Wizards, everything is
>> fine. The app and its managed 3D libraries, stream
across IIS to the
>client
>> and all is well.
>>
>> My problem: How to imitate the old ActiveX license
scheme? We'd like this
>to
>> be EASY for the user. Go to a URL, agree to one
licensing/security
>> dialogbox, stream down the app, and use. What should I
look at to achieve
>> this?
>>
>> In other words, I'd like to programmatically add our
site to the user's
>> Trusted Sites and adjust security to FULL. Obviously
can't be completely
>> transparent, but want some pointers on how to proceed
so that it can be
>> achieved using a single interaction with the user.
>>
>> Thanks,
>> Moe
>> www.vitalimages.com
>>
>>
>
>
>.
>



Relevant Pages

  • Re: Blocked newspaper reader comments
    ... I had put the home page in trusted sites. ... "rtedesco" wrote: ... No third party firewall ... MS MVP-IE, Mail, Security, Windows Desktop Experience - since 2002 ...
    (microsoft.public.security)
  • Re: Turnoff login
    ... This is overkill - adding things to trusted sites might have security ... > Click Sites button and add the URL of SharePoint site ... > Parag Sinkar ...
    (microsoft.public.sharepoint.windowsservices)
  • Re: MS Popups?
    ... Frank Saunders, MS-MVP OE/WM ... "Anyone who prefers security over freedom deserves neither." ... Windows Update uses ActiveX Controls and active scripting to display content correctly and to determine which updates apply to your computer. ... Click the Trusted Sites icon, ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: Unable to change the Security Settings In Internet Explorer
    ... MS MVP-Windows (IE, OE, Security, Shell/User) ... of the settings in any of the zones. ... Same for the Local Intranet Zone. ... The Restricted Sites is the same as the Trusted Sites. ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: Your current security settings prohibit running ActiveX controls on this page. A
    ... When you make changes to the "Internet" zone on how IE handles ActiveX ... If you open Tools, Internet Options, Security tab, and click "Trusted Sites" ...
    (microsoft.public.windowsxp.general)