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.

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.

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.

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’.

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

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>

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.

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.

Microsoft Visual Studio – Fixing a Broken Toolbox (in Visual Studio 2010 SP1)

When starting Visual Studio 2010, it would hang for about 30 seconds trying to load the toolbox. I found this solution online and it worked for me:

++++++++++++++++++++++++++++++++++++++++++++++++++++++++

http://michaelcrump.net/fixing-a-broken-toolbox-in-visual-studio-2010-sp1

I was recently running into a situation where every time I opened Visual Studio 2010 SP1, the following message would appear for about 60 seconds or so:

“Loading toolbox content from package Microsoft.VisualStudio.IDE.Toolbox.ControlInstaller.ToolboxInstallerPackage
‘{2C98B35-07DA-45F1-96A3-BE55D91C8D7A}'”

After finally get fed up with the issue, I started researching it and decided that I’d share the steps that I took to resolve it below:

  • I first made a complete backup of my registry.
  • I then removed the following key: [HKEY_LOCAL_MACHINESOFTWAREWow6432NodeMicrosoftVisualStudio
    10.0Packages{2c298b35-07da-45f1-96a3-be55d91c8d7a}]
  • I went to the following directory: C:UsersYour Name HereAppDataLocalMicrosoftVisualStudio10.0 and created a folder called bk and moved the .tbd files to that folder (they are hidden so you will have to show all files). I then removed the .tbd files in the root directory.

SNAGHTMLcaac6ca

  • I then launched Visual Studio 2010 SP1 again and it recreated those files and the problem was gone.

Anyways, I hope this helps someone with a similar problem. I created this blog partially for myself but it is always nice to help my fellow developer.

Thanks for reading.