Creating Self Hosted Asp.Net WebAPI with CURD operations in Visual Studio 2010


Introduction

I have been writing a lot over WebAPIs in my Learning WebAPI series, but one crucial topic that I missed was hosting an asp.net WebAPI .

Hosting a WebAPI in IIS is pretty straight forward and is more similar to how you host a typical asp.net web application.In this article, I’ll explain how we can host a WebAPI in another process independent of IIS.

I’ll explain how to quickly create a WebAPI having CURD operations with Entity Framework 4.0 and then host it in an independent server.I’ll call the service endpoints through a console application acting as a client. You can use any client to check the service end points and verify their functionality. I’ll try to explain the topic with practical implementations , create a service and a test client in Visual Studio 2010 around target framework as .Net Framework 4.0.

Continue reading “Creating Self Hosted Asp.Net WebAPI with CURD operations in Visual Studio 2010”

Advertisements

RESTful Day #9: OData in ASP.NET Web APIs


Download Source Code

Introduction

This is the last article of the RESTful series in which I’ll explain how you can leverage OData capabilities in Asp.net WebAPI. I’ll explain what OData is and we’ll create OData enabled RESTful services. I’ll try to keep the article very concise with less theory and more practical implementations.

Continue reading “RESTful Day #9: OData in ASP.NET Web APIs”

RESTful Day #8: Unit Testing and Integration Testing in WebAPI using NUnit and Moq framework (Part2)


Download Source Code

Introduction

In my last article I explained how to write unit tests for business service layer. In this article we’ll learn on how to write unit tests for WebAPI controllers i.e. REST’s actual endpoints. I’ll use NUnit and Moq framework to write test cases for controller methods. I have already explained about installing NUnit and configuring unit tests. My last article also covered explaining about NUnit attributes used in writing unit tests. Please go through my last article of the series before following this article.

Continue reading “RESTful Day #8: Unit Testing and Integration Testing in WebAPI using NUnit and Moq framework (Part2)”

Got Microsoft Most Valuable Professional Award


I feel awesome to share that I got the most prestigious and biggest award from Microsoft. Yes, it is Microsoft MVP 🙂. I can’t believe I am sharing this, it’s like a dream come true for me.I thank all my readers, followers, friends, C# Corner and the whole team behind it Dinesh Beniwal Praveen Kumar . A special thanks to Mr.Dhananjay Kumar for being so supportive and guiding me through.Thanks to @CsharpCorner and The Code Project (www.codeproject.com) for posting my articles on your platform.

mvp

Thanks,Microsoft Microsoft India Mr. Biplab Paul Mr. Gandharv Rawat for this recognition.I make sure I maintain the dignity of the award. I would also like to thank Mr. Shivprasad Koirala whose style of writing and teaching helped me a lot to write more refined articles. ‪#‎award‬‪#‎happy‬ ‪#‎microsoft‬

certificate

Creating an MSI Package for C# Windows Application Using a Visual Studio Setup Project



download_code Download Source Code

Introduction

There are a number of ways provided by Microsoft to create a setup project for windows application.

But when I started to create one, I got nothing but queries and confusions of how to start and where to start. There are numerous articles I found over the network, explaining to create a setup project, but some do not work as they say, and some do not have a live example to follow.

The driving force for me to write this article is my QC team, who except the main application to test also verified my setup installer with their 100% effort L. And guess what, they were successful to find bugs in that too.

In this article I would like to explain a step by step process to create a windows application and a setup installer for the same in a very simple manner, that is easy to understand and follow, alternatively, there are n no. of ways to do so.

Continue reading “Creating an MSI Package for C# Windows Application Using a Visual Studio Setup Project”