2010-02-28

Design Patterns


What is Design Pattern:
Design Pattern: Is a general reusable solution to a commonly occurring problem in software.
Design Patten is a description or template of how to solve the problem we usually face during software development life cycle. It is showing relationship between classes without specifying how the final application will looks like. .....




2010-02-12

How to Solve "Error Creating Control" Error Message (ASP.Net Site)

If you face this error while trying to open a web application project


Error Creating Control - control_Name

'/LM/W3SVC/1/Root/Project_Name' is not a valid IIS application.







You can resolve this error by following the below steps , the root cause of this error is the incorrect mapping between web application project and the virtual directory in your IIS.


To Resolve this error , follow the following steps:


1-Right click - you web application project and select Properties -> Web

2- in the server section choose Use IIS Web Server -> then click Create Virtual.

3- Clean your project from any DDLs that was previously complied and compile your project again.


by doing the above steps this issue should got resolved.







2010-02-05

Http Handler vs Http Module

  • What is ASP .Net  HTTP Handler
An ASP.NET HTTP handler is the process (frequently referred to as the "endpoint") that runs in response to a request made to an ASP.NET Web application. The most common handler is an ASP.NET page handler that processes .aspx files. When users request an .aspx file, the request is processed by the page through the page handler. You can create your own HTTP handlers that render custom output to the browser

Reference: http://msdn.microsoft.com/en-us/library/bb398986.aspx

  • What is ASP.Net HTTP Module
An HTTP module is an assembly that is called on every request that is made to your application. HTTP modules are called as part of the ASP.NET request pipeline and have access to life-cycle events throughout the request. HTTP modules let you examine incoming and outgoing requests and take action based on the request.

Reference: http://msdn.microsoft.com/en-us/library/bb398986.aspx


Note:   The basic different between HTTP Handler and HTTP Module, is that HTTP Module is event based processor.