Thursday, January 22

Webpart option in Visual Studio 2008

The official way to develop MOSS 2007 WebParts is to work on a Windows Server 2003 with at least WSS 3.0 installed or to use a similar VPC environment. In the VPC case this means you need to have at least 2 GB of memory available, in order to spend 1 – 1.5 GB for the Sharepoint Server VPC.

Setting up the Developer Workstation:

1. You need a Windows XP SP2 or Windows Vista Machine with Visual Studio 2005 installed.

2. Install all Updates from Windows Update including Service Pack 1 for Team Suite or Service Pack 1 for Express Editions. If you run on Vista install the Service Pack 1 Update for Vista

3. You can optionally install WSS SDK an Office Server SDK also on your Workstation

4. Locate the Sharepoint Templates installed on the server environment and copy them to your Workstation User Templates. You have to navigate to:
“C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\ProjectTemplates\CSharp”
and copy the whole Sharepoint Directory to your user Templates Folder on your Workstation. The Path is normally:
“C:\Users\\Documents\Visual Studio 2005\Templates\ProjectTemplates\Visual C#”.

If you want to develop in VB.NET do the same for the Sharepoint Folder in:
“C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\ProjectTemplates\VisualBasic”

And copy it to:
“C:\Users\\Documents\Visual Studio 2005\Templates\ProjectTemplates\Visual Basic”

Do the same for the Sharepoint Folders in the ItemTemplates Directory. There is only one for CSharp. Navigate to:
“C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\ItemTemplates\CSharp”

And copy the Sharepoint Folder to:
“C:\Users\\Documents\Visual Studio 2005\Templates\ItemTemplates\Visual C#”

5. Copy the complete Folder “Microsoft Sharepoint Developer Tools”, which can be found in “C:\Program Files” on the Server or VPC to your Workstation machine in the same location.

6. In order to register the Projects, Packages and Templates on you Workstation machine you have to add several registry keys to your Registry. Here is the whole stuff, just copy and paste it in a text file and save it with a *.reg extension:

Double click the *.reg File or import it using Regedit. In order to load the new package file, you maybe must start Visual Studio from the command line with the option /ResetSkipPkgs. Start a Command Window (on Vista this should run as an administrator) and navigate to:

“C:\Progarm Files\Microsoft Visual Studio 8\Common7\IDE”

And start Visual Studio via the following command:

Devenv /ResetSkipPkgs

Now you should be able to create new Sharepoint Projects like WebParts. To doublecheck this, in Visual Studio 2005 navigate to the Menu File->New->Project the Dialog Box should look like this:

Now select the Web Part and click Ok. Visual Studio should create the appropriate Project Files. If you click on References in the Solution Explorer you will see that there is an unresolved reference to the “Microsoft.Sharepoint” Assembly. So you can not yet build the WebPart or other Sharepoint Projects on the Workstation. Therefore the next 2 steps are necessary.

7. The Sharepoint Assemblies (DLLs) are located in the following Folder on the Sharepoint Server Installation:

“C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\ISAPI”

I copied the complete folder to the same location on my Workstation, but you can also only copy the assemblies, which start with “Microsoft.Sharepoint.*” to any folder on your Workstation.

8. In order that Visual Studio can automatically resolve the references you should add the assemblies to the Global Assembly Cache” (GAC). You can use the command line tool gacutil.exe or use the “Microsoft .NET Framework 2.0 Configuration” which can be found through navigating to Control Panel, then select “Administrative Tools”.

9. Now you should be able to generate and build Sharepoint Server 2007 related projects on a remote Workstation.


  1. I am regular visitor, how are you everybody? This piece
    of writing posted at this website is truly pleasant.

    Here is my page: how i can buy a house with bad credit

  2. Keep this going please, great job!

    Stop by my website ... beitragsbemessungsgrenze krankenversicherung

  3. I am curious to find out what blog system you have been utilizing?
    I'm experiencing some minor security issues with my latest website and I'd like to
    find something more safe. Do you have any solutions?

    Review my website - gesetzliche krankenversicherung leistungen

  4. I usually do not leave a response, but I browsed a few of the
    comments on this page "Webpart option in Visual Studio 2008".
    I do have 2 questions for you if it's allright. Could it be only me or do some of these remarks come across as if they are left by brain dead visitors? :-P And, if you are writing on other online social sites, I'd like to keep up with you.
    Could you make a list of every one of all your shared sites like your linkedin profile,
    Facebook page or twitter feed?

    My blog post ... refinance loans

  5. We're a group of volunteers and opening a new scheme in our community. Your site offered us with valuable information to work on. You've done an
    impressive job and our whole community will be
    thankful to you.

    Also visit my web blog: Low Cost Reseller Web Hosting

  6. I want to to thank you for this good read!! I definitely loved every bit of it.
    I have you saved as a favorite to look at new things you post…

    my web site :: free home based business

  7. Howdy! This is my 1st comment here so I just wanted to give a
    quick shout out and say I genuinely enjoy reading through your articles.
    Can you suggest any other blogs/websites/forums that cover the same
    topics? Thanks a ton!

    Here is my web site ... bahama vacations
    my web site :: fripp island vacations

  8. whoah this weblog is excellent i love reading your posts.
    Keep up the great work! You recognize, a lot of individuals
    are hunting around for this information, you can aid them greatly.

    Here is my weblog :: private krankenversicherung für kind
    Also see my site :: hallesche pkv

  9. Outstanding quest there. What happened after? Take care!

    Look into my webpage: seo services in uk
    Also see my web site - phoenix Search engine optimization

  10. There's certainly a great deal to find out about this subject. I like all of the points you have made.

    My homepage money market place

  11. Keep this going please, great job!

    my weblog; basistarif krankenversicherung
    my page: vergleich krankenkasse

  12. You have made some really good points there. I checked on the internet for
    more info about the issue and found most people will go along with your views on this web

    Feel free to visit my site; best hosting

  13. You can certainly see your skills in the work you write.

    The world hopes for even more passionate writers such as you who
    aren't afraid to mention how they believe. Always go after your heart.

    Here is my weblog; honeymoon spots

  14. Howdy just wanted to give you a quick heads up. The text
    in your content seem to be running off the screen in Ie. I'm not sure if this is a format issue or something to do with web browser compatibility but I figured I'd post to let you know.

    The layout look great though! Hope you get the problem solved soon.

    Feel free to surf to my website: krankenkasse vergleich leistungen
    Also see my site - krankenversicherung mitglieder

  15. Wow, fantastic weblog format! How lengthy have you ever been blogging for?

    you make blogging look easy. The whole glance of your web site
    is magnificent, as smartly as the content material!

    My web page site affiliate

  16. Hi! Do you know if they make any plugins to protect
    against hackers? I'm kinda paranoid about losing everything I've
    worked hard on. Any tips?

    Here is my blog online home business

  17. Hi, I do believe this is an excellent site. I stumbledupon
    it ;) I am going to return once again since i have book-marked it.
    Money and freedom is the greatest way to change, may you be rich and continue to guide others.

    Check out my web site :: private krankenversicherung für arbeitnehmer
    my webpage - test vergleich private krankenversicherung

  18. My relatives always say that I am wasting my time here at web, however I know I am getting familiarity everyday
    by reading such good posts.

    my web site ... loan calculator
    My site :: bank loans

  19. I pay a quick visit daily a few websites and sites to read
    articles, however this webpage gives feature based articles.

    my weblog: die familienversicherung

  20. Howdy! I just want to give you a big thumbs up for your great info you've got here on this post. I'll be coming back to your blog for
    more soon.

    Also visit my web site Pkv Online Vergleich

  21. Hello everyone, it's my first visit at this web site, and piece of writing is truly fruitful in support of me, keep up posting such posts.

    Look into my web blog :: welche private krankenversicherung

  22. Hey there! I know this is somewhat off topic but I was wondering
    if you knew where I could find a captcha plugin for my comment
    form? I'm using the same blog platform as yours and I'm having problems finding one?
    Thanks a lot!

    My blog post; business hosting web

  23. Quality content is the key to interest the users to pay a
    visit the site, that's what this web site is providing.

    My blog: Pkv Vergleich Online

  24. Hi there just wanted to give you a quick heads up. The words in your
    content seem to be running off the screen in Safari.

    I'm not sure if this is a formatting issue or something to do with web browser compatibility but I thought I'd post to let you know.
    The design and style look great though! Hope you get the problem solved soon.

    Also visit my web page seo expert forum

  25. ohhh Nice information

    my web site :: caribbean islands vacations all inclusive :
    : :

  26. Could not agree more! At your accomplishment

    Also visit my weblog :: names of car insurance