Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Security > Are MS Assemblies in the GAC?

Reply
Thread Tools

Are MS Assemblies in the GAC?

 
 
Gery D. Dorazio
Guest
Posts: n/a
 
      02-07-2005
I want to create strongly signed support assemblies so they can be shared by
different ASP.NET web apps. This requires that they be installed into the
Global Assembly Cache. To be installed in the GAC means the assemblies must
be signed with a strong name. But according to MS documention: "...Remember
that once you give an assembly a strong name, all assemblies that reference
that assembly also have to have a strong name."

When I develop an ASP.NET web app and the various references point to
System, System.Drawing, System.Web,...etc. I was under the impression that
the MS libraries were in the GAC. Is this true(which means they are signed)?
If so, this would appear to contradict the MS statement.

The goal is to deploy assemblies into the GAC so they can be shared by
different web apps which means they have to be signed with strong names. So
can I still build the different web sites and not sign them while still
referencing the strongly signed assemblies?

Can someone clear this up?

Thanks,
Gery


--
Gery D. Dorazio
Development Engineer

EnQue Corporation
1334 Queens Road
Charlotte, NC 28207
(704) 377-3327


 
Reply With Quote
 
 
 
 
Nicole Calinoiu
Guest
Posts: n/a
 
      02-07-2005
"Gery D. Dorazio" <> wrote in message
news:Ooz$...
>I want to create strongly signed support assemblies so they can be shared
>by different ASP.NET web apps. This requires that they be installed into
>the Global Assembly Cache. To be installed in the GAC means the assemblies
>must be signed with a strong name. But according to MS documention:
>"...Remember that once you give an assembly a strong name, all assemblies
>that reference that assembly also have to have a strong name."


If that's straight out of the documentation, the docs have it wrong. A
strongly named assembly can only reference strongly named assemblies, but
assemblies that are not strongly named can reference both strongly named and
non-strongly named assemblies. If this weren't the case, no non-strongly
named apps would work since they all reference strongly named Microsoft
assemblies.


> When I develop an ASP.NET web app and the various references point to
> System, System.Drawing, System.Web,...etc. I was under the impression that
> the MS libraries were in the GAC. Is this true(which means they are
> signed)? If so, this would appear to contradict the MS statement.


You're right, and the statement is wrong.


>
> The goal is to deploy assemblies into the GAC so they can be shared by
> different web apps which means they have to be signed with strong names.
> So can I still build the different web sites and not sign them while still
> referencing the strongly signed assemblies?


Yes.

>
> Can someone clear this up?
>
> Thanks,
> Gery
>
>
> --
> Gery D. Dorazio
> Development Engineer
>
> EnQue Corporation
> 1334 Queens Road
> Charlotte, NC 28207
> (704) 377-3327
>



 
Reply With Quote
 
 
 
 
Gery D. Dorazio
Guest
Posts: n/a
 
      02-07-2005
Thanks Nicole,

Gery

--
Gery D. Dorazio
Development Engineer

EnQue Corporation
1334 Queens Road
Charlotte, NC 28207
(704) 377-3327
"Nicole Calinoiu" <calinoiu REMOVETHIS AT gmail DOT com> wrote in message
news:...
> "Gery D. Dorazio" <> wrote in message
> news:Ooz$...
>>I want to create strongly signed support assemblies so they can be shared
>>by different ASP.NET web apps. This requires that they be installed into
>>the Global Assembly Cache. To be installed in the GAC means the assemblies
>>must be signed with a strong name. But according to MS documention:
>>"...Remember that once you give an assembly a strong name, all assemblies
>>that reference that assembly also have to have a strong name."

>
> If that's straight out of the documentation, the docs have it wrong. A
> strongly named assembly can only reference strongly named assemblies, but
> assemblies that are not strongly named can reference both strongly named
> and non-strongly named assemblies. If this weren't the case, no
> non-strongly named apps would work since they all reference strongly named
> Microsoft assemblies.
>
>
>> When I develop an ASP.NET web app and the various references point to
>> System, System.Drawing, System.Web,...etc. I was under the impression
>> that the MS libraries were in the GAC. Is this true(which means they are
>> signed)? If so, this would appear to contradict the MS statement.

>
> You're right, and the statement is wrong.
>
>
>>
>> The goal is to deploy assemblies into the GAC so they can be shared by
>> different web apps which means they have to be signed with strong names.
>> So can I still build the different web sites and not sign them while
>> still referencing the strongly signed assemblies?

>
> Yes.
>
>>
>> Can someone clear this up?
>>
>> Thanks,
>> Gery
>>
>>
>> --
>> Gery D. Dorazio
>> Development Engineer
>>
>> EnQue Corporation
>> 1334 Queens Road
>> Charlotte, NC 28207
>> (704) 377-3327
>>

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
what is assemblies.reg ? hdjim69 ASP .Net 3 05-05-2004 03:17 AM
Loading Assemblies, when the interface is not defined by your application Timothy ASP .Net 1 01-27-2004 06:46 AM
Loading Assemblies at runtime (...from the GAC) Timothy ASP .Net 1 01-27-2004 06:45 AM
how to locate & load 3rd party private assemblies at run time? Terry McKiernan ASP .Net 0 07-07-2003 04:24 AM



Advertisments