| Installing and Configuring IIS |
 |
|
 |
| 1.) Go to Start > Control Panel > Add/Remove Programs > Add/Remove Windows Components. |
 |
| 2.) Double-click Application Server. |
 |
 |
 |
| 3 )You will see that Internet Information Services (IIS) is not checked. Check the box. Press OK. |
 |
 |
 |
4.) Then Lastly click on the Next button and it will automatically start installing IIS on your machine. You may need your Windows CD in the server drive before you can do this. Once completed, IIS is installed. You will now need to start configuring it to your requirements.
|
 |
| To start IIS Manager from the Run dialog box |
| 1. |
On the Start menu, click Run. |
| 2. |
In the Open box, type inetmgr and click OK. |
 |
| To start IIS Manager from the Administrative Services console |
| 1. |
On the Start menu, click Run. In the Run text box, type control panel, and then click OK. |
| 2. |
In the Control Panel window, click Administrative Tools. |
| 3. |
In the Administrative Tools window, click InternetInformation Services. |
 |
| To create a local Web site in IIS 6.0 |
| 1. |
In IIS Manager, expand the local computer, right-click the Web Sites folder, point to New, and click Web Site. |
 |
 |
 |
| 2. |
In the Web Site Creation Wizard, click Next. |
| 3. |
In the Description box, type a descriptive label for the site (this label is not what you will type in the address bar of a browser), and then click Next. |
 |
 |
 |
| 4. |
Type or select the IP address (the default is All Unassigned), TCP port, and host header (for example, www.microsoft.contoso.com) for your site. |
 |
 |
 |
| 5. |
In the Path box, type or browse to the directory that contains, or will contain, the site content, and then click Next. |
 |
 |
 |
| 6. |
Select the check boxes for the access permissions that you want to assign to your users, and then click Finish. By default, the Read and Run Scripts check boxes are selected; these permissions enable you to run ASP.NET pages for many common scenarios. |
 |
 |
 |
| 7. |
Then Click on Finish Button. |
 |
| After creating a new local Web site, you can configure it to run ASP.NET pages and configure security. The following shows the permissions settings that are available in all versions of IIS, including IIS 6.0. |
 |
|
|
|
| Account or Group |
Permissions |
| Administrators |
Full Control |
An account or group tdat you choose to give browse access to tde site if you disabled anonymous |
Read & Execute |
tde account configured to access system resources for the ASP.NET current user context, such as the Network Service account (IIS 6.0) or the ASPNET |
Read & Execute List Folder Contents Read Write |
|
|
|
 |
| To configure security and authentication for a local Web site |
| 1. |
In IIS Manager, right-click node for the site that you want to configure, and then click Properties. |
 |
 |
 |
| 2. |
Click the Directory Security tab, and then in the Authentication and access control section, click Edit. |
 |
 |
 |
| 3. |
Select the check box for the authentication method or methods that you want to use for your site, and then click OK. By default, the Enable anonymous access and Windows Integrated Authentication check boxes are already selected.. |
 |
 |
 |
| 4. |
In Windows Explorer, navigate to the folder that will contain the pages for the site. Right-click the folder and then click Sharing and Security on the shortcut menu. |
| 5. |
On the Security tab, configure the additional accounts and permissions that are minimally necessary to run your Web site, and then click OK. Some of the accounts listed, such as Administrators and System, are already configured by default. |
 |
| To enable ASP.NET in the IIS Manager on the Windows Server 2003 Family |
| 1. |
On the taskbar, click the Start button and then click Run. |
| 2. |
In the Open box in the Run dialog box, type inetmgr, and then click OK |
| 3. |
In IIS Manager, expand the local computer and then click Web Service Extensions. |
| 4. |
In the right pane, right-click ASP.NET and then click Allow. The status of ASP.NET changes to Allowed. |
| When you install Visual Studio .NET on a computer running Windows XP Professional or Windows 2000 Server, the .NET Framework and ASP.NET are automatically installed as well. If you want to install ASP.NET and the .NET Framework by themselves, you can download them over the Web and install them on your server. The following procedure provides instructions on how to do this. |
 |
| Folder Permissions: |
 |
 |
 |
| 1. |
Right click on the folder to which you want to set the permissions and choose properties from there , it will prompt you to the properties dialogue, just select security from the menus there like this:- |
| 2. |
Click on add button there and you will find the following screen :- |
 |
 |
 |
| 3. |
Click on Advanced button and you will the other screen like this :- |
 |
 |
 |
| 4. |
Click on Find Now Button and select the appropriate permissions : |
 |
 |
 |
| Set the Permissions for following users |
| 1. |
administartor |
| 2. |
administrators |
| 3. |
everyone |
| 4. |
IIS_WPG |
| 5. |
IME_USER |
| 6. |
IME_USER |
| 7. |
IUSR_username |
| 8. |
IWAM_username |
| 9. |
IWAM_username |
| 10. |
Network Service |
| These are some of the users or groups that you have to select from there generally. |
| 5 |
Then click on ok and from the very next screen also click ok |
 |
 |
 |
| 6 |
Then give full access to each and every user you have just added like as follows: first to administrators, then creator owner, then power users then carry on … Full permission to every user |
 |
 |
 |
| 7 |
Repeat the 6 No process for all the following users |
| 1. |
administartor |
| 2. |
administrators |
| 3. |
everyone |
| 4. |
IIS_WPG |
| 5. |
IME_USER |
| 6. |
IME_USER |
| 7. |
IUSR_username |
| 8. |
IWAM_username |
| 9. |
IWAM_username |
| 10. |
Network Service |
| 8 |
And finally click on apply then ok button. |
 |
| Installation of Web API on IIS server. |
| 1. |
Create a website or Virtual folder. As define above. |
| 2. |
Set the security permission and allow read /write permission. |
| 3. |
Put bunch of file with folder in the define folder. |
 |
| Example folder name is c:\Inetpup\wwwroot\testing is a web site folder. |
| C:\Inetpup\wwwroot\testing\CategoryList.xml |
| C:\Inetpup\wwwroot\testing\RChilli.asmx |
| C:\Inetpup\wwwroot\testing\Web.Config |
| C:\Inetpup\wwwroot\testing\ Web.Config |
| C:\Inetpup\wwwroot\testing\ Resumes\ |
| C:\Inetpup\wwwroot\testing\ bin\ App_Code.dll |
| C:\Inetpup\wwwroot\testing\ bin\ Aspose.Words.dll |
| C:\Inetpup\wwwroot\testing\ bin\ Aspose.Words.xml |
| C:\Inetpup\wwwroot\testing\ bin\ FontBox-0.1.0-dev.dll |
| C:\Inetpup\wwwroot\testing\ bin\ IKVM.GNU.Classpath.dll |
| C:\Inetpup\wwwroot\testing\ bin\ IKVM.Runtime.dll |
| C:\Inetpup\wwwroot\testing\ bin\ PDFBox-0.7.3.dll |
 |
| 4. |
Check with browser. ( type url in the broser as http://localhost/testing/rchilli.asmx) Or. Your machine http://I.P. / testing/rchilli.asmx And xml SHOP will display. |
 |
 |
 |
| 5) user this url in given sample code. |
 |
 |
 |