Webparts and the GAC
Windows Server Forum Index Windows Server
Server discussion on Windows platform.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web winserverhelp.com
Webparts and the GAC

 
Post new topic   Reply to topic    Windows Server Forum Index -> Portal Server Development
Author Message
Chris Thompson
Guest





Posted: Thu Jan 13, 2005 12:39 am    Post subject: Webparts and the GAC Reply with quote

Is there a way for a webpart to tell if it is installed in the GAC?
Back to top
Gary A. Bushey [MVP]
Guest





Posted: Thu Jan 13, 2005 5:39 pm    Post subject: Re: Webparts and the GAC Reply with quote

It could always try to do something that requires full permissions.

--
Gary A. Bushey
SPS MVP
bushey@mindspring.com
"Chris Thompson" <ChrisThompson@discussions.microsoft.com> wrote in message
news:7A02AD63-DA8E-47B5-B537-99EC2A7A28C6@microsoft.com...
> Is there a way for a webpart to tell if it is installed in the GAC?
Back to top
news.microsoft.com
Guest





Posted: Mon Jan 17, 2005 12:29 am    Post subject: Re: Webparts and the GAC Reply with quote

try this...

bool isgac = this.GetType().Assembly.GlobalAssemblyCache;

Kyle



"Chris Thompson" <ChrisThompson@discussions.microsoft.com> wrote in message
news:7A02AD63-DA8E-47B5-B537-99EC2A7A28C6@microsoft.com...
> Is there a way for a webpart to tell if it is installed in the GAC?
Back to top
 
Post new topic   Reply to topic    Windows Server Forum Index -> Portal Server Development All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




New Topics Powered by phpBB