IIS Website on Azure VM – times out

Created an IIS website on Azure virtual machine. I can ping the DNS name/binding but when using browser get following errors

Chrome browser: This site can’t be reached

Edge browser: Hmm, we can’t reach this page.

Internet Explorer: This page can’t be displayed.

To fix this issue, you must allow HTTP (and HTTPS if necessary) in the “Network Security Group” for your VM in the Azure management portal.

Go to Azure portal, select the network security group for your vm and add new “inbound security rules” for http and https.

Bootcamp – UK Keyboard

Settings/Time and Language/Region and Language/Related Settings/Additional date time and regional settings/Language/Option/Add input method/ and then scroll to find United Kingdom (Apple) then Add.
After adding this new input method I was able to select switch from United Kingdom to United Kingdom (Apple) by clicking the link on the taskbar.

Thanks to https://discussions.apple.com/message/29534517#29534517

Entity Framework update 4 to 6

https://visualstudiomagazine.com/articles/2014/03/01/whats-new-in-entity-framework-6.aspx

From the above article by Peter Vogel (Visual Studio Magazine, 2014):

Step 1

  • Change namespace System.Data.Entity to System.Data.Entity.Core (including references to System.Data.* namespaces – for example, System.Data.Objects becomes System.Data.Entity.Core.Objects)
  • This may cause you to overwrite some System.Data.Entity references you’ll still need. If you’re using the EntityState or Database classes, for example, you might need to add back a namespace directive for System.Data.Entity. [I didn’t need to do this]
  • If you’ve used EF spatial functions then you’ll need to change any System.Data.Spatial namespaces to System.Data.Entity.Spatial. [ I didn’t need to do this]
  • If you’re using the EntityFunctions class you should (but don’t have to) switch to using DbFunctions. Similarly, if you’re using the EdmFunction attribute you should switch to the DbFunction attribute. Both are in System.Data.Entity namespace. [ I didn’t need to do this]

Step 2

Use NuGet to add EF 6 to project

Step 3

If using .edmx file, first delete all nested files under the .edmx file in Solution Explorer. After that, open your .edmx file, right-click on the design surface and select Add Code Generation Item to display the Add New Item dialog. If you’ve been using a DbContext object, you should select EF6.x DbContext Generator in the Data tab; if you’ve been using the older ObjectContext object, select the Online tab and search for EF6.x EntityObject Generator.