Search

Error on adding Resources file to the SharePoint 2013 feature: the system cannot find the file specified 0x80070002 by AlexBBB

Closed
as Fixed Help for as Fixed

1
1
Sign in
to vote
Type: Bug
ID: 764660
Opened: 9/25/2012 10:15:23 PM
Access Restriction: Public
0
Workaround(s)
0
User(s) can reproduce this bug
There is an error in Visual Studio 2012 when add resources file to the SharePoint feature: "the system cannot find the file specified. (Exception from HRESULT:0x80070002)".
Details (expand)

Visual Studio/Team Foundation Server/.NET Framework Tooling Version

Visual Studio 2012

Steps to reproduce

0. Install "Microsoft Office Developer Tools for Visual Studio 2012"
1. New project form template "Templates -> Visual C# -> Office/SharePoint -> Apps -> App for SharePoint 2013"
2. In next window select "SharePoint-hosted" in "How do you want to host your app for SharePoint?" select box.
3. Rigth click on the feature name -> "Add Feature Resource...". After error window alert: "the system cannot find the file specified. (Exception from HRESULT:0x80070002)"

The same error on diferent computers: windows 7, windows 2008 R2, windows 2012

Product Language

English

Operating System

Windows 7

Operating System Language

English

Actual results

alert: "the system cannot find the file specified. (Exception from HRESULT:0x80070002)"

Expected results

Add feature resource file.
File Attachments
0 attachments
Sign in to post a comment.
Posted by AlexBBB on 9/27/2012 at 11:54 PM
Solution:

Remove the FrameworkVersion element in the vstemplate file from another folder: C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\ItemTemplates\CSharp\Office SharePoint\1033\SharePoint15GlobalResource.zip\SharePointGlobalResource.vstemplate

After that, close the VS, run devenv /setup, and re-open the VS.
Posted by Microsoft on 9/27/2012 at 11:01 AM
Hi Alex,

From bug perspective, we've fixed it in next release, so I resolved the bug as Fixed. I'll keep tracking this issue though until you find a workaround.

Thanks,
Xiaoying
Posted by AlexBBB on 9/27/2012 at 5:39 AM
No luck, the same error
Posted by Microsoft on 9/26/2012 at 3:59 PM
Hi Alex,

Thanks again for opening the bug to us. We've investigate this fixed the issue in next release of the tools. Meanwhile, please try the following workaround for your Beta2 bits: Remove the FrameworkVersion element in the following template file (also in bold below): C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\ItemTemplatesCache\CSharp\Office SharePoint\1033\SharePoint15GlobalResource.zip\SharePointGlobalResource.vstemplate

Thanks,
Xiaoying
Sign in to post a workaround.