Monday, November 17, 2008

How to Back Up and Restore IIS

Back Up the IIS Configuration

To back up your IIS configuration, follow these steps:

  1. In the IIS snap-in on the local computer, click the Computer icon under Internet Information Services.
  2. Click Action and select Backup/Restore Configuration.
  3. Click Create backup, choose a name for your backup file, and then click OK. NOTE: The default location of the backup is the %SystemRoot%\system32\inetsrv\MetaBack folder. If you want to save your backup file to another location, you can copy the file from this default location to another location. Keep a copy in the default location to allow for an easy restoration.
  4. Click Close. NOTE: This backup method provides a way to restore only your IIS settings, not your content files. This backup method does not work if you reinstall your operating system. Backup files cannot be used to restore an IIS configuration on other computers that are running Windows 2000.


Restoring the IIS Configuration Without an IIS Reinstallation

To restore your IIS configuration if you have not removed and reinstalled IIS, follow these steps:

  1. In the IIS snap-in on the local computer, click the Computer icon under Internet Information Services.
  2. Click Action and select Backup/Restore Configuration.
  3. In the Configuration Backup Name dialog box, select a backup file and click Restore. When you are asked if you want to restore your configuration settings, click Yes.


Restoring the IIS Configuration After an IIS Reinstallation

To restore your IIS configuration after you have removed and reinstalled IIS, follow these steps:

  1. In the IIS snap-in on the local computer, click the Computer icon under Internet Information Services.
  2. Click Action and select Backup/Restore Configuration.
  3. In the Configuration Backup Name dialog box, select the backup file that you created and click Restore. Although an error message states that the restoration has failed, a portion of your backed-up configuration is restored.
  4. At a command prompt, type the following: cscript.exe X:\InetPub\AdminScripts\Adsutil.vbs enum w3svcwhere X is the letter of the drive on which IIS is installed. From the listed settings, locate the WamUserName and the associated WAMUserPass value.NOTE: To use the Adsutil.vbs utility, you must have Windows Script Host installed.
  5. Click Start, point to Settings, click Control Panel, double-click Administrative Tools, and then double-click Computer Management. Click Local User Managers and click Users.
  6. Double-click the IWAM_computername user account. Type the WAMUserPass value that you retrieved from the previous step and click OK.
  7. In the Configuration Backup Name dialog box, select the backup file that you created and click Restore. This fully restores your configuration.NOTE: If you change the identity of your out-of-process applications, those applications revert back to the previous IWAM user name.

Friday, November 14, 2008

Mostly used short cuts and file locations working with Sharepoint

Run commands

mstsc - Remote Desctop Connection
inetmgr - IIS Manager (Internet Information Services Manager);
run - windows key + R
cmd - command prompt
iisreset - Reseting Internet Information Services

Host File - C:\WINDOWS\system32\drivers\etc
GAC (Global Assembly Cache) - C:\Windows\assembly

Applications Locations (by Default) - C:\Inetpub\wwwroot\wss\VirtualDirectories

Copy dll files from the GAC - Open Run Window, and type C:\Windows\assembly\gac\

How to get PublicKeyToken? right-click on the assembly name and open the properties dialog box to view the assembly name and public key.

Direct links to some of pages in sharepoint site

Web Part Gallery Page
http://yourserver/sitecol/_catalogs/wp/Forms/AllItems.aspx

Visual Studio 2005 (useful short cuts)
Code Reformating - Select the code, and click Ctrl+K & Ctrl+F;

How to Deploy Web Parts?

Deployment for Development Purposes*

  1. manually copy the web part’s signed assembly (.dll) to the
    Global Assembly Cache (GAC);
  2. manually add the corresponding element to
    SharePoint’s Web.config file;
  3. use a site collection’s web-part gallery pages to add the
    web part.

Moving to Production (You need to create a solution package to deploy it to your SharePoint farm). For creating solution, we have to use Microsoft add-in called Windows SharePoint Services 3.0 Tools: Visual Studio 2005 Extensions, Version 1.1. Click Here to Download it.


*The preferred method for deploying a web part for an entire SharePoint web application or web farm is through a SharePoint solution.

 
Sell my car, Used car for sale, Free Automotive Classifieds