Can't open SQL Server Management Studio 18 - "MRU Package did not load correctly" and "Cannot create the window" - sql

This issue is driving me crazy. I can't open SQL Server Management Studio (SSMS) 18. When I try to open it I get the follow things:
Starts fine with the small window that says "Microsoft SQL Server Management Studio v18.6"...
But then I get an error window saying:
"The 'MRU Package' package did not load correctly.
The problem may have been caused by a configuration change or by the installation of another extension"...
After that I get another error window saying:
"Cannot create the window".
Here's an Imgur link with pictures of the errors: Pictures
And that's it. I've been stucked there.
Things I've already did/tried:
Installed SSMS 18
Installed SQL Server 2019
Uninstalled Visual Studio 2017
Installed Visual Studio 2019
Re-installed SQL Server 2019
Repair installation of SSMS 18
Re-installed SSMS 18
Installed Visual Shell 2015
Rebooted PC several times
I don't know what else to do. I've been struggling with this since yesterday. I've searched for solutions but couldn't find anything that solved the problem.
Hope someone can help me. Thanks in advance.

Related

Microsoft SQL Server Management Studio 18 application error on startup

1
[]
I just install Microsoft SQL Server Management Studio 18 and the window pop up with
"Ssms.exe - Application Error"
"the application was unable to start correctly (0xc000007b). Click OK to close the application."
I tried most of the solution found on Google and YouTube.
(Window Update, reinstall .net framework, .net runtime, microsoft visual c++ redistributable package, use admin to run program, re-install and repair Microsoft SQL Server Management Studio 18)
I will be really appreciated it.
UPDATE: [Solved] I use dependency Walker to find out which dll is crushing the program (in my case mscvr120.dll) and re-download it to fix the crush.

Why I cannot run the SQL Server 2019 setup.exe file?

I have been encountering all sort of problems to istall the SQL Server 2019 Express as well as SSMS v. 18.9. I wanted to move from SSQLSERVER 2014 and SSMS 2014 to 2019 version in order to attend a course on T-SQL using the latest version of the software.
After unstalling 2014 Server and Management studio files, I have been unable to install the 2019 version, either the Basic installation (the error says that "there has been an error when checking the installation rules for SQL Server"), or by downloading the resources (in this case, when I click on the setup.exe file a error dialog window appears with a red X saying "SQL Server setup").
Any tips, please?
Thanks in advance.

Running "New Query" crashes SQL Server Management Studio 2012 on Windows 8.1

SQL Server Management Studio crashes when I try to start a New Query window in Windows 8.1. I had installed SQL Server Management Studio in windows 8 and today windows OS was updated to 8.1. After update I had opened SQL Server Management Studio 2012 and clicked on new query option then SQL Server Management Studio got crashed.
I referred this link and tried installing hot fix. Hot fix also throwing error saying 'The update is not applicable to your computer'
Kindly help me in this issue. Thanks in advance.
Sorry for my bad English.
A new version of windows operating system update solved my SQL Server Management Studio 2012 new query crash issue. Hope this may help for someone in future.

Visual Studio 2013: Database Project MSBuild error

