The system cannot find the file specified.(exception from HRESULT: 0x80070002) - visual-studio-2013

I have the option to add the crystal report viewer to a form, but when I try to make a report, it gives me the error:
The system cannot find the file specified.(exception from HRESULT:
0x80070002)
I've installed it on Win 7 64 bit Visual Studio 2013 Ultimate. I tried changing the target framework to 4.0 and then back to 4.5 it didn't work. Ive even uninstalled and reinstalled a couple of times still ain't working.
How do I resolve this?

Related

InspectorPackage did not load correctly

I recently installed Xamarin. I experienced no issues with it for about a week. Now, when i load visual studio I get an alert that says:
The 'InspectorPackage' package did not load correctly.
The problem may have been caused by a configuration change or by the installation of another extension. You can get more information by examining the file
'C:\Users{redacted}\AppData\Roaming\Microsoft\VisualStudio\14.0\ActivityLog.xml'.
Restarting Visual Studio could help resolve this issue.
Continue to show this error message?
Restarting Visual Studio does not resolve this issue.
Upon inspecting the xml file, I find:
<entry>
<record>503</record>
<time>2017/02/15 15:33:56.686</time>
<type>Error</type>
<source>VisualStudio</source>
<description>LegacySitePackage failed for package [InspectorPackage]Source:
&apos;&apos; Description: Not implemented
(Exception from HRESULT: 0x80004001 (E_NOTIMPL))
System.NotImplementedException: Not implemented
(Exception from HRESULT: 0x80004001 (E_NOTIMPL))
at EnvDTE.Project.get_FullName()
at Xamarin.Inspector.VS.VSAgentExecutionTarget..ctor(Project proj)
at Xamarin.Inspector.VS.VSInspectorSession.CreateAgentExecutionTarget()
at Xamarin.Interactive.IdeSupport.InspectorSession.Prepare()
at Xamarin.Inspector.VS.InspectorPackage.RefreshInspectorSession()
at Xamarin.Inspector.VS.InspectorPackage.Initialize()
at Microsoft.VisualStudio.Shell.Package.Microsoft.VisualStudio.Shell.Interop.IVsPackage.SetSite(IServiceProvider sp)
</description>
<guid>{0FCBA9C6-0554-418C-8B79-FF2ED7DC658D}</guid>
<hr>80004001 - E_NOTIMPL</hr>
<errorinfo></errorinfo>
</entry>
What can I do to fix this?
This error seems to only appear when you have multiple startup projects in a solution.
I reproduced it by creating an empty solution with two empty console projects. When only one is set as startup everything works fine. However, when setting both as startup this error pops up.
I also came across this bug where the last post on 14 Jan 2017 states that the upcoming version 1.1 release will fix this issue: https://bugzilla.xamarin.com/show_bug.cgi?id=49417
You can check your version in the about box in VS. On VS2015 it is Help | About Microsoft Visual Studio and I reckon it is the Xamarin Inspector Support entry. Mine is at 1.0.0.0 so I assume I'll have to wait for the upcoming release :)
update:
Oddly enough, an update just arrived for the Xamarin Inspector (less than 30 min after answering). The first load of my test solution still popped up with the error but after that it seems fine.
update (28 Feb 2017):
I am still experiencing the issue with the following version:
Xamarin Inspector Support 1.1.2.0 (cdc01b9f4466b6dcc3095828824a12d041c9f55e)
Adds support for inspecting Xamarin and WPF apps.
This is what i did and it worked for me:
1) go to the path of Visual Studio and delete everything in that folder
(this will delete you visual studio set up ) Visual Studio wont work after this
C:\Users\<username>\AppData\Local\Microsoft\VisualStudio
2) uninstall Visual Studio. And install it again.
If this didn't work look around for xamarin files in that folder and delete everything inside.

Error occurs while installing the NUGET package in Visual Studio

