"Access Denied" error after setting up Form Based Authentication for SharePoint site using Active Directory as a datastore

  Recently I faced very interesting scenario where I have configured everything as mentioned in this article http://blogs.msdn.com/echarran/archive/2006/09/11/749707.aspx for the Forms Authentication using Active Directory Membership Provider. After doing so, whenever I tried to login I was getting “Access Denied” error and was not able to login via any user.  To check the configuration validity…


UnGacing doesn’t work

Recently I have faced a very strange issue, I have UnGaced the DLL but it was still being referenced by the application. I have developed a Workflow based application which does some computation once a document is uploaded to the Document Library. DLL was not in the GAC but still it was being referenced and…


How to modify Content Type once it is deployed?

Once the Content Type is deployed it is very difficult to modify them via Feature deployment. Once the Content Type is being used by any of the object in SharePoint, it’s difficult to modify that Content Type without deleting the associate content. For Example, There is a Page Layout (let’s name it as SamplePL) which is…


How to use CAML query to fetch data from a list?

Here is the CAML Query: <Where>       <Eq>          <FieldRef Name=”Title” />          <Value Type=”Text”>title</Value>       </Eq> </Where>   I am using object model from my Webpart to load this CAML query and get the results back: SPList list = web.Lists[“ListName”]; SPQuery spQuery = new SPQuery(); spQuery.Query = “” //CAML Query String from the Top;…


Working with SPGridView – all in one

I recently had the opportunity to work extensively on SPGridView. I have chronicled few of the challenges faced while working on SPGridView, and their solutions in the attached document. Have also attached the codebase, which will help people working  with SPGridView without much trouble.. 🙂  Cheers… Technical WhitePaper – Working with SPGridView.zip


Tool to auto-generate CAML queries in MOSS

There is a tool on U2U resource Center which will help generating CAML queries for the given object in MOSS. URL to Down load the tool: http://www.u2u.info/SharePoint/U2U%20Community%20Tools/Forms/AllItems.aspx URL on how to use this tool: http://www.u2u.info/Blogs/Patrick/Lists/Posts/Post.aspx?ID=1252   Thanks to the owner which has made the life simpler of CAML query writter..   Cheers !!!  


Find Domin User Information

System.DirectoryServices class will help finding the information of a Domain User. Function which will help retriving Active Directory Object:        private DirectoryEntry GetActiveDirectoryObject(string filter, string domain, string[] properties)        {             /// Running LADAP query to get the directory entry            DirectoryEntry adsRoot = new DirectoryEntry(“LDAP://” + domain, null, null, AuthenticationTypes.Secure);             DirectorySearcher searcher = new DirectorySearcher(adsRoot);           …

MOSS VPC Performance Imporvement tips

MOSS VPC Performance improvement: Few services you might want to stop to give performance boost to your VPC. Windows SharePoint Services Timer Windows SharePoint Services Tracer Windows SharePoint Services Search


AJAX ComboBox control. Based on the first combo’s value fill up the next combo without page post back

AJAX Parent/Child Dropdown control: Two dropdown controls, country and province/state.  When you select a country, the province list should be refreshed (without a postback) with the list of provinces for that country.  Developers using the control should be supply the country data, and the province data should either be a list of all provinces for all…

Creating WinForm ComboBox in WebFroms

AJAX dropdown edit control: Create a control that allows users to select from a dropdown list, or to type a value if the value they want is not in the list.  E.g. maybe there is an “Other…” option in the list which shows the text box when selected.  Or maybe there is some other slick…