Migrate Website(s) from IIS 6.0 to IIS 7 or above

Recently got chance to work on migrating hosted sites on IIS 6.0 to IIS 7.0. As documentation is not available and need transfer sites without any configurations and dependencies documentation. I searched on net about automatic transfer from IIS 6.0 to IIS 7.0. I got Microsoft Web Deployment Tool.

This will help you migrate a Web site from IIS 6.0 to IIS 7 or above by using the Web Deployment Tool. Here I try to merge few require information from Microsoft and other various blogs.

This will help you for:

  • How to get dependencies of sites using command
  • Export current site(s) into Package(s)
  • Setup Sites on new Internet Information Server with its application pool.

PREREQUISITES

This guide requires the following prerequisites:

  1. .NET Framework 2.0 SP1 or greater
  2. Web Deployment Tool 2.0

1. Installing and Configuring Web Deploy

Install Web Deploy V3 RC using WebAPI 4 RC

  1. Web Platform installer x86 (32bit)
  2. Web Platform installer 64bit

Web Deployment Tool

  1. Web Deployment Tool x86 (32–bit)
  2. Web Deployment Tool 64 (64–bit)

Reference: Web Deployment Tool Installation

2. VIEW YOUR SITE’S DEPENDENCIES

1. Get the dependencies of the Web site by running the following command:

msdeploy -verb:getDependencies -source:metakey=lm/w3svc/<1>

Here <1> is site id.

Find out SiteID in iis5/6.