I've got a database project as part of my solution in Visual Studio 2013. Been working perfectly for the last 3 weeks and now suddenly today it won't build and so I cannot publish any changes. I'm getting an MSBuild error:
"C:\Program Files
(x86)\MSBuild\Microsoft\VisualStudio\v12.0\SSDT\Microsoft.Data.Tools.Schema.SqlTasks.targets(513,5):
Error: MSB4018: The "SqlBuildTask" task failed unexpectedly.
System.MethodAccessException: Attempt by method 'Microsoft.Data.Tools.Schema.Sql.Build.SqlTaskHost.OnCreateCustomSchemaData(System.String,
System.Collections.Generic.Dictionary`2)'
to access method
'Microsoft.Data.Tools.Components.Diagnostics.SqlTracer.ShouldTrace(System.Diagnostics.TraceEventType)'
failed."
Anyone got any ideas? All I did this morning was pull down the latest changes from source control. I can't see how that would mess up the actual MSBuild process, and the guy who checked in last doesn't have any issues at all.
You need to install the last version of SQL Server Data Tools:
http://msdn.microsoft.com/en-US/data/hh297027
Make sure to restart VS and then build the solution again. This solves the problem!
In Visual Studio 2013 -> Tools -> Extensions and Updates... -> Updates -> Product Updates -> Microsoft SQL Server Update for database to 12.0.50318.0
I was upgrading from 12.0.41012.0 and this resolved my issue. This relates to the answer to install the latest SQL Server Data Tools.
I am using Visual Studio Community 2013.
I had same error:
You can fix it by updating the SQL Server Tools:
Tools --> Extensions and Updates
Then under Product Updates you will see an option to update SQL Server Update.
Click on Update, after it has installed restart Visual Studio.
Try:
Install the latest DacFx from http://www.microsoft.com/en-us/download/details.aspx?id=43370
Reinstall the latest SSDT from http://go.microsoft.com/fwlink/?LinkID=393521
Source: VS2013 SqlBuildTask 04018 Error
I searched "Visual Studio 2013 Update 2" in MSDN subscriber downloads and it was there
Also I filed a bug with MS
VS2013 SqlBuildTask 04018 Error Please up vote it if you are getting the same problem
I had the same issue. I tried to repair Visual Studio 2013, update 4, SSDT, the DAC tools, etc., but it didn't work any better.
However I noticed the Microsoft.Data.Tools.Schema.SqlTasks.targets file present in C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\SSDT was dated from 2013 (In fact it corresponded to the old SSDT). So what I did is just copy the new one (which I suprisingly found in C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\SSDT ...) over to this v12.0\SSDT folder, restarted Visual Studio 2013 and now it works. For information, that new SSDT targets file is dated from 2014/10/26 and its size is 75437 bytes.
It turns out the issue was with Visual Studio Update 3. I uninstalled and reinstalled VS 2013 to Update 2 only and reinstalled Data Tools and it works perfectly now.
I already had the newest Version of SQL Data Tools installed, but after installing VS2015 RC it stopped to work. After run a repair on SSDT it compiles again with success.
I had Visual Studio 2013 Update 5 installed and was having this issue. I followed these steps from above and that fixed the issue for me -->
In Visual Studio 2013 -> Tools -> Extensions and Updates... -> Updates -> Product Updates -> Microsoft SQL Server Update for database to 12.0.50730.0
I had the same issue and just restart the Visual Studio and it works for me.
I experienced the same issue with a slightly different stack trace:
Error MSB4018: The "SqlBuildTask" task failed unexpectedly.
System.IO.IOException: The file exists.
Turns out this is a issue with the Temp directory for the service account I was using, I think if you exceed X number of folders/files in that directory the publish will no longer work. Fixed this issue by following the instructions mentioned here (for my service account):
Go start-> run
Type %temp% and click ok
Make sure you are in the folder /Local/Temp
Delete everything in this folder
If it helps anybody, I installed VS2014 CTP 3, and I can build from it. Interestingly after a successfull build in vs2014, the next time you build in VS2013 it works. But subsequent builds in VS2013 dont work, until you rebuild in VS2014.
I was able to fix the issue by repairing Microsoft SQL Server Data Tools and re-starting Visual Studio 2013.
Control Panel > Right Click: "Microsoft SQL Server Data Tools" > Click: "Repair" > Re-Start Visual Studio
I had the same issue. Running disk check and then rebooting fixed it.
I got the same error and fix it by re-install Visual Studio 2015
I had this problem and fixed it like this:
install the latest DacFx from http://www.microsoft.com/en-us/download/details.aspx?id=43370
Delete the Microsoft.Data.Tools.Schema.SqlTasks.targets file from C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\SSDT
repair SQL Server Data Tools 2013 , reset visual studio()

Error in Visual Studio 11: "could not obtain license due to error 80090317"

I have been playing around with Windows 8 Developer Preview and Visual Studio 11 Express, but I am facing an issue that is a bit annoying. Every 1 or 2 days, I get the following error when I open Visual Studio: "could not obtain license due to error 80090317"
This issue is mentioned here and here, but in both cases it is said that the issue shows up when Windows 8 is installed as an upgrade to Windows 7, which is not my scenario. I did a clean install in an new partition and installed all the updates available. The workaround I have found so far is to put the date of my system a few months in the past, run Visual Studio and acquire a license, then put the current date back. This works for a while until the message shows up again.
Has someone faced this issue?
Has someone a more permanent workaround for this?
A bit more details on my current setup:
Do not use the Developer Preview.
Download the Windows 8 Consumer Preview and the Visual Studio 11 Beta
Update as for June 15, 2012:
Download Windows 8 Release Preview and Visual Studio 2012 Release Candidate