Real SharePoint Code

Posts tagged ‘msdn’

Modify Port Number or Add Custom Domain Name of SharePoint Site

There are multiple scenario  where we need to host the Intranet site with domain name or change the port number of existing web application of SharePoint. But most of us don’t know the exact steps how to do that. So my this post describe all steps required for achieving above scenario’s

Step 1. Open HOSTS file in notepad from C:\Windows\System32\drivers\etc and update your domain name with IP of the server


Host File Entry

Step 2: Click on Start -> Run -> Type INETMGR -> press enter -> Select you website and click on Bindings -> Click on Edit

IIS Mapping

Step 3: Enter host header value which you have mentioned in HOSTS file ( and update the port number which you want I am using 80 port

IIS Host Header Entry

Step 4 : Go To SharePoint 2010 Central Administration ->  System Settings -> Configure alternate access mappings

Alternate Access Mapping

Step 5: Select you WebApplication -> Edit the URL  without port number ( or  with port number ( -> Click OK

Update URL in AAM

Done !! Access your site with new URL.

If  you receive error 401.1 when you browse a Web site that uses Integrated Authentication and is hosted on IIS 5.1 or a later version then follow below steps.

Specify host names (Preferred method if NTLM authentication is desired)

To specify the host names that are mapped to the loopback address and can connect to Web sites on your computer, follow these steps:

  1. Set the DisableStrictNameChecking registry entry to 1. For more information about how to do this, click the following article number to view the article in the Microsoft Knowledge Base:
    281308  Connecting to SMB share on a Windows 2000-based computer or a Windows Server 2003-based computer may not work with an alias name
  2. Click Start, click Run, type regedit, and then click OK.
  3. In Registry Editor, locate and then click the following registry key:
  4. Right-click MSV1_0, point to New, and then click Multi-String Value.
  5. Type BackConnectionHostNames, and then press ENTER.
  6. Right-click BackConnectionHostNames, and then click Modify.

    Add Domain Name

  7. In the Value data box, type the host name or the host names for the sites that are on the local computer, and then click OK.
  8. Quit Registry Editor, and then restart IIS ( IISRESET )
Done !!!
Happy Coding !!!!

SharePoint Central Feature Management

My 4th open source contribution to Codeplex. Currently I am working on a Project which is product wrapper top of SharePoint. I need to activate almost 20 to 30 feature on every deployment, It takes around 10-15 minute to just activate those feature in Site Collection and Sub Sites. So I created on custom Application Page which will work as a Feature Management.and  thought its nice to contribute on codeplex with that project which can help everyone, following are the screen shots and description  of the Project. Download Source Code

SharePoint Central Feature Management provides the functionality to manage all feature in Site Collection and all Sub Sites from one central location. also allow to Activate or Deactivate multiple feature on Single Click. Also allow user to Activate all dependent feature associated with current feature. Allow you to activate and deactivate hidden feature also.

1. Activate SharePoint Central Feature Management from Site Collection Feature

Activate SharePoint Central Feature Management from the Site Collection Features

2. After enabling the feature it will add link in Site Collection Administration

After Activating the Feature it will Show you the Link under Site Collection Administration

3. Click on Central Feature Management

Landing Page of SharePoint Central Feature Management

4. Action and Filter control

Filter Tool Bar


1. Type dropdown will allow you to select type of feature (Site Collection Feature or Web Feature)

2. Select Web dropdown will allow you to select specific web from the dropdown (if type is web in first dropdown)

3. Show dropdown will allow you to select which type of feature you want to display “All”,”Activated”,”Needs to Activate”

4. Hidden Checkbox will allow you set whether you want to include Hidden feature or not.

5. On Filter button click will filter the result and display the result in below grid

6. Activate Button will activate all selected feature

7. Activate with Dependency will allow you to activate all dependent feature associated with selected feature

8. Deactivate button will allow you to deactivate selected feature

Hidden feature in Highligted Color

Hope this will help everyone – 🙂

Happy Coding !!!!!!