Saturday, June 23, 2007

Vs.net 2003 - Unable to read project file **.vbproj The system cannot find the path specified

Many of us have faced this problem while moving the solution created in vs.net 2003 that contains web projects from one to another location on hard drive or setting up the solution on our pc that is created on some different machines.

The projects would still be accessible by internet explorer specifying the appropriate url.

The solution of this problem lies in changing a couple things like below:
  • Go to "C:\Documents and Settings\\VSWebCache\" and find out the project you are trying to set up. Delete the project to remove it from the vs.net 2003 web cache.
  • Now go to the folder that contains your project solution file. Find out .suo file that will have the similar name as of your solution name. Delete this .suo file as well. The .suo file contains the local hard drive paths of the projects that was set earlier. So it's necessary to delete this file. When you will open the solution next time, a .suo file will be automatically generated.
  • Now open your solution file with notepad or any text editor and find out the section GlobalSection(SourceCodeControl). Remove this whole section. This is required to remove the source control bindings for your web projects and solution. Also please setup the appropriate project web locations in this file. Save this file and close it.
  • Try to open the solution now. It will give you some errors regarding the incorrect source control bindings. This is quite okay, click OK and bypass the messages. It will open the projects in unbound mode.
  • After the project is opened, you can always bind it again with the source control by "File-SourceControl->ChangeSourceControl" option.
Everything should work now. :)

1 comment:

Anonymous said...

Clear & complete instructions...
Solved my problem..

Thanks a lot.