How to enable Just In Time Debugger in Visual Studio 2017? - visual-studio-debugging

I haven't Just-In-Time in Options:
I found to solve this with options of Internet :
But when I'm rebuilding solution I get this exception:
How to solve this issue?

How to enable Just In Time Debugger in Visual Studio 2017?
First, please make sure you have installed the component Just-In-Time debugger in the installer:
Then restart your Visual Studio, you will get that Just-In-Time in Options.
If you still have issue after install the component Just-In-Time debugger, you can try to update your Visual Studio to latest version.
Besides,
This also could have happened when installing VS2017 on a machine that
once had a previous version of VS installed (the JIT debugger does not
uninstall with VS for backward compatibility reasons).
To work around these issues until the fixes are released, run repair
to register the JIT debugger (assuming it was selected to be
installed) or uninstall and reinstall making sure to select the JIT
debugger.
Once VS2017 is repaired/installed, start VS as administrator and go to
the JIT options page. Check all checkboxes and click OK.
Check the detail info from Just-in-time debugging disabled and options missing.
Hope this helps.

Related

.vdproj is incomatible in VS 2019 - Community Edition - and reload project give load error

I'm unable to run a .vdproj in Visual Studio 2019 Community Edition. I tried the below link which hasn't worked either
Visual Studio - vdproj is incompatible
The project shows incompatible and after installing the Installer Project as Extension given in the above link , the project load is failing. Unable to proceed. Please help
This is redundant question.
Please follow this link for the answer:
Visual Studio - vdproj is incompatible
Or follow these Steps which is also taken from that link:
Go to Extensions > Manage Extension
Select Online > Visual Studio Marketplace
Search for Microsoft Visual Studio Installer Projects
Download the package
Close the Visual Studio to start the installation.
Follow the instructions to install the extension.
Once installation is completed. Launch again the Visual Studio.
In the Solution Explorer, look for the .vdproj project
Right click .vdproj project, click Reload
If all of the mentioned remedies not help, there is another possibility, which was the case here in VS2019 Community.
Installed extensions can not only be uninstalled, but also be disabled. In that case it looks like so:
The "Disable" and "Uninstall" buttons show up after a right-click on the corresponding object.
In my case and to my big astonishment, the Installer Project was disabled (showing "Enable" in the button), whoever did it.
It cost me about 2 hours to find out, some restarts of VS2019 and wondering about useless instructions about having to install the extension. After enabling, everything worked like before. Sigh of relief.
After doing lot of research on this topic, Visual Studio 2019 Community edition , is not supporting these kind of projects. Older versions like 2015 , 2010 supports.
Or convert these projects into a console application and run it for local setup and debugging.

SQL Server Data Tools 2017 for Visual Studio 2017 - Unable to start debugger error

