Unexpected error encountered opening Visual Studio project

I recently tried to open a Visual Studio project that I had downloaded from Codeplex and received an error message:

image

Followed by this error message:

image

And then the Visual Studio project was not available in the solution.  All the project said was “The project file cannot be loaded.”  Not a very helpful error message.

This is because the project was under Team Foundation Server (TFS) source control and I do not have the TFS edition of Visual Studio.  To resolve this issue open the project files in notepad and remove the source control provider lines.  Usually they look like this:

<SccProjectName>XXXX</SccProjectName>
<SccLocalPath>.</SccLocalPath>
<SccAuxPath>XXXXXX</SccAuxPath>
<SccProvider>{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}</SccProvider>

Remove all 4 of these lines from the project file and then save it and reopen.  Now Visual Studio will not try to load TFS and you will not get the error message and the project will open correctly.

-Jeff

 

FULL ERROR MESSAGE TEXT:

---------------------------

Microsoft Visual Studio

---------------------------

Unexpected error encountered. It is recommended that you restart the application as soon as possible.

Error: Unspecified error

File: vsee\lib\vapifunctionwrapper\vapifunctionwrapper.cpp

Line number: 169

---------------------------

OK Cancel

---------------------------

 

 

---------------------------

Microsoft Visual Studio

---------------------------

One or more projects in the solution could not be loaded for the following reason(s):

The application for the project is not installed.

These projects will be labeled as unavailable in Solution Explorer. Expand the project node to show the reason the project could not be loaded.

---------------------------

OK Help

---------------------------

 

 

Published 25 August 2009 09:47 PM by Jeff Widmer
Filed under:

Comments

# Twitter Trackbacks for Unexpected error encountered opening Visual Studio project - Jeff Widmer's Blog [asp.net] on Topsy.com said on 26 August, 2009 01:13 PM

Pingback from  Twitter Trackbacks for                 Unexpected error encountered opening Visual Studio project - Jeff Widmer's Blog         [asp.net]        on Topsy.com

# Titus said on 03 September, 2010 03:43 AM

That came in handy, thanx!

# Anina said on 26 October, 2010 04:14 AM

Thanks a lot. That worked.

# Brian said on 10 January, 2011 12:49 AM

Thanks, worked for me!

# chandra sekhar said on 20 January, 2012 07:15 AM

I have same error like,The project file cannot be loaded.

I am using SVN.And more over I am working on two solution projects individually 1 for service and 2nd for IIS(web).In the web project i got this error.Help me what I need to do...Thank you

# david reyes said on 24 April, 2012 09:13 PM

I have the same error.

I just right click VS 2010 and select "Run as Administrator" and that worked for me :)

Leave a Comment

(required) 
(required) 
(optional)
(required) 

Search

Go

This Blog

News

Syndication