Migrating SharePoint Solutions from 2007 to 2010
Written by: Lee Kohn
Today I had the pleasure of taking a SharePoint solution which had been built against 2007 and migrating it to 2010. The whole process went much smoother than I had originally thought although I did learn a couple of things:
Anything stored in the session state must be marked as serializable
This was simply an oversight in the 2007 version which didn’t complain about my structs not being marked serializable, however SharePoint 2010 will error out.
The InputFormTextBox control now requires a stylesheet from SharePoint
In SharePoint 2007 you could embed InputFormTextBox controls into your custom ASPX pages and the only dependency the control had where the core.js and init.js files (located in _layouts). In SharePoint 2010 you now need to include the /_layouts/1033/styles/themable/forms.css file in order for the control to appear correctly.
The Microsoft.SharePoint DLL has moved
Since SharePoint is now on version 14 the Microsoft.SharePoint DLL is now located in C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\ISAPI. This is just a minor change to the reference but may cause some annoyance to developers who are targeting both versions of SharePoint. (Note that once the solution is built it can be used for both versions of SharePoint, the difference in location won’t matter)
-Lee
Posted on June 21st, 2010 in Technology, Tips & Tricks.

