Skip to main content

Posts

Showing posts with the label MVC

Integrating ASP.Net MVC with AngularJS

We recently released a Project Template for ASP.Net MVC and AngularJS here and here . I did a follow up post detailing how the project template has been setup and how to make AngularJS and MVC play well together on my company blog . If you are interested in understanding how the template works head over to my blog post and read it!

Visual Studio Project Template for AngularJS SPA + ASP.Net MVC \ Webapi

I am very exited to announce that our team at Technovert has release a Visual Studio project template for AngularJS . More details on how to install and use this template are available on the Technovert Blog   Knockout.js has been a standard library that .Net devs have been using for creating rich interactive business apps. But AngularJS from Google provides a more complete framework and is gaining a lot of dev community support. This project template can help you get up and running with AngularJS in no time and evaluate it for your future needs.

Integrate ASP.Net MVC + WebAPI with Autofac in 5 mins

Recently i configured Autofac with ASP.Net MVC 4 and WebAPI . Here are the steps required to configure Autofac Install package Autofac.MVC4 Install package Autofac.WebApi Add a class AutofacBootstrap. Use this class to configure the dependencies within your project. Open Global.asax file and add a method like  Call the method from Application_Start And you are done !!

What i learned today.

Working with ASP.Net and SilverLight in my current project i learned two important things today SL will always show generic NotFound exception for a remote call failures irrespective of what was returned from server. This limitation roots in the browser which does not pass the exception details to the SL plugin. The only way around is to always send a responses which have Fault property for the SL client to work with. ASP.Net forms authentication mechanism always redirects on 404 error and behaviour is hard to change. This becomes a problem working with SL or ASP.Net MVC clients which expect Http error code (REST clients). The workaround that i found on Stackoverflow was to thrown 403 Error Code instead of 401. This way service calls made from SL or ASP.Net MVC can return http status codes (REST endpoints) and will not cause server redirects.