Visual Studio Community Edition 2017 – Stop debugger when browser windows is closed, close browser when debugging stops

If you want to test threading that will still perform after closing down your browser, you need to still have the debugger running. In order to do that, you need to uncheck the box in the Tools/Options/Web Projects section that states:Stop debugger when browser windows is closed, close browser when debugging stops.

Please follow and like us:

Visual Studio Community Edition 2017 – VS Freezes when Accessing Context-Menu on SSRS .rdl Reports

Sometimes when I attempt to deploy a report to my Reporting Services Server, Visual Studio freezes for a minute or more before bringing up the context menu. After some research, my problem was resolved by disabling the Image Optimizer extension. To disable:

  1. Click the Tools Menu.
  2. Click Extensions and Updates.
  3. Look or Search for Image Optimizer.
  4. Click the extension.
  5. Click the disable button.

Hopefully, Microsoft will fix this issue soon.

Please follow and like us:

Visual Studio Community Edition 2017 – Locked File or Folder with Visual Studio Installer

https://stackoverflow.com/questions/45839250/unable-to-update-visual-studio-installer

Quote: “The solution I found was to close down visual studio, go to “c:\Program Files (x86)\Microsoft Visual Studio\Installer”, rename the folder “Installer” to something else then run vs_installer.exe from the renamed folder.

Please follow and like us:

Microsoft Visual Studio – How to Delete rdl.data Files in BIDS

An rdl.data file will be created each time when the report is viewed with different input parameters. The data file caches the data so running the report again in the IDE with no changes to the parameter data will render quickly.

To delete the files, add an external tool to Visual Studio that you can execute to delete all rdl.data files.

#1 Click Tools and then External Tools…
#2 If tools already exist, click the Add button, else go to step 3.
#3 Enter the following into the provided textboxes and click OK.

#4 At any time while in a BIDS Visual Studio Solution, click Tools and then ‘Clear Report Data Cache’ to delete the files.

Please follow and like us:

Microsoft Visual Studio – Debugging doesn’t start

There have been many suggestions to get this working. I will give you three that worked for me in the order they should be tried.

  1. Restart your computer. Some of the projects files run in the background. Stop them if you know what they are. Restarting is not necessary just end their tasks) and then try again.
  2. Go to Solution Explorer, right-click your project go to properties, click Debug, at the bottom there is a check box, click the check box to ‘Enable SQL Server Debugging’.
  3. Go to Solution Explorer, right-click your project go to properties, click Debug, at the bottom there is a check box, un-check the check box that states ‘Enable the Visual Studio hosting process’.
Please follow and like us:

Microsoft Visual Studio – Completely Remove all Files and Folders Visual Studio Before Attempting a Fresh Install

After uninstalling all versions of Visual Studio products from your computer using the Programs and Features by means of the Control Panel, you may want to clear out the following folders and files before attempting to reinstall Visual Studio again.

C:\Program Files\Microsoft Visual Studio
C:\ProgramData\Microsoft\VisualStudio
C:\Users\user\AppData\Roaming\Microsoft\VisualStudio
C:\Users\user\AppData\Local\Microsoft\VisualStudio

Please follow and like us:

Microsoft Visual Studio – ASP.Net This Collection Already Contains an Address with Scheme HTTP

This collection already contains an address with scheme http.
There can be at most one address per scheme in this collection.
If your service is being hosted in IIS you can fix the problem by setting ‘system.serviceModel/serviceHostingEnvironment/multipleSiteBindingsEnabled’ to true or specifying ‘system.serviceModel/serviceHostingEnvironment/baseAddressPrefixFilters’. Parameter name: item

In .Net 4 and above, you can add this to the web.config to resolve the issue:

<system.serviceModel> 
 <serviceHostingEnvironment multipleSiteBindingsEnabled="true" /> 
</system.serviceModel>
Please follow and like us:

Microsoft Visual Studio – The default format code hot keys for Visual Studio – VB.Net

Let’s say you copied/pasted many lines of code to create a new function, and then gutted out 50% of the code. Sometimes the code does not reformat nicely. To manually reformat the code in VB.Net, Hold down the CTRL key and then press the K key, immediately followed by the D key.

If you only want to format a portion of the code, first select (highlight) the code. Hold down the CTRL key and then press the K key, immediately followed by the F key.

Format complete.

Please follow and like us:

Microsoft Visual Studio – How to set forecolor of textbox when control is set programatically to readonly

I have found that if my textbox control is set to ReadOnly= True at design time, I can change the forecolor programmatically without a hitch.

If my textbox control is set to ReadOnly = False at design time, and then decide to change the ReadOnly = True programmatically, if I then try and change my forecolor it doesn’t work.

Why?

In this case, the framework won’t allow the ForeColor change unless you first change the BackGround color, which sets some flag that allows the ForeColor to be changed.

Please follow and like us: