RE: Could not find a part of the path - User control from within I



Thanks for your followup Leslie,

I'm very glad that the former sugggestion is of assistance :).

As for the further CAS issue you mentioned, I'd like to confirm the
following things:

1. When granting the CAS permission through strong-named codegroup, do you
grant "Full Trust" permission?

2. Are you sure whether all the assemblies used in your usercontrol(main
assembly or other assemblies referenced directly or indirectly by your main
assembly) are of the same strong-named. If there exists some other
assemblies which are referenced, you need to make sure they will also be
evaluated as "Full Trust" permission at the client-side's .net CAS...

If there have many referenced dependeny assemblies and you feel it hard to
point out which is likely the cause, you can try create a reproduce
usercontrol which use them reference and use them one by one and test it to
rule out the problem one.(For test, just grant "Full Trust" to make it
simplified:)).

In addition, for IE host .net control, we can enable a client-side IEHOST
log file which may provide some information when there occuring some
exceptions(inlucde CAS specific exceptions):

#HOW TO: Use the IEHost Log to Debug .NET Object Hosting in Internet
Explorer
http://support.microsoft.com/kb/313892/en-us

Hope this also helps.

Regards,

Steven Cheng
Microsoft Online Community Support


==================================================

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

==================================================


This posting is provided "AS IS" with no warranties, and confers no rights.










.



Relevant Pages

  • Re: CAS & GAC: connection?
    ... > apply with CAS and the GAC: ... assemblies will have full trust, and most assemblies in the GAC are locally ...
    (microsoft.public.dotnet.security)
  • Re: CAS and Strong Named EntLib 2.0 Assemblies
    ... If your application requires additional CAS permissions on the client, you will need to either modify the CAS policy on each client machine or deploy as a ClickOnce application. ... can build strong named assemblies referencing these assemblies. ... used the Increase Trust wizard to trust all assemblies with a specific public ...
    (microsoft.public.dotnet.security)
  • Re: assemblies...
    ... Well I don't want others to use my assemblies for free... ... I think you mean CodeAccessSecurityAttribute by CAS? ... > Oh and people generally don't reference assemblies directly in the ... > GAC, so whether or not you install your assembly in the GAC is ...
    (microsoft.public.dotnet.framework)
  • RE: Office PIA:s. Can they be made to work properly?
    ... I found the only way to reference a version prior to the one on the build ... > b) Build+Run successful, ... > WARNING: Unable to find dependency 'mscorlib' (Signature='B77A5C561934E089' ...
    (microsoft.public.dotnet.framework.interop)
  • Re: Referencing your other assemblies in projects
    ... Yeah, I know it seems weird, but I still put winforms applications under the ... I set the working folder ... My company sets up a "Release" folder for commonly used assemblies. ... the dietcoke manager can relatively reference ...
    (microsoft.public.dotnet.languages.csharp)