Blog Home  Home Feed your aggregator (RSS 2.0)  
.Net Jonesie - VSeWSS and getting things wrong
A simple programmers blog
 
# Tuesday, February 26, 2008
When deploying a solution to a site you can sometimes get errors that are not picked up during compilation.  For example, we created a Content Type that contained a field with an inccorrect BaseType of "Person" rather than "User".  This compiled just fine but fails on the first deploy.  It then failed to compile after deploying.

To fix this is easy enough - remember to update the content type xml as well as the generated schema.xml - but Visual Studio can get it's nickers in a knot and will not be able to deploy the corrected solution.

You need to manually remove the solution using the setup.bat that is created during deployment. Run setup.bat from the bin\debug or bin\release folder thus: 

    setup /u

Then IISReset.

If you try to redeploy with Visual Studio you may now get an error that talks about an "invariant language"  - sorry, I didn't save this error message when it happened.  You will need to restart Visual Studio to clear this error.



Tuesday, February 26, 2008 8:27:10 AM (New Zealand Daylight Time, UTC+13:00)  #    Comments [0]   Sharepoint  | 
Comments are closed.
Copyright © 2010 Peter G Jones. All rights reserved.
DasBlog 'Portal' theme by Johnny Hughes.
Pick a theme: