> Hi Nicole
>
[quoted text clipped - 9 lines]
> Assembly evidence must match this membership condition to belong to the
> code group: Url - file://C:/Program Files/Microsoft WSE/v2.0/*.
Code groups based on file paths can be tricky. You need to be using the
exact path that will be used at runtime, and finding that exact path can
require considerable troubleshooting. In this case, I would recommend using
a strong name membership condition instead of a URL membership condition
when defining the code group.
> You are correct about the AllowPartiallyThrustedCallers - but the caller
> here is a Microsoft Assembly (VS.NET),
Actually, the problem assembly here is probably WseSettingsVS2.dll, which is
not signed with the same Microsoft strong naming key that is used for
signing the .NET Framework assemblies (which is granted full trust via the
My_Computer_Zone\Microsoft_Strong_Name group).
> and assemblies exibiting strongnameidentity of <Microsoft snkey> does
> receive Fullthrust, so VS.NET is therefore not partially thrusted.
WseSettingsVS2.dll (the add-in assembly) is not signed with the same key, so
it isn't granted full trust under the My_Computer_Zone\Microsoft_Strong_Name
group. I would recommend creating a similar group (e.g.:
My_Computer_Zone\MicrosoftWseSettings_Strong_Name) that uses the key from
the WseSettingsVS2.dll assembly. Just so you know, I've tested this
approach, and it does work.
> Has it to do with the fact that VS.NET (the caller) is a COM application?
Probably not since granting full trust to the add-in assembly resolves the
problem.
> Thanks
> /Claus
[quoted text clipped - 33 lines]
>>
>> /Claus
Claus Konrad - 05 Jul 2005 22:30 GMT
Thanks a zillion!
SN did the trick.
Now - I'm just puzzled as to why the built-in CodeGroup (My_Computer_Zone)
does not give everything fullthrust as it's condition is Zone = My Computer?
I mean - everything on my C-drive fullfils this condition?
That MS has made a SN-condition in addition to this group is just to
maintain full trust to their own assemblies (maching a cretain sn).
Am I totally way out here?
/Claus
>> Hi Nicole
>>
[quoted text clipped - 76 lines]
>>>
>>> /Claus
Nicole Calinoiu - 06 Jul 2005 20:37 GMT
> Thanks a zillion!
> SN did the trick.
>
> Now - I'm just puzzled as to why the built-in CodeGroup (My_Computer_Zone)
> does not give everything fullthrust as it's condition is Zone = My
> Computer?
Back in your first post in this thread, you reported changing the zone code
group to use the Everything permission set instead of FullTrust. Why are
you surprised that the FullTrust set is no longer being granted in the zone?
> I mean - everything on my C-drive fullfils this condition?
Almost everything. Assemblies loaded from the network are probably also
stored on your C: drive even though they are not assessed as falling in the
local zone.
> That MS has made a SN-condition in addition to this group is just to
> maintain full trust to their own assemblies (maching a cretain sn).
The code groups for the Microsoft and ECMA strong names are redundant as
long as the local zone is granted full trust. However, if someone alters
the permissions grant on the local zone (as you did by changing the grant
from FullTrust to Everything), these two code groups help ensure that the
core .NET Framework assemblies and supporting utilities will continue to
work correctly.
> Am I totally way out here?
>
[quoted text clipped - 82 lines]
>>>>
>>>> /Claus
Claus Konrad - 05 Jul 2005 22:43 GMT
Or put in another way - the CodeGroup "My_Computer_Zone" with PermissionSet
= "Full Trust" simply just trusts everything running from my harddrive,
correct?
It effectively disables CAS on my local harddrive?
/Claus
>> Hi Nicole
>>
[quoted text clipped - 76 lines]
>>>
>>> /Claus
Nicole Calinoiu - 06 Jul 2005 20:39 GMT
Answered in your new thread...
> Or put in another way - the CodeGroup "My_Computer_Zone" with
> PermissionSet = "Full Trust" simply just trusts everything running from my
[quoted text clipped - 86 lines]
>>>>
>>>> /Claus