Hi
Use your code to create a new website and it looks pretty well, I didn't receive any error.
The only change I've made is setting the CustomerFunctions.getCustomerDetails(User.Identity.Name) to New Customer , but it doesn't matter, right?
BTW: I use VS 2005 and .net v2.0.50727.
Anyway, I guess it may because mismatched DLL versions. For detail information, please see this link and hope it helps
http://p2p.wrox.com/TopicIndex/38283.htm
This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites; therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.