Easier error handling in ASP.NET MVC5

asp-dot-net-logo

I’ve written a few posts about error handling in ASP.NET MVC. It’s not easy to get it right since the MVC pipeline uses a different error handling method than ASP.NET itself. With our client library you can get a fully working implementation for free, without having to using the rest of our service. OneTrueError injects itself both in the ASP.NET ...

Read More »

Experimenting with HTTP services – UrlEcho and UrlReq

asp-dot-net-logo

Interesting, especially the reasoning behind them: UrlEcho permits the requestor to completely define the response it wants to receive, thus giving it the ability to “host” static HTTP resources within URLs themselves. Why is this cool/useful? #               You don’t need a Web server to host a simple resource — you just construct a ...

Read More »

Using Azure Resource Manager

microsoft-azure-logo

In the new Azure Portal you create all your resources in Resource Groups, there is also as part of the Azure SDK‘s a module called AzureResourceManager  by default the module loaded for the Azure SDK is AzureServiceManagement. A blurb from one of the Azure documentation page reads “The Azure and Azure Resource Manager modules are not designed to be used ...

Read More »

Invoke Command/queries in the browser, execute them in your app

csharp-logo

I’ve created a small sample project which demonstrates how you can invoke a query using javascript (and execute them in your server). The sample uses authentication, authorization, an inversion of control container and jQuery. The cool thing (imho) is that this technique obsoletes ASP.NET MVC/WebApi and similar. That is, if you combine command/queries over ajax/websockets you only need static HTML ...

Read More »

The persistence layer in SharpMessaging

csharp-logo

I’m working on a messaging system in .NET. It’s purpose is to allow you to use reliable (and transactional) messaging inside your application without the need of an external server. This post is about the persistence layer (i.e. file storage). It can handle somewhere between 100 000 and 300 000 messages per second depending on the configuration. The theory Allow ...

Read More »

Code generation pros and cons and T4 Template

visual-studio-logo

I dislike code generation and usually see it as a smell. If you are using code generation of any kind, there is a good chance something is wrong with your design or solution! So perhaps instead of writing a script to generate thousands lines of code, you should take a step back, think about your problem again and come up ...

Read More »

Application Insights for Windows Store Apps in Azure Portal

dot-net-logo

If you’ve been using Application Insights for a while now you would have noticed that with recent Visual Updates the Application Insights SDK had been updated to use a new version that logs AI data into the new Azure Portal. From this if you use Windows Store Apps you would probably have noticed that if you instrument a Windows Store ...

Read More »

MyGet: Continuous Integration for the Rest of Us

nuget-logo

By this time, most .NET developers are familiar with NuGet.  It used to be that if you wanted to use some part of .NET, such as Entity Framework, you would add a reference to your project pointing to some DLL in the .NET Framework Class Library (FCL).  Those days are loooong gone.  Nowadays, if you want to use Entity Framework ...

Read More »

TFS Work Item Visualizers

tfs-logo

In my last post (Introduction to DotNet Pretty) I mentioned that I would be added more visualizers to DotNet Pretty soon :). Today I finally managed to get around to that and added some visualizers for TFS Work Items. 3 new visualizers were added 2 debugger display visualizers and 1 debugger visualizer. The first is for Microsoft.TeamFoundation.WorkItemTracking.Client.WorkItemType and just displays ...

Read More »

Visual Studio tip: paste json/xml file as class

json-logo

I’m a long time listener of .NET rocks and today during my drive to work while listening to TDD on .NET and Java with Paul Mooney, Carl mentioned a cool tip I want to share with you. In the past I have use XSD.exe to create classes from XML files for serialization purposes (and similar tools for json) but no ...

Read More »