Solved: Error trying to read the VSIX manifest file "obj\Release\extension.vsixmanifest" when building VSIX project.

Problem: 

When building a VSIX project on Windows 8 through Visual studio, the following errors occurs:

Error trying to read the VSIX manifest file "obj\Release\extension.vsixmanifest". The network path was not found. (Exception from HRESULT: 0x80070035).

Error trying to read the VSIX manifest file "obj\Release\extension.vsixmanifest".

When you look into the "obj\Release\" folder, you found the file "extension.vsixmanfiest" is there. When you explore to "bin\Release\" folder, you found the vsix file is already generated. If you double click it to install the vsix package, you will get the same error claiming:

Error trying to read the VSIX manifest file "obj\Release\extension.vsixmanifest". The network path was not found. (Exception from HRESULT: 0x80070035).

Cause:

Even if the file "extension.vsixmanifest" file exists in the "obj\Release\" folder, the vsix installer would still read from "My documents\" folder for the fuck reason. In most cases, it works fine because the "My documents\" folder is readable. But if it is not, the building and the installing vsix package would fail with the above error messages.

In my case this time, the problem is caused by "My documents\" folder is hidden, and when I trying to explore to it, the error "The system cannot find the file specified." shows up.

So I recalled I turned on "offline files feature" almost more than one year ago, which automatically mapped "my documents\" folder to a network drive so that I can visit the same "My documents\" files from any where by any computer. And a month ago I turned it off, but it didn't bring "my documents\" back.

Solution:

Turn on "offline files" again. (It will work even you can't connect to the real share folder any more)

1. Go to "Control Panel" --> "Sync Center", click "Manage offline files":

2. Click "Enable offline files" button, click "OK" and then restart your computer:

3. Rebuild your solution, it should success now.

Add comment

Loading