I'm trying to install Nokia Imaging SDK via NUGET under Visual Studio 2013 at my Windows Phone 8 project but every time I'm getting the following error:
A numeric comparison was attempted on "$(TargetPlatformVersion)" that
evaluates to "" instead of a number, in condition
"'$(TargetPlatformVersion)' > '8.0'". C:\Program Files
(x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets
When I got this error I just restarted Visual Studio and the error went away.
Please note, when I did restart the project did initially load, but I just right clicked and hit reload target and it did.
If you have ReSharper installed it sounds like it could be this bug. This effected version 8.2 and has been fixed in build version 8.2.0.3169 and onwards.

Visual Studio.NET 2010 Error: Invalid index. (Exception from HRESULT: 0x8002000B (DISP_E_BADINDEX))

I was wondering if you have experienced this vague issue when trying to copy a text in visual studio.net 2010 SP1:
Invalid index. (Exception from HRESULT: 0x8002000B (DISP_E_BADINDEX))
I've got Git Extensions and NuGet add-ons installed. I've also tried opening vs.net running in administrator mode.
Was wondering if anybody has encountered this issue and what steps have been done to amend it?
Cheers,
A
I did have this happen right after installing the MVC4 beta, I was literally using copy/paste is that what you mean? In this case I had to reinstall.

VS 2010 Error when creating or opening projects

I just installed new copy of visual studio 2010 and when i tried to open old project i got error message.
So i just tried to create new project, and received the same message.
No valid exports were found that match the contraint '((exportDefinition.ContractName == "Microsoft.VisualStudio.Text.ITextBufferFactoryService") AndAlso (exportDefinition.Metadata.ContainsKey("ExportTypeIdentiy") AndAlso "Microsoft.VisualStudio.Text.ITextBufferFactoryService".Equals(exportDefinition.Metadata.get_Item("ExportTypeIdentity"))))', invalid exports may have been rejected.
I already tried to remove and re-install it. After that did not work i tried to use repair option.
I'm running Windows 7 64bit OS.
I had a similar error with Visual Studio 2012 that seemed to have been caused when I enabled ClearType text on a different monitor. I found a solution in another MSDN thread:
Remove the file: Microsoft.VisualStudio.Default.cache
in the folder: in C:\Users...\AppData\Local\Microsoft\VisualStudio\11.0\ComponentModelCache
After starting VS2012 re-generates the file and everything works.
I was able to resolve the issue. After a suggestion from a coworker I installed VS2010 SP1. After SP1 was installed issue has not come back.

BootstrapPackage did not load correctly VS 2010

I just installed VS 2010 v 10.0.30319.1 RTMRel on 64bit Win7 Ultimate and keep receiving the following error when I try to open a web project. I have repaired and reinstall but the issue persists. I am looking for resolution suggestions. Thanks
The 'Microsoft.Data.Entity.Design.BootstrapPackage.BootstrapPackage, Microsoft.Data.Design.BootstrapPackager, Version 10.0.0.0.... did not load correctly.
This was happening to me as well. In my case I installed Visual Studio on my D drive which is not my system drive. After reading a link found in ChiliYago's blog post I found that the root cause was that files were missing from %ProgramFiles%\Microsoft Visual Studio 10.0\Common7\IDE (Which is what the error message says).
In my case, the missing files were installed in C:\ProgramFiles (x86)\Microsoft Visual Studio 10.0\Common7\IDE and not D:\ProgramFiles (x86)\Microsoft Visual Studio 10.0\Common7\IDE. My solution was to copy the missing .dlls from the install directory on the C drive to the install directory on the D drive, and the error stopped happening.
I had previously installed an Express edition of C# and un-installed it before adding Visual Studio 2010, this may have contributed to the problem for me.
In my case, I Installed Entity Framework June 2011 and then uninstalled it. After this I had this problem.
Nothing found in internet worked and when I was going to format I found in the directory: C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\CommonExtensions\ these 2 files:
Microsoft.Data.Entity.Design.BootstrapPackage.pkgdef
Microsoft.Data.Entity.Design.Package.pkgdef
Here is when VS 2010 is trying to load the library that cannot load.
I have another PC with Entity Framework 4.0, and it doesnt have these files, so I have moved them out to the desktop. Now Visual Studio is loading the project succesfully.
On the other hand, my problem also was that If I choose to hide the error message then Entity Framework 4.0 didn't create the .Designer.cs of the Model. then when I tried to add the Domain Service Class to the project, the context class didnt appear (but yes in another machine with the same project and same database).
Now that I have not the error message everything looks working good.
I hope it helps others because I have had this problem during weeks.
Best Regards,
Tried the uninstall and reinstall of Visual Studio 2010… Still that had the damn annoying message about the Missing Assembly.
Looked on the C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\ Directory which only showed:
Microsoft.Data.Entity.Design.DLL
Installed a LOT of Windows Server 2008 files (32 Bit OS) in regards to SQL Server 2008… ADO.Net, etc… STILL didn’t solve the issue! GRRRRRRR!
So I finally fixed the issue by reading between the lines. See the details below on how I resolved this issue…
This points to the MISSING Assembly:
Microsoft.Data.Entity.Design.BootstrapPackage, Version=10.0.0.0, Culture=neutral,
PublicKeyToken=b03f5f7f11d50a3a
HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/VisualStudio/10.0/Packages/{7A4E8D96-5D5B-4415-9FAB-D6DCC56F47FB}
Renamed Key to:
HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/VisualStudio/10.0/Packages/{7A4E8D96-5D5B-4415-9FAB-D6DCC56F47FB}-123
Problem Solved for now in Visual Studio 2010!
Hope this helps someone else resolve this issue!
I've managed to completely remove VS 2010 from my computer using official utility and then reinstall it. Problem disapeared.
From tools menu in VS2010 select Import and Export Settings...
Select the last option, reset settings.
Save them, why not :)
Select a canned default, such as Visual C#.
Post your differences here, so that you know what to re-enable, and Microsoft people know what needs to be fixed.
I've had same problem, i solved it by rapairing it from "Control Panlel" clicking "Change/Remove" and tan choosing "Repair". BTW i'm using Win XP but i think that uninstallers in Visual Studio are the same. So.. Good luck!

Resources