I'm currently working on a public MOSS Publishing site. As is normal on such projects, code is being cut on Virtual Machines on the developer PCs, and later placed in an integration environment to make sure it works. A couple of errors arose recently during the integration of web parts which I think are worthy of note.
First, a web part is added to a page layout. The page refuses to render with the error "Compiler Error CS0117 'Type' does not contain a definition for 'Identifier' ". This was most confusing as it works fine on the dev machine and well frankly the error message doesn't give a good hint. Eventually I googled this; http://msdn.microsoft.com/en-us/library/c4aad8at(vs.80).aspx
In the mad rush to develop the web parts, the developer had kept the default namespace and class name in the project. These were the same, and that was causing this error in Integration (but not dev). Following the good practise of changing the namspaces to a standard one for the functional area (and no longer being the same as the class name) fixed this issue.
Subscribe to Cloud with a Sunny Outlook
Get the latest posts delivered right to your inbox