These are few of the configuration settings we need to consider while deploying our custom web application within ISV folder of CRM.
If we want the page to run under the context of the logged in user than we need to enable impersonation.
<authentication mode="Windows"/><identity impersonate="true"/>
If we are using view state or session state we need to enable them as well.<pages enableSessionState="true" enableViewState="true" >
CRM 4 implements http modules for multi-tenancy support. Here we need to remove these modules from being called for our custom web application.<httpModules><remove name ="CrmAuthentication"/><remove name ="MapOrg"/></httpModules>Bye..