Posts

How to Change Web Configuration- .Net

Image
In this article, let me explain, how to automate the process of changing a Web Configuration in ASP.NET. The web transformation would be helpful because: 1. It is a bit difficult to make the same set of changes for a different environment. 2. If the config file has more entries then it would be difficult to traverse manually. 3. Possibilities of typo error. ASP.NET 4.0 has provided a very nice option to transform the web configuration. When we create an ASP.NET application using Visual Studio, it will create a web config file with the following two transformations. Web.Debug.config: Debug mode Web.Release.config: Release mode. When we run the application (publish) in a debug mode, the web.debug.config file would override the web config settings and the Web.Release.config file settings would be used when the application is running in a release mode. Now I want to do the web.Config transformation for other build environments, like: Staging. Production. To do this, I am using the followin...

Setting Application Pool Idle and Recycle Timeout Period Using Startup Tasks - Windows Azure

  Using Windows Azure SDK 1.3 or later we have the ability to launch a process (called a startup task) like: Before a role starts and the role will be started after the completion of the task. A Role will not wait for a startup task to finish, instead it will launch just after the startup task is executed. Both role and startup task would be independent. We can run a role as long as the startup task is running. To add a startup task, we need to include the following lines of code in the service definition file (.csdef) as shown below. <ServiceDefinition  name = "MyService"   xmlns= "http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceDefinition" >   <WebRole  name = "WebRole1" >   <Startup>   <Task commandLine= "Startup.cmd"  executionContext= "limited"  taskType= "simple" >   </Task>   </Startup>   </WebRole>   </ServiceDefinition...

HTTP Handlers And Modules

Image
Really, I always like to work and read about ASP.Net request handling mechanisms. From the outside, it's just request & response tricks. But, if you go in-depth, then you will understand some interesting internal things. Most developers have experienced questions on ASP.Net page life cycle in interviews. I had that experience when I started my carrier. In this article, I am going to explain about the core part of the ASP.Net request processing. i.e HTTP Handler and HTTP Module. What are HTTP handlers? The ASP.Net life cycle starts with a request sent by a browser to the web server. When the web server receives the request, it will pass the request to an instance of the HTTP Runtime class. The HTTP Runtime object observes and figures out from which application it has been sent (virtual directory). Then it uses the HTTP Application factory to create a HTTP Application Object to process the request. The HTTP Application objects holds the collection of HTTP Module ob...

UIPath Tutorials – Part 2

Image
In this blog, you will be going through      1            Ho do I start learning UIPath?      2.           Types of projects      3.          Templates      4.            UIPath Components -Recap How/Where to start learning UIPath?   To start learning UIPath, we need to learn concept of   “Sequences” and “Activities”   Sequences : A sequence is a series of activities that does meaningful tasks.             Example: logging into Gmail account.   .              Activities : An activity is the smallest action in UIPath tool.              Example: Clicking left button on mouse.   Types of Projects:   There are two t...

UIPath Tutorials -Part 1

Image
In this series of articles, I am trying to explain basics-advanced topics of UiPath tool. To learn more about RPA, Please watch video  Let’s start with-                  What is UiPATH?                Features              Installation.             Going through UiPATH interface                UiPath Vs others What is UIPath? UIPath is tool/studio software which is part of RPA family and   allows to automate repetitive tasks.   UIPath is available in three different flavors: 1.        UIPath Studio 2.        UIPath Robot: 3.        UIPath Orchestrator           -        ...