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:
'' 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.
Related
This error started showing from yesterday, I remember installing Web development packages and updates windows. Before that if was working fine.
If I reload project same error shows up.
The application which this project type is based on was not found.
Please try this link for further information:
http://go.microsoft.com/fwlink/?LinkID=299083&projecttype=EFBA0AD7-5A72-4C68-AF49-83D382785DCF
This link redirects https://www.xamarin.com/visual-studio page , which is nothing but xamarin download page.
I tried uninstalling Xamarin packages and reinstalling.
It did not solve the issue.
Now I am doing complete uninstall of MS Visual Studio 2017
Please note that no changes have been made to csproj or solution file.
I get the "xamarin project type incompatible" frequently. (VS2015)
The solution for me:
Close down VS.
In the src project folder delete the .vs folder.
Restart VS.
Complete uninstall of Visual Studio along with C++ distributables from Control Panel > Programs and Features and then re-installing Visual Studio fixed the issue. Seems its caused by errors in installation
Microsoft should code properly and let programmers know if there were errors and 'repair' option is supposed to fix them. I don't know why these things are missed out in roll-outs.
Env: Visual Studio 2015 Community Edition on Windows 8
Trying to open Tools --> Extensions and Updates results in the following error in a message box:
Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
Tried running as Admin, same result.
I've tried looking at the log but nothing mentions that error.
In the log there are 3 error entries related to extensions which could be related, they say the following:
Error loading extension: Could not find a part of the path 'C:\path\to\APPDATA\LOCAL\MICROSOFT\VISUALSTUDIO\14.0\EXTENSIONS\ZW2UF5JV.JVN\extension.vsixmanifest'.
The other 2 are identical except the odd string at the end is HQ1Y5EQD.TMG and 3KWE1LJF.Z1W.
Interestingly, just before those errors in the log appear, there is a line for each saying the extension was loaded successfully but if I try to go to the path it's got listed, it doesn't exist.
I can't find any reference to those strings on my machine. I've also searched the registry but can't find any reference in there either.
I can get into the Extensions manager if I click on one of the update notifications but the original error message just displays in the main pane and I can't do anything else. I can get to the online window but as soon as I click an extension, I am prompted with the original message.
I haven't installed any extensions or VS updates for a while but my Web Compiler extension extension has stopped auto compiling JSX files which is why I started trying to look at the Extension manager. I'm guessing the issues are related.
I can still work, compiling can be done manually which is inconvenient but not the end of the world. My worry is some other extensions are also misbehaving and I just haven't noticed yet.
Don't really want to re-install VS as a) it took ages last time and b) it might not fix the issue. Is there any good advice on troubleshooting the error or anything else I can try before I re-install?
I refreshed the GitHub extension on VS 2015 and got this error. Deleting the two cache files:
extensions.en-US.cache
extensionSdks.en-US.cache
from the AppData\Local\Microsoft\VisualStudio\14.0\Extensions causes them to be rebuilt and eliminates the error.
No reinstall needed.
Problem got worse, I started getting the error message when starting Visual Studio and things like the package manager wouldn't load. Each restart seemed to yield a different combination of windows not loading, sometimes Solution Explorer, sometimes Team Explorer etc. Not good.
A repair to VS 2015 via the Control Panel took a while but didn't help, same problems.
I ended up completely uninstalling and trying to re-install. However the installer threw an index was out of range error but weirdly VS 2015 was now listed as an installed application again.
So I'm guessing the original uninstall left some problematic files lying around which messed up the next install. So I uninstalled again, renamed Microsoft Visual Studio 14.0 folder, cleared all files from AppData\Local\Microsoft\VisualStudio\14.0\Extensions and re-installed.
It installed and ran fine.
The problem I now had was that I couldn't find the SQL Server Object Explorer window anywhere. I tried repairing SQL Server Data Tools but still no luck. So I uninstalled SSDT and then re-installed. This seemed to fix it.
Now I realised I also couldn't connect to Azure through the Server Explorer window, the option was simply not appearing in the list like it used to. This time a repair to Azure Tools for Microsoft Visual Studio 2015 - v2.9 and a repair to Azure App Service Tools v2.9 - Visual Studio 2015 fixed that problem.
I confronted same issue and found this thread. I tried the above suggestions, but unfortunately, it went all unsuccessful. I even tried to uninstall/install with even worse result as Visual Studio became unable to start due to new "missing components" issue. Reinstallation was nothing better.
I finally came by a piece of magic. It was Visual Studio Uninstaller which although would remove all your installed extensions, it would perform a complete cleanup. It would save you from installing new Windows (at least it was my case.
Just go to releases and download the first zip file
This way you will be able to perform clean install of Visual Studio.
I used to use vs 2012 for some month without any problem, today when I want to open my c# project , I got this error message:
This program has known compatibility issues
Visual Studio 2012 Express for Windows Desktop is incompatible with this version of Windows.
when I click Run program I got this error:
'Microsoft.VisualStudio.Editor.Implementation.EditorPackage' package did not load correctly
When I continue with this error message, another error message shows: Visual Studio has stopped working. I need to get it work as soon as posible, any idea?
I had a similar problem, installing this patch solved it: KB2781514
I just got this error in VS2013 after installing a VS extension. I fixed it by closing all instances of Visual Studio, then removing %LOCALAPPDATA%\Microsoft\VisualStudio\12.0\ComponentModelCache
Happened to me today on VS 2012. The Update mentioned by Jarek didn't install (it complained I already have more stuff installed). Deleting the folder mentioned by squeaky didn't work.
Finally fixed after I installed VS 2012 Update 4 : http://www.microsoft.com/en-us/download/details.aspx?id=39305
When I start visual studio express 2012 for web I get this error in the package manager console.
Cannot load Windows PowerShell snap-in Microsoft.PowerShell.Core because of the following
error: Unable to load one or more of the requested types. Retrieve the LoaderExceptions
property for more information.
Loader Exceptions:
Exception of type 'System.OutOfMemoryException' was thrown.
I don't remember adding anything new to visual studio. I searched other related problems but they don't work for me.
I tried repairing visual studio. I also tried re-installing visual studio which temporarily removed the problem but it is back again.
Anyone has a solution?
I finally made it work. I suspected it is something from windows update that messed up with my VS since I didn't really add anything to VS. I am not sure which updates to remove so I just uninstalled all the windows update that starts in a certain date. Here are the actual steps that I did:
What I did is uninstalled visual studio 2012 express for web following this tutorial.
And then uninstalled windows updates starting from the date I believe the error started appearing.
After I used CCleaner to clean my registry. Had to run it 2 times to just to make sure it is clean. I'm not sure if this actually helps. I just heard from my friend that uninstalling applications sometime leaves registry keys behind.
Finally, I installed visual studio again. Package manager is back to normal.
Restarted my laptop and it is still working. So I guess it is solved.
I think System Restore would do solve this instead of doing all this steps. But system restore was not an option for .
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.