Articles related to Dotnet

Generating PDF: .Net Core and Azure Web Application

Generating a PDF is one of those features that come along in a while and gets me thinking. How do I do this now? Previously I had written about dynamically generating a large PDF from website contents . The PDF library I used that then, did have the…

Query Object Pattern and Entity Framework - Making Readable Queries

Search is a common requirement for most of the applications that we build today. Searching for data often includes multiple fields, data types, and data from multiple tables (especially when using a relational database). I was recently building a Search page…

Protect Yourself Against Line Ending Issues when Using Environment.Newline to Split Text

In computing, a newline , also known as a line ending, end of line (EOL), or line break, is a special character or sequence of characters signifying the end of a line of text and the start of a new line. The actual codes representing a newline vary across…

Web Application Occasionally Throwing 'Could not Load File or Assembly or one of its Dependencies' Exception

We were facing a strange 'could not load DLL issue', when building and running multiple host projects in Visual Studio (VS 2015), side by side. We had 2 host projects - an NServiceBus worker role project (a console application) and a Web application and a few…

Could Not Load Assembly msshrtmi.dll?

While migrating a few Azure Cloud Services to Web Jobs, we started facing the error, Could not load assembly ... /msshrtmi.dll ,for just one of the projects. The error provides the exact path from where it is trying to load the DLL and is the same path from…

Testing Multiple Implementations of same Interface

Often there are times when we need to test multiple implementations of the same interface. We would want to use the same test case against all the implementations so that we don't repeat ourselves . In this post we will see how we can reuse the same test…

IoC Registration by Convention

Sometime back we had seen, how to configure the unity container using code/config file and I was using a mix of this in one of my projects. This approach soon became an overhead, as the manual wiring up of registrations is really cumbersome and also error…

Configuring Unity Container: Comparing Code and Xml Configuration Side by Side

Setting up dependency containers from code is very easy, but not at all the same when done using a configuration file. The project that I am currently working on uses xml configuration for Unity container and I did struggle mapping certain dependencies, so…

Windows Phone Series – MVVM and ApplicationBar

ApplicationBar on a windows phone, is to provide users of your app with quick access to the most commonly used tasks. For a mail app this would be refresh/new mail, for a photo app it might be like/unlike button, settings etc are common buttons that appear in…

Windows Phone Series – Preloading Content

Mostly phone apps, connect to a service for the data and wrap them up to a cool UI for user consumption. But at times we would have apps that comes with a lot of preloaded content, with offline capability using sqlite .  Offline scenarios might either start…

MVVM – Does it really matter?

MVVM (Model-View-ViewModel), is a popular architectural pattern since WPF/Silverlight. Separation of concerns(UI/code), testability etc are some of the key things that motivates one to go via the MVVM route. There are innumerous articles out there, just like…

Windows Phone Series – Incremental Loading

Some time back we had a look on doing Incremental Loading with a Windows 8 store app . This same scenario is something that one would come across quite frequently while developing a Windows Phone application too. We have a couple of options in dealing with…

Windows 8 Series – Drop Down Button

While working on my Windows 8 Store application, Picfinity I came across a need for a drop-down button(which I thought was the correct term for this). A similar control is there on the start screen of Windows 8 that gives us options on clicking the logged in…

Windows 8 Series - Incremental Loading

Fast and fluid experience is one of the most important characteristics of a Windows 8 application. As the data becomes larger , it might not be always possible to get the entire data loaded before hand.We might want to have a incremental or sequential data…

Windows 8 Series - Exploring OAuth: c# and 500px

The days when we ourselves developed sites and application for our own services are long gone. Now it’s about building api’s, sharing data and going social that's the buzz. No more is it a feasible solution to build applications for the numerous devices, that…

Getting Started with ASP.NET Web Api

A web api is to expose your application’s programming interface over the web,using the HTTP interface.This makes the api accessible from any device that can make HTTP calls.With the wide range of devices that’s available nowadays,Web Api would be the best way…

WCF to ASP.NET Web API

Windows Communication Foundation(WCF) brought around a unified programming model for building service oriented application.All the previous technologies that was used to build services like MSMQ, remoting, ASMX Web Services,all came under one umbrella. WCF had…

An enterprise IT project experience

It's not been that long that I've been into the IT servicing industry.But still the learning curve I've had during the  past few years has been dramatic.The first time I was put into a ' live client facing project ' was almost one year after my industry entry…

C# google image search

Need not much of an explanation I guess. The title has it all.... ....a C# API for searching images from google. Works on Regex for matching the image URL from the HTML returned for the image tag search.This might stop working anytime google changes the…

Synchronize SQL Server database objects

Updating an old database, with newly created/modified database objects(mostly stored procedures,views,functions and table value parameters), from a new database was a very common,tedious,error prone task that was performed at my workplace for the past few…

Not Able to “Start Debugging” in Visual Studio

FxCop Custom Naming Rules

Recently I had started using FxCop ,which is a wonderful code analysis tool.Soon after getting into it,I felt the need of rules specific to my requirements and standards.One such need was in the area of 'Naming of Variables'. Every project/organization might…

Subscribe to rahulpnath.com

And get the latest articles delivered right to your inbox!