I'm having trouble with the debugger when trying to run a simple SSIS project involving importing a small sample CSV file into SQL Server.
I have searched StackOverflow with "debugger error Microsoft.DataTransformationServices.VsIntegration" and looked at all the search results.
It looks like someone else had the same issue with VS2015 about a year ago, but it never got resolved.
Microsft SQL Server Data Tools for Visual Studio 2015 giving debugging error
I've tried looking at the Event Viewer and generated Visual Studio Logs but there's nothing there.
I get 2 error messages when I try to execute the SSIS job.
Error 1:
Unable to start debugging.
The debugger is not properly installed.
Run setup to install or repair the debugger. (Microsoft.DataTransformationServices.VsIntegration)
Program Location:
at Microsoft.DataTransformationServices.Project.DataTransformationsPackageDebugger.LaunchVsDebugger(IVsDebugger iVsDebugger, DataTransformationsProjectConfigurationOptions options)
at Microsoft.DataTransformationServices.Project.DataTransformationsPackageDebugger.ValidateAndRunDebugger(Int32 flags, IOutputWindow outputWindow, DataTransformationsProjectConfigurationOptions options)
at Microsoft.DataTransformationServices.Project.DataTransformationsProjectDebugger.LaunchDtsPackage(Int32 launchOptions, ProjectItem startupProjItem, DataTransformationsProjectConfigurationOptions options)
at Microsoft.DataTransformationServices.Project.DataTransformationsProjectDebugger.LaunchActivePackage(Int32 launchOptions)
at Microsoft.DataTransformationServices.Project.DataTransformationsProjectDebugger.LaunchDtsPackage(Int32 launchOptions, DataTransformationsProjectConfigurationOptions options)
at Microsoft.DataTransformationServices.Project.DataTransformationsProjectDebugger.Launch(Int32 launchOptions, DataTransformationsProjectConfigurationOptions options)
Error 2:
Unable to start program 'DTS'.
The debugger is not properly installed. Cannot debug the requested type of code. Run setup to install or repair the debugger. (Microsoft Visual Studio Debugger)
Program Location:
at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
at Microsoft.DataTransformationServices.Project.DataTransformationsPackageDebugger.LaunchVsDebugger(IVsDebugger iVsDebugger, DataTransformationsProjectConfigurationOptions options)
I had a lot of trouble getting SSDT installed and working with Visual Studio 2017 and had to resort to the solution here to get it working.
SSDT installation issue (Failed to execute EXE package.)
Has anyone come across this issue and manage to overcome it?
In the meantime, I will try reinstalling the packages in the payload folder and see if that will fix this issue.
Excuse my necromancy
I know this is an old-ish question, but there are still enough people out there that haven't transitioned to VS 2019 yet for it to be relevant. I ran into this problem again for the second time, but it was a very long time in between occurrences. I completely forgot what the issue and solutions were.
Long answer
I have documented it all here.
Short answer
Here is the short version of what I documented:
Don't rush to uninstall/reinstall Visual Studio 2017
Very carefully read the blue box on the VS 2017 SSDT download page. This is critical.
Download SSDT for Visual Studio 2017
Run the installer and pay attention to the installer to see if it warns you about older extensions or installers that may exist already. Follow the instructions provided.
Assuming you have this problem, close the installer.
Uninstall the Visual Studio SSIS, SSRS and SSAS extensions (VSIX)
Run the SSDT installer - make sure it is warning free
Proceed with the installation
This should work and solve the problem, but this is a complex issue so I cannot make a guarantee. This has worked for me twice now on two entirely separate machines (work and home).
I did able to solve the issue with SQL server 2016 and Visual studio 2015 and respective SSDT 2015. I made sure I install every time as administrator (Right click on EXE and Run as Administrator).
I followed these steps:
I uninstalled all SQL Server Management Studio, SQL Server 2017, Visual Studio 2017 with SSDT.
Deleted the folders
C:\Users\me\AppData\Local\Microsoft\VisualStudio\14.0
C:\Users\me\AppData\Roaming\Microsoft\VisualStudio\14.0
Installed SQL Server 2016 (as administrator)
Installed SQL Server Management Studio latest version (as administrator)
Installed Visual Studio 2015 (for me VS 2015 gave some missing DLL and I did repair - it started working fine)
Finally I installed Visual Studio Data Tools for 2015.
Please find the exes for installing VS2015, SSDT-2015 and SQL Server 2016 from here and you can also download them from official sites through search.
and SSMS from here
I hope this will be useful to someone.
I solved this issue by filling in the required fields in the Execute SQL Task. I was missing the value in the SQL Statement field.
The other way I got rid of this error is to set the "DelayValidation" property from False to True. But that is only a workaround until you fix the real issue.
This page was also helpful.
http://www.jamesserra.com/archive/2011/07/ssis-package-taking-forever-to-load-when-you-open-it/
DelayValidation <-- find this property in Control Flow tasks
ValidateExternalMetadata <-- find this property in Data Flow tasks
I was using VS2019 for SSIS. Just go to Debug and use option: start without debugging.
If you have to see the error where it gets failed then read logs coming in command prompt.

SQL Server Management Studio 2016: The application cannot start

I installed SQL Server Management Studio 2016. When I tried to open it gives this error. I tried uninstall and again install. Also I uninstall all Visual Studio and SQL Server and reinstall all of them but problem still continue.
How can I solve this issue?
In my case, the issue was with broken VS2015 isolated shell installation.
I resolved it by downloading and re-installing this shell from Visual Studio Isolated Shell page https://learn.microsoft.com/en-ca/visualstudio/extensibility/visual-studio-isolated-shell (which should eventually lead you to http://go.microsoft.com/fwlink/?LinkId=615451 - after filling out the survey).
Note:
I had following warnings after the VS1205 shell install. But that
did not matter, since the existing version of these components was
higher.
I had no VS IDEs installed on my computer prior to
installing SSMS 16.5.3 (or 17.1). Both had the same issue. For now I
am using only SSMS 16.5.3, since I do not have a need for 17.1
I completely remove all microsoft application and re install sql server 2016 and the reinstall ssms and ssms worked and finally I install vs17 now its working.
Problem is about to "Microsoft Visual Studio 2015 Shell(Isolated)"
We need to install vs after ssms.
Happened to me on SSMS v17.9.1.
I've repaired Microsoft Visual Studio 2015 Shell (Isolated) and the problem went away.
According to MSDN documentaion:-
An unexpected error has prevented Visual Studio from starting. This error appears when one of the following items occurs:
The integrated development environment (IDE) was not able to load Msxml3.dll.
The IDE was not able to load Mso.dll.
The IDE was not able to load DTE.olb.
The license key for Visual Studio was not created during setup.
Script blocking is turned on and not allowing scripting code to execute.
Setup for the .NET Framework, a component required by Visual Studio, failed to generate a valid native image for mscorlib.dll.
The Klez virus is present on your computer
And the article is introduced specific procedures to correct this error.
Hope helps.

