k web command and agile development environment

Posted by Anuraj on Thursday, February 19, 2015

.Net ASP.Net ASP.Net MVC Visual Studio

With the new version of ASP.NET, you can avail the flexibility of deploying your app via an agile app development methodology, where you can modify and save the C# file and refresh the browser, your changes will be updated automatically. You don’t need to go for any explicit compilation in Visual Studio. The in-built .NET Compiler Platform ROSLYN available with ASP.NET vNext handles app deployment transparently in either the server or the development machine. This feature is only available with Visual Studio, it won’t work with “k” command. The k command comes with –watch switch, documentation says “Watch file changes”, but it is also not working. When there is a file change, it will stop the server. I found few Node plugins for this purpose. Today I thought of writing a C# implementation.

How Intercept HTTP calls from WCF client to service

Posted by Anuraj on Thursday, February 12, 2015

.Net .Net 4.0 ASP.Net Visual Studio WCF

Today I faced some problem, I had to intercept HTTP calls from WCF proxy to WCF service. I was using Fiddler 4. But unfortunely it was not working :( I tried many options.(It was not working for me, but it may work for you)

Converting DataTable to Generic List

Posted by Anuraj on Monday, February 9, 2015

.Net .Net 3.0 / 3.5 .Net 4.0 ASP.Net Windows Forms

Code snippet for converting a DataTable to Generic List.

TagHelpers in ASP.NET 5

Posted by Anuraj on Sunday, February 8, 2015

.Net ASP.Net ASP.Net MVC

TagHelpers is a new feature in ASP.NET, it is similar to HTML helpers, which already available in ASP.NET MVC. Similar to HTML helps TagHelpers allows to process server side content on HTML controls. So

Continuous Deployment (GitHub) with Azure Web Sites

Posted by Anuraj on Saturday, February 7, 2015

.Net .Net 4.0 ASP.Net ASP.Net MVC Version Control Visual Studio Windows Azure

Windows Azure websites supports Continuous Deployment. Continuous Deployment can be thought as an extension of continuous integration, where when ever users commit a changeset, build will be triggered. And in case of Continuous Deployment, the changes will be published to your live application directly from source control, when ever user commits a changeset. This is a fantastic automation feature that can be leveraged from a range of source control tools such as Visual Studio Online and others (GitHub, BitBucket, DropBox, CodePlex, or Mercurial) . Azure websites supports staged publishing (it is in Preview state) as well, so if you don’t want to publish your changes direcly to live, you can deploy it to staging and verify it. Once verification is completed, you can push the staging to live.

Azure-System.MethodAccessException: Attempt by security transparent method

Posted by Anuraj on Friday, February 6, 2015

.Net .Net 4.0 ASP.Net ASP.Net MVC Windows Azure

Today I faced a strange issue, after publishing an empty ASP.NET MVC application to Azure WebSite.

View Components in ASP.NET MVC 6

Posted by Anuraj on Friday, February 6, 2015

.Net ASP.Net ASP.Net MVC

In ASP.NET MVC 6, Microsoft introduced View Components, which similar to partial views, but they are much more powerful. It is like a mini controller, which helps to render a part of response rather the whole response. View Components consists of two parts, a class, derived from ViewComponent class(Similar to POCO controllers, ViewComponent can also be POCO, it supports convention based and attribute based identifications) and a razor view which invokes the method in ViewComponent class.
MVP
Subscribe


Copyright © 2017 - Anuraj P. Blog content licensed under the Creative Commons CC BY 2.5 | Unless otherwise stated or granted, code samples licensed under the MIT license. This is a personal blog. The opinions expressed here represent my own and not those of my employer. Hosted with ❤ by GitHub