Host a WCF Service in a Managed Windows ServiceThis topic outlines the basic steps required to create a Windows Communication Foundation (WCF) service that is hosted by a Windows Service. The scenario is enabled by the managed Windows service hosting option that is a long-running WCF service hosted...
Wednesday, 21 November 2018
Monday, 19 November 2018
Custom Routes for MVC Application
When you request any page into MVC Application, it will go through the Routing Architecture. Your Routing system will decide your URL pattern. The default routing algorithm is like {controller}/ {action}/ {id} patterns. But it can be possible to change that pattern using Custom Routes.
Default Route
You can configure Route into the Global.aspx's Application Start Event. When you are creating an...
Thursday, 15 November 2018
Exception Handling in Web API
Exception Handling in ASP.NET Web API
There are many ways to handle the exception.
HttpResponseException
Exception Filters
HttpError
HttpResponseException: This exception class allows us to return HttpResponseMessage to the client. It returns HTTP status code that is specified in the exception Constructor.
public Product GetProduct(int id) { Product item = repository.Get(id); if (item == null) { throw new HttpResponseException(HttpStatusCode.NotFound); } return item;}
Exception...
Subscribe to:
Posts (Atom)
Topics
ADFS
(1)
ADO .Net
(1)
Ajax
(1)
Angular
(47)
Angular Js
(15)
ASP .Net
(14)
Authentication
(4)
Azure
(3)
Breeze.js
(1)
C#
(55)
CD
(1)
CI
(2)
CloudComputing
(2)
Coding
(10)
CQRS
(1)
CSS
(2)
Design_Pattern
(7)
DevOps
(4)
DI
(3)
Dotnet
(10)
DotnetCore
(20)
Entity Framework
(5)
ExpressJS
(4)
Html
(4)
IIS
(1)
Javascript
(17)
Jquery
(8)
jwtToken
(4)
Lamda
(3)
Linq
(10)
microservice
(4)
Mongodb
(1)
MVC
(46)
NodeJS
(8)
React
(10)
SDLC
(1)
Sql Server
(32)
SSIS
(3)
SSO
(1)
TypeScript
(3)
UI
(1)
UnitTest
(2)
WCF
(14)
Web Api
(16)
Web Service
(1)
XMl
(1)
Pages
- Dotnet Core Interview Q/A
- React JS Interview Questions and Answers
- Angular Interview Q/A
- Node JS Interview Q/A
- Azure Interview Q/A
- .Net Interview Q/A
- WEB API Interview Q/A
- Javascript Interview Q/A (Part- 1)
- Javascript Interview Q/A (Part- 2)
- SQLServer Interview Questions
- SQL - Query Related Interview Q/A
- ASP .Net MVC Interview Q/A
- Angular Testing Interview Q/A
- Lead level Interview Q/A
- WCF Interview Q/A
- ExpressJS Interview Q/A
- MongoDB Interview Q/A
- C# Programs Output Q/A
- InterView Programming
- ASP .Net Interview Q/A
- Angularjs Interview Q/A
- SQL Server 2005/2008 Functions
- Entity Framework Interview Q/A
- JQuery Selectors / Methods
- Ado .Net InterView Q/A
- LINQ Operators and Lambda Expression