Archive for category .Net Framework

Implementing a Visual Studio 2010 extension for SharePoint Server Explorer

Hello, a colleague of mine asked me to find resources on the web how to create a Visual Studio 2010 extension for the SharePoint node in the server explorer. I won’t detail a solution myself, I’ll only post the articles as I’ve found them.

Walkthrough: Calling into the SharePoint Client Object Model in a Server Explorer Extension

This one illustrates how to do it with the SharePoint client object model. This is the best I’ve found so far, the result is quite nice, and shows from the beginning to the end with almost every click along the way.

Walkthrough: Extending Server Explorer to Display Web Parts

Another walkthrough which illustrates the same thing, bu with SharePoint command. I’d say, to my liking, this one is more complicated, and it generated an exception at the end. I may have mistyped something along the way, but I doubt it. Nevertheless, if you want to proceed with SharePoint commands, it would be a fine starting point.

How to: Extend a SharePoint Node in Server Explorer

If you’ve done the walkthrough, and only need a simple checklist, then this one is the way to go. It only enumerates the steps to follow in order to create an extensions without taking you by the hand.

, , ,

No Comments

Uninstall an assembly from the GAC: Access Denied

If you’ve encountered this problem, you probably did a Google search. You must have noticed there isn’t alot of solutions which have worked for you. Here’s something that has worked for me.

In the command prompt, I executed the following code:

cd /d %windir%\assembly 
attrib -r -h -s desktop.ini 
mkdir gacview 
move desktop.ini gacview 
attrib +s gacview 
attrib +r +h +s gacview/desktop.ini


This code allows you to browse the GAC as in Windows Explorer instead of the GAC viewer. The second portion of the script creates a folder named “gacview” in the assemble folder, which allows you to browse the GAC in the old fashion way. This way, you retain the advantages of both world.

Once you can browse the GAC with Windows Explorer, you can find your assembly, and manually delete it, and no security will prevent you from doing so.

I don’t know if there are repercussions to this, I don’t know if it’s a good practice or not. My guts tell me it’s a hack, so it’s probably not a good practice, but it’s the only thing that worked for me.

, , ,

No Comments