Wednesday, November 27, 2013

Upgrade from ASP.NET MVC 4 to ASP.NET MVC 5

Personally, I think Microsoft makes a mistake in not making ASP.NET MVC 5 compatible with Visual Studio 2012. You need to follow the instructions in these 2 links to make it work:

http://www.asp.net/mvc/tutorials/mvc-5/how-to-upgrade-an-aspnet-mvc-4-and-web-api-project-to-aspnet-mvc-5-and-web-api-2

http://stackoverflow.com/questions/17926552/attempt-by-security-transparent-method-webmatrix-webdata-preapplicationstartcod

After giving it some thought, the underlying problem is that Visual Studio is highly coupled with specific versions of .NET (and there is no reason why it's done that way). After all, Visual Studio is just an IDE, and it (ideally) should be able to compile code for any version of .NET as long as you have the specific version of the .NET framework installed.


Friday, November 8, 2013

XMLHttpRequest cannot load http:///socket.io/1/?t=1383952162872. Cross origin requests are only supported for HTTP

Lately I've been learning socket.IO in preparation for a new project. You'll come across simple errors as with any new tool you learn. The first error I had to figure out with this technology was: 


XMLHttpRequest cannot load http:///socket.io/1/?t=1383952162872. Cross origin requests are only supported for HTTP

The solution is simple, but it's part of the learning process. It turned out that I was loading the page in a browser as E:\example.html instead of http://localhost:8081/example.html. Fortunately it only took me a few minutes to fix.

Tuesday, November 5, 2013

KnockoutJS Tips and Tricks

I wanted to share this video by Ryan Niemeyer, who talks about really useful things to know about KnockoutJS  bit.ly/18004A5