Posts

How To Publish Web API - Visual Studio

Image
In this post i will show you how to publish your Web API project in Visual studio Open your solution and select the Web API project. Right click on the project and select Publish. Then it will popup Publish Web  process. In here i will show you how to publish using custom profile Select Custom and enter Profile Name  Hit next.(Connection tab) Select publish method as File System. And provide file location as Target Location i'm using HOST folder in C: drive. Hit next (Settings tab). Select Configuration as Release (By default in Release) and hit next (Preview tab). Click Publish button to publish your Web API. You can see publishing process in output window in Visual Studio . After succeeded the process you can brows file location and find all the files that you need to host your application. Now you can use this files to host in IIS server. Just need do give file path to IIS  Enjoy. 

Create Custom Attribute - Active Directory

Image
In this post i will show you how to create custom attribute in Active Directory and assign in to User class   Before create custom attribute you need to log in to Server using Administrative login. Not regular admin it has to be  Schema Admin. Otherwise   all the option will be disabled.(If you need to add Schema Admin  privileges, follow below steps.) Log in to user as an Administrator. Open Server Manger. Then Tools > Active Directory Users and Computers. Then Select Your Domain > Users and select user.  Then right click on user > Properties  Select Member of tab in properties window  > Add > Advanced  And type  Schema Admin on start with common query. then hit find now button (below screenshot)                         Then Select Schema Admin on search result. Hit OK > then OK again. Now you can create or edit attribute properties. T...

Best way to Speedup your Windows PC Windows 7 / 8 / 8.1 / 10

Image
In this Post i will show you one of the best way to speedup your Windows PC There are/ many ways to increase you Windows PC performance. Clean junk files Fragment Cleaning Software Startup processes etc. But most of the people like programmers don't care about the visual effects of animation inside windows. There are lots of animations and visual effects that busy your memory.  I am also testing this and it improves my laptop performance. let's do it. Press Windows Key + X in your keyboard then it will show you a quick access menu then select "System" in that menu. It will open System details in your PC Click "Advanced system settings" in left side menu Then select "Advance" tab in the "System Properties" view and click Settings under Performance Then select "Adjust for best performance" Or you can select custom preference by selecting "Custom".  If you...

Easy Way to Format your Code Sample for publish in Blogs / Blogger

Image
In this post i will show you how to format your code for publish inside tour blog or blogger within few steps.  Copy your code Visit  http://codeformatter.blogspot.com/ Paste the code in editor Change formatting option as you want Click "Format Source Code" This it with create source code for your blog. Also you can see Preview of the Source code. Copy the Content of "Copy Formatted Source Code" text area. Go to your blog and paste it within your HTML code. For example i will use one of my blogger post Go to Edit View in your post and select HTML (as following image) It will show you the HTML code of your post. Then paste the code content to your HTML code as following image Some times when saving the HTML code blogger will popup conflicts errors in your code  You can click "Fix" in the message any blogger will fix the error automatically. Then save the post and preview your post. It will show you the formatted ...

Routing in ASP.NET Web API 2 - Attribute Routing - Tutorial NO. 03

Image
In this post i will explain basics about Routing in ASP.NET Web API. Convention-Based Routing Attribute-Based Routing Other than Web API, Web API 2 support new new routing call Attribute routing. It will give you more control over URIs in Web API. Download out previous Code Sample in  Here . For previous tutorials : Create Simple Web API 2 Project in few minutes - .NET Framework - Tutorial NO. 01 Using Postman and Inspect tool in Google Chrome to Test your Web API - Tutorial NO. 02 Convention-based routing is still available in your API (Earlier method). You can still choose what you want or you can use both method inside your project. Difference between Convention-based routing and Attribute-routing  In Convention-based routing you define one/more routeing templates, are basically parameterized  strings. But advantage of the Convention-based routing is only define in singe place. WebApiConfig.cs file in App_Start folder. Convention-based ro...

Enable IIS - Internet Information Service feature in Windows for developers

Image
In this post i will show you how to enable IIS feature in you window PC.  There are few important reasons and information to use IIS In .Net software development we use IIS for hosting our application like Web APIs, WCF Services, Web Application (angular 2, 4, PHP5)etc. Also it is a easy way to manage you application configuration with rich GUI application. Simplified your development process Add, remove, and replace built-in IIS components with your custom modules Speed your website with built-in dynamic caching and enhanced compressions Administrators can use the IIS roles to set up/manage multiple websites, web applications, FTP sites Configure multiple web servers into one server farm. Lets look in to how to Open IIS. (If IIS already Enables) Go to Control panel in your PC Then click Administrative tools in the menu (See following image) Then open "Internet Information Services (IIS) manager" in  list. Let's look at how to enable IIS . ...

Using Postman and Inspect tool in Google Chrome to Test your Web API - Tutorial NO. 02

Image
This is the second tutorial in my list. Today i will explain about following point Installing Postman Test your Web API using Postman How to view and test our Web Request using Google Chrome Inspect tool and more. Before taking this part of the tutorial i recommend to fallow my previous tutorial: https://codestreetblog.blogspot.com/2017/10/create-simple-web-api-2-project-in-few.html POSTMAN  First of all you have to install Postman through your google chrome. For that, go to menu in Chrome > More Tools > Extensions  Then it will popup new browser tab with existing extensions.  If you don't have Postman in your system scroll down to the extension page and click "Get More Extensions" Then you can install Postman by searching through web store. Then Open your Postman app (You can open app by searching on windows start menu).  If you want you can signup with the app and then app automatically backup your Web API requests. ...