Visual Studio 2008 IDE crash

I have the following configuration:
Visual Studio Team System 2008
SQL Server Developer Edition 2008
GDR2
on a Win XP SP3 workstation.
I have no add-ins.
All patches have already been applied for Visual Studio, Sql Server and Windows.
The event log does not show anything either.
My IDEs for Management Studio (ssms.exe) and VS (devenve.exe) keep crashing on me a few times a day. I have tried uninstallilng and reinstalling both VS2008 and SQL, but no luck.
How can I start figuring out what else is wrong and fix it?
Does it crash when you do a specific thing? Can you find any log which contains any helpful info?
The information you provided is insufficient to know what the problem is, but as a guideline you should do the following :
Have Visual Studio log its activity for troubleshooting.
Try to uninstall or turn off all addons of the IDE, some plugins can crash the whole IDE, and this is a very common cause of VS crash. or :
Use the /SafeMode option which prevent all addons from being loaded.
Download and install all the available Windows updates.
Download and install all the available updates and hotfixes for Visual Studio.
If nothing worked, you can report this to Microsoft, and wait for their feedback.
I wrote an article a while back called How to debug crashes and hangs. In it I illustrate how to determine what is Visual Studio doing during a crash, shows how to get a call stack, save a minidump and report a problem to Microsoft. If you file a bug on http://connect.microsoft.com/visualstudio/feedback and attach a call stack and minidump, chances are high that we will be able to help you.
If you'd like to investigate your problem, I suggest you read the article I linked above, get a call stack (with symbols loaded), log a connect bug and attach the call stack and minidump with heap (they will help you to attach a heap since it's a very big file).
Hope this helps,
Kirill Osenkov
Visual C# IDE QA, Microsoft
http://blogs.msdn.com/kirillosenkov

WPF Package Load Failure?

Package Load Failure
Package 'Microsoft.VisualStudio.Xaml' has failed tot load properly. . . yadda, yadda, yadda.
So now what? This package is somewhat important since I was hoping to do some WPF stuff this afternoon. Tried running without it and my XAML design view is gone.
I already tried "devenv /resetsettings" from the command prompt.
Thanks,
Scott
Try repairing the install.
Control Panel
Add Remove Programs
Select Visual Studio 2008 and choose "repair"
Did you recently install any updates to Visual Studio or any Add-Ins? If so can you please list them?
Install SP1: http://www.microsoft.com/downloads/details.aspx?FamilyId=FBEE1648-7106-44A7-9649-6D9F6D58056E&displaylang=en
I had this problem after a fresh install of VS2008 Team System. Tried loading the updates, running setup, re-installing. No luck.
Installed SP1 and bingo! No more package load failures.
I -FINALLY- saw this error going into Tools|Options|Environment Fonts and Colors after trying everything I could think of to get it not to crash when I chose Tools|Import and Export Settings.
I had this problem when I installed Visual Studio Professional.
My theory was that it was because I already had Visual C# 2008 Express Edition installed.
Once I uninstalled both then reinstalled Visual Studio Professional it worked.
This is consistent with the OP's solution, which was to uninstall anything else which implemented XAML functionality.
In my case, just reinstalling SP1 didnt worked
Then i saw ive had two languages mixed in the IDE. So ive checked the installed programs and found:
Microsoft Visual Studio Tools For Applications 2.0 ENU
Microsoft Visual Studio Tools For Applications 2.0 Language Pack - ESN
When ive uninstalled the additional pack, the design views started to work again
In my case the machine.config file had gotten some bad XML due to a recent installation. There were two closing tags. After we corrected the bad XML, .NET works just fine.
Thank you Abraham for the hint. I was missing an end tag in my .NET 2.0 x86 machine.config.
However I had already spent hours repairing, uninstalling, installing and installing service packs.
WOULDN'T IT BE NICE IF VISUAL STUDIO 2008 GAVE A "MACHINE.CONFIG" CORRUPT ERROR!

Resources