In IIS 5 or 6, view the properties of the website and in the Web Site tab, click on the Properties button for the logging. At the bottom of the Extended Logging Properties window is the Log file name. It will be something like this: W3SVC10000\exyymmdd.log. The SiteID is 10000 in this case.
[Ref: http://weblogs.asp.net/owscott/archive/2005/07/29/421058.aspx%5D

2. Compile a list of dependencies and require component.

References: Viewing Dependencies

3. CONFIGURE THE TARGET

Take the list items (dependencies and component) created in 2.2. And configure your server based on that

4. MIGRATE YOUR SITE TO THE TARGET BY USING A PACKAGE FILE

1. Always make a backup of the destination server. Even if you are just testing, it allows you to easily restore the state of your server.

%windir%\system32\inetsrv\appcmd add backup “PreWebDeploy”

2. Run the following command on the source server to create a package (compressed) file of the server:

msdeploy -verb:sync -source:metakey=lm/w3svc/1 -dest:package=c:\Site1.zip > WebDeployPackage.log

3. Take Application Pool setting into package adding following option into MSDeploy.

- enableLink:AppPoolExtension
Example:
msdeploy -verb:sync -source:metakey=lm/w3svc/1 -enableLink:AppPoolExtension -dest:package=c:\Site1.zip > WebDeployPackage.log

4. If your source site is set for SSL Certificate. You need to add following option to your command.

,encryptPassword=[pass]
Example:
msdeploy -verb:sync -source:metakey=lm/w3svc/1 -enableLink:AppPoolExtension -dest:package=c:\Site1.zip,encryptPassword=[pass] > WebDeployPackage.log

5. Copy the package file to the destination server.

6. Run the following command on the destination server to validate what would happen if a sync operation were run:

msdeploy -verb:sync -source:package=c:\Site1.zip -dest:metakey=lm/w3svc/<1> -whatif > WebDeploySync.log

Please change <1> to your SiteID for Destination Server. If IIS has site with sameID it will replace site with new source.

5. After verifying the output, run the same command again without the whatif flag:

msdeploy -verb:sync -source:package=c:\Site1.zip -dest:metakey=lm/w3svc/1 > WebDeploySync.log

Original Article: Migrate a Web Site from IIS 6.0 to IIS 7 or above

HTML5 Input

HTML5 is now supporting new input type and give more facilities.

Number and Range

Only numeric value input field and Range field. And Mobile browser display only numeric keypad.

Syntax: 
Quantity (between 1 and 5):<input type="number" name="quantity" min="1" max="5">

View HTML & Demo (Browser: Opera, Chrome, IE 10)

Date Pickers

HTML5 finally defines a way to include a native date picker control without having to script it yourself. In fact, it defines six type: date, month, week, time, date + time, and date + time – timezone.
Now developers free from dubugging js/css code to support third party javascript date picker boxes in different browsers.

input type

  • date
  • datetime
  • datetime-local
  • month
  • week
  • time

View HTML & Demo (Browser: Opera, Chrome, IE 10)

Color Pickers

In past we did lots of juggling to support Color Picker in different browsers.

Now we have Input type “Color”. No extra Javascript and third party controls. Just we need.

Syntax: 
<input type="color">

View HTML & Demo

Email Validation

The email type is used for input fields that should contain an e-mail address. And It validate email address. Now no need to insert customize javascript to validated email address.

Syntax: 
<form>
<fieldset>
<legend>Email</legend>
Email:<input type="email" name="useremail">
</fieldset>
<input type="submit">
<form>

View HTML & Demo (Browser: Opera, Chrome, IE 10)

Require Field

Browser will check field value and display appropriate message to user.

Syntax:
<form>
  <input id="q" required>
  <input type="submit" value="Search">
</form>

Web Address or URL field

Input field with type URL. Provide URL Validation and mobile browser provide appropriate keyboard for field.

<form>
<input id="CompanyURL" type="url">
<input type="submit" value="Save">
</form>

The iPhone altered its virtual keyboard, just like it did for email addresses, but now optimized for web addresses instead. The space bar has been completely replaced with three virtual keys: a period, a forward slash, and a “.com” button. (You can long-press the “.com” button to choose other common suffixes like “.org” or “.net”.)

Auto Complete

The HTML <datalist> tag is used for providing an “autocomplete” feature on form elements. It enables you to provide a list of predefined options to the user as they input data.

View HTML & Demo (Browser: Opera, Chrome, IE 10)

Placeholder Text

Syntax:

<form>
  <input name="q" placeholder="Go to a Website">
  <input type="submit" value="Search">
</form>

India card Rupay to replace Visa and Master Card

Rupay card rollout – the National Payments Corporation has at last finalized the proposed unique India Card which once commercially launched would be an domestic alternative to the global real-time payment processing firms like Visa and MasterCard.

But the name used by the NPCI is the name of the payment system used in Russia and Ukraine. Rupay- Electronic payments between accounts. So it may create misconception for it.

Ernst & Young(E&Y) – USA will develop entire architecture, including the design and software for the Rupay card rollout And Develop software roll out. USA outsources their Software and Back Office work to India and Indian government sign USA Company for software development. They do not found any Indian firm to develop and roll out of India-card. Mera Bharat Mahan.

So It will be IndoUS-Card

Create Summary of the Data Excel Spreadsheet

Create Summary of the Data.

A
B
C
1
Emp
Month
Expense
2
Smith Jan 1000
3
Jones Jan 1500
4
Smith Feb 800
5
Jones Feb 1000
6
Smith Mar 500
7
Jones Mar 800
8
Smith Apr 1000
9
Jones Apr 800
10
Smith May 945
11
Jones May 700
12
Smith June 1000
13
Jones June 1500
14

Steps:

  1. Locate Define name or Name Manager(Create New) option in menu or ribbon bar. 
  2. Give the name EMP and select RANGE (ex: A2:A13). And Click OK/Save
  3. Give the name Month and select RANGE (ex: B2:B13). And Click OK/Save
  4. Give the name Expense and select RANGE (ex: C2:C13). And Click OK/Save
  5. Use SUMIF Function Parameter 1: Range Name, Parameter 2: Condition/Criteria, Parameter 3: Range for summary or calculation. (Ex =SUMIF(Emp,”=Smith”, Expense)).