Home > Programming > Fix “The following Web projects must be converted to the new Web Site format.” Error

Fix “The following Web projects must be converted to the new Web Site format.” Error

September 17th, 2009 Leave a comment Go to comments

Some old Visual Studio Solutions may come up with this little annoying error on startup.

Here’s how to fix it:

Open the <yourproject>.vspscc File for the defect Project.
It will look like:

""
{
"FILE_VERSION" = "9237"
"ENLISTMENT_CHOICE" = "COMPULSORY"
"PROJECT_FILE_RELATIVE_PATH" = ""
"NUMBER_OF_EXCLUDED_FILES" = "0"
"ORIGINAL_PROJECT_FILE_PATH" = "http://localhost/<yourproject>.vbproj"
"NUMBER_OF_NESTED_PROJECTS" = "0"
"SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROVIDER"
}

Change the Value from ENLISTMENT_CHOICE from COMPULSORY to NEVER and remove the Value from ORIGINAL_PROJECT_FILE_PATH.

The File now looks something like:

""
{
"FILE_VERSION" = "9237"
"ENLISTMENT_CHOICE" = "NEVER"
"PROJECT_FILE_RELATIVE_PATH" = ""
"NUMBER_OF_EXCLUDED_FILES" = "0"
"ORIGINAL_PROJECT_FILE_PATH" = ""
"NUMBER_OF_NESTED_PROJECTS" = "0"
"SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROVIDER"
}

Save the File.

Now remove the defect Project from your Solution and re-add it. This basically removes the Line SccProjectEnlistmentChoice<xx> = <yy> from your Solution File and possibly some other legacy Lines.

Now you’re done! Finally got rid of that annoying Message!

Ad
Categories: Programming Tags:
  1. Riyad
    February 22nd, 2011 at 19:01 | #1

    Thank you! I was having the same problem and figured out the first part – vspscc file, but didn’t realize I had to change solution file as well.

  2. Eric Liu
    July 25th, 2012 at 01:26 | #2

    Thank you very much. It resolved my problem.

  1. No trackbacks yet.
*