Debugging SharePoint – Web application could not be found Issue

Sometimes when I debug my SharePoint code from Visual Studio, I get the exception: System.IO.FileNotFoundException was unhandled   Message=The Web application at http://jl-sp2010/ could not be found. Verify that you have typed the URL correctly. If the URL should be serving existing content, the system administrator may need to add a new request URL mapping…

5

A good under-the-hood SharePoint book?

My former colleague Kjell-Sverre has written a review on the book Building the SharePoint User Experience, where he absolutely recommends reading the book. This is a hardcore book for SharePoint developers. I haven’t read it yet, but it’s on its way. Kjell-Sverre’s review is worth reading, including his follow up post on List Content Type…

0

Copy listitems from one custom list to another, then move them into subfolders.

One problem I stumbled over the other day, was how to copy item from one custom SPlist to another. The two lists are identical and I thought moving the items should be quite easy through use of the object model. It turned out be not so straight forward. Normally, SPListItem.CopyFrom() and SPListItem.CopyTo() should do the…

3

Create Datasheet view missing

The other the I got asked why the “Datasheet view” option was laking from “Create a new view”. It turned out to be a more troublesome way to find the solution than first expected. First I checked the users rights on the site collection, but that really did not give any answers. Secondly, I checked…

2

New Version of SharePoint SiteConfigurator Feature Released!

We have just released a new version of the SharePoint SiteConfigurator feature on codeplex.com.  In this release we have focused on some new features and making sure the build is stable. This involved some refactoring as well as splitting the project in three parts, one for the code and logic, one part for the feature…

2

SPNavigationNode issue

While working on some enhancements for the Site Configurator Feature we just released to CodePlex, I was struggling with an unexpected behavior when trying to add create SPNavigationNodes programmatically for quick launch and top navigation links. There are two constructors to select from: public SPNavigationNode(string title, string url)public SPNavigationNode(string title, string url, bool isExternal) Since I…

1

Unit testing MOSS part 2 (of 2)

In the 1. article on Unit testing MOSS I described some of the findings and experience on unit testing SharePoint applications using the TypeMock Isolator framework. In this 2. article I will provide some examples of unit tests. Code under testYou should of course use TDD principles, but we are in a state where we have…

8

Unit testing MOSS part 1 (of 2)

Some of our team members, including me and Frank Jusnes, were recently responsible for providing recommendations on how to unit test in SharePoint projects, and this is an overview of our findings and experiences. This is the first of two posts on the subject giving an overview. In the second post we are aiming for more examples…

5

Announcing SharePoint Site Configurator Feature on CodePlex

It is an pleasure to announce the second of our two new SharePoint projects on Codeplex.com: Project Description SharePoint Site Configurator Feature is a small framework for taking care of all configurations, settings and featurestapling you need for transforming a standard blank site definition into your own full blown site, without the hassle of creating…

2

Announcing SharePoint PowerShell Deploy on CodePlex

It is an pleasure to announce the first of our two new SharePoint projects on Codeplex.com: Project Description SharePoint PowerShell Deploy is a set of PowerShell files to help you build, deploy, upgrade and destroy a SharePoint farm. It can be used on development machines as well as test and production scenarios. Background information and…

2