Visual Studio 2017 Prompts For Login

Problem:

I’m not very sure why Visual Studio 2017 continuously prompts me for login today. I entered the username and login successfully then the prompt never disappears and I could not access my VSTS.

Solution:

After some Googling, I found a post discussing the issue. In summary:

There is an issue with the update installer which causes some users’ identity cache to become corrupted, which produces very similar behaviour to the other bug. The following has generally fixed this:

  • Close all instances of VS
  • Open %LOCALAPPDATA% in File Explorer, e.g. c:\users\\AppData\Local
  • Delete the .IdentityService folder
  • Launch VS. You’ll have to sign in again

After that it should stop prompting you.

It totally worked for me!!! 🙂 🙂 🙂

Advertisements

How to resize a VirtualBox .vmdk file on MacOS

I’ve allocated 30GB for the Windows 10 VirtualBox virtual machine. That amount of storage was short-lived, I installed Visual Studio and a few other development tools, soon,e I needed to expend/resize the hard disk storage.

I’m running Oracle VM VirtualBox Version 5.1.28, the syntax might change in different version of VirtualBox but the steps are the same:

  • Start a Terminal session. Terminal program is located in Applications -> Utilities -> Terminals
  • My Windows 10 virtual hard disk is in the .vmdk format so I need to convert it to .vdk format first, else I will receive an error like this:
0%...
Progress state: VBOX_E_FILE_ERROR

Continue reading “How to resize a VirtualBox .vmdk file on MacOS”

Azure Spring Cleaning

I’m doing some Project Euler problems to brush up my coding skills – see if I still have got it. Just like riding a bicycle years later, I think years of training in the past had not left me yet. Just like cleaning up and oiling the old bicycle, I found myself trying to setup the coding environment again.

It’s been a few years since I’ve used my Azure Virtual Machines (VM) that were setup for coding. Most of the resources were in the classic pools. First thing first, start up the VMs one by one to see if the logins are still working. Do not start them all in case the account notifications go crazy – they are not free! I deleted the VMs that I could not logon and created some with the latest products such as Visual Studio 2017 and Windows 10. I’m impressed with the variety of Azure VM template options – there is the popular WordPress and even Linux operating systems.

The new, compare to the classic, version of the Azure dashboard takes a bit of time to get used to. The dashboard options can be a bit overwhelming to a user who is unfamiliar with the tools. One can always switch to the classic dashboard if unsure.

There are some options that only exist in the classic dashboard, e.g. move subscriptions between Azure Active Directories (AAD). I had one subscription transferred from an old email. I created a new AAD and put all my subscription under it as a way of centralise all accounts and controls for my Azure resources.

The geek in me is feeling the excitement. 🙂

Publish Razor to GoDaddy via Visual Studio

It’s not difficult to find a few discussion forums on How to Publish Razor to GoDaddy via Visual Studio 2013 on Google. In this post, I will attempt to write down my own experiences and summarise some issues that I’ve encountered:

Tools to use:

  1. GoDaddy Windows (Plesk) shared hosting account that supports .Net 4.0
  2. Microsoft Visual Studio 2013 Enterprise

Publish an Razor Website:

If all goes well, its really straight forward:

  1. Login GoDaddy gateway godaddy-login
  2. Click on the “manage” button on the site you want to work ongodaddymanage1
  3. On the dashboard (if you do not see any items on the dashboard, click on a small button in the middle that says “show more”), then click on the link Web Deploy Publishing Settingswebdeploypublsihprofile
  4. It should prompt you to download a file. Save the file to local drive where your Visual Studio lives.
  5. Right click on your website project name in Visual Studio and click on “publish website”
  6. Chose to deploy it to website
  7. Browse to the file that was downloaded in step 4. This should automatically pre-fill all the information you need to publish the website.
  8. Click next then next again or just click on “publish”.

Continue reading “Publish Razor to GoDaddy via Visual Studio”