I have Visual Studio 2012 shell installed just for SQL Server Data tools so I can do SSIS and SSAS projects. I used it for several days and one afternoon, it just wouldn't work- got a popup saying "Microsoft Visual Studio 2012 has stopped working" and it had these long error messages in any windows relating to SSIS, like the SSIS toolbox and Variables window. I ran it in safe mode and no longer got the popup message, but still saw the SSIS errors and SSIS projects would not load (in Solution Explorer they were empty and say "incompatible"). I tried uninstalling and reinstalling VS and installed CU5 and CU15 (cumulative updates) for SQL Server and even started uninstalling SQL Server (that got complicated, it never seemed to really remove everything), but ran out of luck and reformatted my computer. After doing that, I installed SQL Server (Developer edition) and VS and things worked great for a couple days until I installed Windows Updates last night. This morning, Visual Studio was back showing the errors again. This is so frustrating!! I tried uninstalling all updates that I saw that ran the last couple days.
Errors that appear in SSIS Toolbox (or Variables window, etc):
An exception was encountered while constructing the content of this frame. This information is also logged in "C\Users\\AppData\Roaming\Microsoft\VisualStudio\11.0\ActivityLog.xml". Exception details: System.Windows.Markup.XamlParseException: Provide value on 'System.Windows.Markup.StaticExtension' threw an exception.--->
System.Reflection.TargetInvocationException:Exception has been thrown by the target of an invocation.--->
System.TypeLoadException: Could not load type 'Microsoft.SQLServer.Dts.Design, Version=11.0.0.0,Culture=neutral,PublicKeyToken=89845dcd8080cc91'. at Microsoft.SqlServer.IntegrationServices.Designer.Common.ImageSourceHelper.GetImageSourceFromResource(Assembly assembly, String resourceName, Size size) at
Microsoft.SqlServer.IntegrationServices.Designer.Common.ImageSourceHelper.GetImageSourceFromResource(Assembly assembly, String resourceName, Boolean isLarge)
etc
I am unable to see the rest of the error right now, but I also saw this error frequently before I reformatted my computer: "The type initializer for 'Microsoft.DataTransformationServices.Design.SharedIcons' threw an exception. I think I saw this after I ran VS in Safe Mode, and then started it again, although I haven't seen it this time around.
I ended up resolving this by opening up SQL Server Installation Center. I went to Maintenance and then Repair, and once that finished, VS started working again. I also want to point out that while Repair was running, I got a couple error popups and messages asking me to insert a CD or media file that I did not have. I just hit Cancel or whatever was needed to move on, so don't be deterred by that.
Related
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.
Situation.
I have Web developer Express Studio 2008 installed on my system.
Until recent windows update it worked fine, but about 2 weeks ago it start giving me an error every time I attempt to create any new project. Screen shot of an error below:
Express 2008 error
I did try to do windows restore to point before update and it did not worked.
As a next step I installed Visual Studio 2010(same result) and VS 2015 same result but a bit more descriptive error. Screen show below.
VS 2015 error
But there is no clear information on Microsoft MSDN forums about this error or how to fix it.
I did try to do reset(devenv.exe\resetsettings) but so far no luck.
Any idea what is going on and how to fix this?
Right now I can not create ANY new project and some of older projects are not opening as well. There is no system of or any kind of similarity between projects which opens or not.
This is a fairly vague error as the dll in question isn't listed here and 0x8007045a is just the error code for this dll initialization error. As a next step in troubleshooting to find the issue (outside of a windows repair) I'd go ahead and run Process Monitor and watch the file system activity for Visual Studio (once you see devenv.exe show up, right click on it and include just that process.
There's a blog post with some troubleshooting steps here but really though, you need to find which library is the culprit to track down what you'll need to reinstall (likely from a system or shared library side).
I recently installed Visual Studio 2013 on my dev machine and was missing Code Contracts support afterwards (had it installed previously), so I reinstalled Code Contracts. Immediately thereafter, Visual Studio refused to start up with the error message "A problem occurred when loading the Microsoft Visual Menu....", as described here.
I tried to do as advised in the message in every possible way I can think of, but none of them worked.
So I reinstalled Visual Studio 2013 and got the following behaviour:
VS does launch up correctly for exactly one single time, right after the reinstall. Any subsequent lauch fails with the error message described above. I verified this by reinstalling VS a second time and got the same result.
I then uninstalled Code Contracts, reinstalled VS again and still got the same. After completely wiping my system of .net framework 4.5.1 and reinstalling VS again, I was finally rid of this message.
So I braced myself, launched up the Code Contracts installer and guess it? Same procedure as every year: One single correct VS launch, all subsequents with error, again!
I did the same setup on two other machines, neither of which had any problems.
What can I try next (short of wiping my whole machine)?
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'm a web developer who's taken over an ADP project and needs help with the Windows and Access Environments.
I was coding in VBA in Access 2007, and would at times need to rebuild the project by importing forms, reports, and modules due to corruption issues. I believe these issues were caused by run-time errors during coding.
I've upgraded to Access 2010 (Office Suite 2010 32-bit) on a Windows 7 Machine (64-bit). The same (I believe) corruption issues in Access 2010 are invoking the following error:
After making changes in my project, I will save, exit, and attempt to open the project. Access 2010 displays a message box "Access has stopped working". I click "debug" and Windows attempts to open the Visual Studio Just-In-Time debugger, with the following:
An unhandled win32 exception occurred in MSACCCESS.EXE [6648]
I exit out of Access 2010 and attempt to reopen the file and it throws the same exception. I exit out again and attempt to open Access 2010 by itself, and Access attempts to create a Backup copy of the same file. The process fails and throws the same exception. I can open Access by holding the shift key while double-clicking, but when I attempt to rebuild the corrupted version I get the same error message as above. So my rebuild is failing, and I'm stuck in 2010. I can rebuild in 2007, but would like to fix this on this brand new machine which would be sweet to develop on.
I had the same problem. I had inherited an Access 2003 database with a report that I had no involvement in designing. I converted it to a *.accdb (MSAccess 2007) file and this error became a constant headache. Sometimes it would work right after backing up and using the backup, and sometimes it didn't.
All the other queries and tables worked fine, except for the report. The only thing special about that report was that it used a macro with a "SetValue" action of "[Page], 0".
After looking at http://msdn.microsoft.com/en-us/library/bb177384(v=office.12).aspx and seeing "Note This action will not be allowed if the database is not trusted." at the top of the page, I went back to my database, changed my macro settings in the trust center to "Enable all macros", choose File, then Exit to go out of the database and it re-opened.