Inventua Blogs - Matthew Glover, Anthony Glenwright, Inventua News

Inventua Blogs

Jan 24

Written by: matthew.glover
Tuesday, January 24, 2006 9:50 PM

“Unable to read the project file '<file name>'. The system can not find the file specified.”

 

Sometimes you may receive this error when loading a solution in Visual Studio .NET that contains a web services project.  I have found this error occurs when the solution was created on one machine and you are trying to set up the source code environment on another.  However there may be other instances in which this error occurs.

 

One way to work around this is to remove the project and add it back in again from the virtual directory that you have created to contain it.  This is time consuming though because you have to do this every time you load the solution.  In an environment where the source is under version control, it also means you have to check-out the solution file and check it back in every time (or at least undo your check-out).

 

There are few articles that describe how to address this problem, and none that really describe the cause.  When I get this problem, I have devised a method for establishing the source code environment properly on my local machine to avoid the time consuming work around.

 

1. Copy the files from the Visual SourceSafe database to your local computer.

2. Create the virtual directory for the web services project manually and point it to the desired directory.  Configure the application & script execution settings (IIS) (no application name etc).

3. Locate the <project>.vbproj file in IIS by clicking on the virtual directory and displaying the contents and delete it.

4. Open VS.NET and open the solution from visual source safe

5. When prompted for the location of the web service project, select the virtual directory you have created for the web services project and hit OK.

 

Visual Studio will extract a new copy of the .vbproj file into the Virtual Directory and your solution should now work as expected.

 

Matthew Glover

Copyright ©2006 Inventua

Tags:

7 comments so far...

Re: “Project not found” problem loading a Solution with a web services project in Visual Studio.NET 2003

spot on Mathew! I wish I'd found your blog when I started hitting these problems 3 hours ago

By David de la Riviere on   Thursday, February 23, 2006 2:08 AM

Re: “Project not found” problem loading a Solution with a web services project in Visual Studio.NET 2003

David,

I'm glad you found this useful. I used the workaround for weeks before finally coming up with the approach to fix it!

All the best with your project.

Matthew Glover

By matthew.glover on   Thursday, February 23, 2006 5:19 AM

Re: “Project not found” problem loading a Solution with a web services project in Visual Studio.NET 2003

Its been driving me nuts (on and off) for 3 weeks. Well done and thanks muchly.

By bruce on   Monday, February 27, 2006 11:13 AM

Re: “Project not found” problem loading a Solution with a web services project in Visual Studio.NET 2003

The above works for a clean machine. If you already had a link to an existing project (say in wwwroot) there's 2 more 'tricks' to cleaning up. So I suggest step
1.2 If existing IIS virtual directory then
1.2.1 delete it
1.2.2 delete the hidden .suo file (this contains local project bindings).
1.2.3 Ensure your working folder for the VSS project is not set (Visual Studio will have set this when you originally bound the project).
If you don't do this, every time you reopen the sln you'll get the original error or some source code control mismatch error.

By Bruce Cartland on   Monday, February 27, 2006 12:06 PM

Re: “Project not found” problem loading a Solution with a web services project in Visual Studio.NET 2003

THANK YOU!!!

-- next time, I'll google first then try to fix it by my self.

all the best and greetings from frankfurt, germany
darko

By Darko on   Thursday, May 18, 2006 2:36 AM

Re: “Project not found” problem loading a Solution with a web services project in Visual Studio.NET 2003

Thanks so much for this helpful tip.

By Rajesh Hegde on   Wednesday, June 21, 2006 6:06 AM

Re: “Project not found” problem loading a Solution with a web services project in Visual Studio.NET 2003

Thank you, this helped me too :)

By Kareena on   Wednesday, November 29, 2006 7:21 PM

Your name:
Title:
Comment:
Add Comment    Cancel  

Search Blogs

 

Microsoft Certified Partner