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.

2009-12-27

Maximize MS CRM 4.0 pop-up Windows

Recently a customer asked me how to open the PhoneCall window(any window) form in a larger window. It's a simple matter of a little bit of JavaScript.

* Navigate to the main Account form as follows:
o go to Settings………

Click here to read more!



How to Hide/Show fields on Advanced Find's Search Criteria

One of my client requested to hide/Show some fields on MS CRM 4.0 (Microsoft CRM 4.0) Advanced Find search criteria. When this requirement came to me, I thought it is very hard to be implemented. In fact, this is a configuration issue and it is very easy to be implemented. all what you have to do is the followings:
.....  Click here to read more!





2009-11-30

Auditing MS CRM 4.0 Record Changes

It is common requirements to audit changes on certain entities on MS CRM 4.0. Unfortunately there is not built-in functionality to do so shipped out of the box. The best solution to solve this issue is to build a plug-in to take care of auditing changes. One of the challenges I faced is: How to implement this plug-in in generic away? So when my client ask me to audit a new entity, I will be ready for that with no Development effort.

....  Click here to read more!




2009-08-05

How to solve XML configuration problem when you use unit testing.


One of the first challenges I faced when I decided to use Unit Testing projects to test my Methods/Classes, is how to use XML configuration files with unit testing projects…

Basically the issue appear because my project using XML file as configuration file. And when I compile my Unite testing project, the compiler will copy only DLLs ......... Click here to read more!





2008-12-10

Search Issue when using Visual Studio 2003 on Windows Vista Operating system


A couple days ago, I faced a small issue when I tried to search specific value inside VS 2003 solutions while I have MS Windows Vista OS installed on my PC…. Doing searching will cause VS 2003 to be hanged and stop responding.. I overcome this issue by Disable Visual Themes for VS 2003.. To do so please follow the following steps

..... Click here to read more!