Attention: We are retiring the ASP.NET Community Blogs. Learn more >

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

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

 

 

7 Comments

  • That came in handy, thanx!

  • Thanks a lot. That worked.

  • Thanks, worked for me!

  • 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

  • I have the same error.

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

  • Thanks, I went through and removed those lines form all the files and it worked :D

  • Thank you so much!!! Solution is working fine. &nbsp;

    Solution is:

    1.Project File-&gt;right click-&gt;

    2. Edit Project.csproj and

    &nbsp;then Remove or Comment the below Tag

    &lt;SccProjectName&gt;*******&lt;/SccProjectName&gt;

    &nbsp; &nbsp;&lt;SccLocalPath&gt;*******&lt;/SccLocalPath&gt;

    &nbsp; &nbsp;&lt;SccAuxPath&gt;*******&lt;/SccAuxPath&gt;

    &nbsp; &nbsp;&lt;SccProvider&gt;*******&lt;/SccProvider&gt;

    3.Save the file.

    4.Close the solution.

    5. open the project. It will be working fine.

Comments have been disabled for this content.