You are on page 1of 18

Steps for IIS (version 5.

1) Configuration in Windows XP

1. Copy the contents enBank Web Deploy folder to C:\Inetpub\wwwroot\enBank.


The deploy folder can be copied to other location also but in that case the
folder needs to be mapped in virtual directory.

2. Copy enCardServer folder to C:\Inetpub\wwwroot\enCardServer. The


enCardServer folder also can be copied to other location also but in that
case the folder needs to be mapped in virtual directory.

3. Copy ‘enCardCAB_Vista.cab’ and ‘enCardCAB_XP.cab’ files at


‘C:\Inetpub\wwwroot’ location.

4. Provide Full Control access to the Users object of enBank and enCardServer
folders.

5. Open IIS (type “inetmgr” in run menu or navigate to Control Panal->


Administrative tool-> Internet Information Services Manager).

6. Under Default Website, a virtual directory has to be created.

7. Right click under ‘Default web Site’ node and click on New->Virtual Directory.
It will open the Virtual Directory creation wizard.

8. Click on Next to provide some name to your virtual directory and click on
Next and provide the path of the folder for which virtual directory needs to
be created.

9. Now on clicking on Next it will show access permission window. Check the
Read, Write and Browse options for Bank site and also make sure that ‘Run
Scripts’ and ‘Execute’ are ticked for Encard2Server. Now click on ‘Next’ and
then ‘Finish’ and the virtual directory will be listed under ‘Default Web Site’
folder.
10.In the properties dialog, choose the options as shown in the screenshots.

11.The ‘Directory’ Tab of Properties Dialog

12.The ‘Directory Security’ Tab of Properties Dialog.


13. Click on the Edit button. Authentication Methods Dialog will appear.

14.The ASP.NET Tab of Properties Dialog. Select the version as 2.0.50727. If its
is not listed, install it.
15. Following the same steps create Virtual Directory for the folder enCardServer
listed under the Default WebSite in IIS. After configuration of Virtual
Directories IIS should look like this

16. Register the enCard2Server.dll and SoapClient.dll using the command


( regsvr32 “dllname with location”).
If the dll registering fails, check for its dependent DLLs using depends.exe

17. Reset the IIS using the command ‘iisreset’ from the run command or by
directly going to the IIS directory. Now right click the IIS root node and go
to All Tasks Restart IIS.

18. Now open the web.config file in the enBank folder.


Change the IP address and CAB file location in the file to your IP address

<add key="enCardServerURL"
value="http://192.168.1.68/enCardServer"/>
<add key="enCardCabURL_XP"
value="http://192.168.1.68/enCardCAB_XP.CAB#version=4,0,0,604"/>
<add key="enCardCabURL_Vista"
value="http://192.168.1.68/enCardCAB_Vista.CAB#version=4,0,0,604"
/>

Here ‘enCardServer’ is the name of the folder for which we created the virtual
directory (other than bank site). Whereas ‘enCardCAB_XP.CAB’ and
‘enCardCAB_Vista.CAB’ are the CAB files that we copied under wwwroot.

19. Change the Connection String in the file to show the correct DB.

<add name="SecuraConnString" connectionString="Data


Source=192.168.1.164;Initial Catalog=securalatest;User
ID=sa;Password=aspire123" providerName="System.Data.SqlClient"/>

Here Data Source refers to the server address where database resides.
Catalog refers to the database name. User ID and Password are the
credentials to access the database. The User ID should have read, write and
delete permission.

20. Now open ODBC Data Source Administrator to create a System DSN with the
following credentials.

System DSN - Driver Type: SQL Server


Name: enCardServer (anyname)
SQLServer: ASPIRE340
Choose SQL Server authentication
User Name : sa
Password: aspire123
Default DB : SecuraLatest(latest DB)

21. Test the data source for Successful connection.

22. Copy the Current.esc file to ‘C:\Inetpub\wwwroot\’.

23. Provide Full Control access to the Users object of Current.esc file.

24. Open the file using enCardSvrCfg.exe.


25.Change the file to reflect the DSN connection you created using ODBC.

26.Provide the local IP address under the RemoteURL key.

27. Open http://localhost/enBank/index.aspx using Internet Explorer. Here in the


URL, ‘enBank’ refers to the virtual directory name. It should invoke the
enBank site.

Problems faced:

28. “Failed to access IIS metabase. User not available.” Error message appeared

29. The file Metaacl.vbs was missing from the C:\Inetpub\AdminScripts. The file
can be downloaded from http://support.microsoft.com/?kbid=267904

30. Using the script create the username.

31. For the commands to provide the user privileges:


http://support.microsoft.com/kb/326902

32. After the website loaded, was not able to browse any of the links in the page.
This problem was solved by providing Full Access permission to the enBank
folder’ User object.

33. On testing the Local Server URL, http://127.0.0.1/encardserver/encardci.dll?


CreateTokenX?<enCard><IID>Test</IID></enCard>

34. The below message was displayed.


Nc:\inetpub\wwwroot\Current.esc

35. To solve the problem, provide Full Access permission to the Current.esc file’
User object.
Steps for IIS (version 7.5.xx) Configuration in Windows 7

1. Copy the contents enBank Web Deploy folder to C:\Inetpub\wwwroot\enBank.


The deploy folder can be copied to other location also but in that case the
folder needs to be mapped to virtual application. To map the virtual
application, the path of the folder needs to be provided while creating
virtual application.

2. Copy enCardServer folder to C:\Inetpub\wwwroot\enCardServer. The


enCardServer folder also can be copied to other location also but in that
case the folder needs to be mapped to the application/virtual directory. To
map the folder to the virtual application, the path of the folder needs to be
provided while creating virtual application.

3. Provide Full Control access to the Users object of enBank and enCardServer
folders.

4. Open IIS (type “inetmgr” in run menu or navigate to Control Panal->


Administrative tool-> Internet Information Services Manager).

5. Create an application pool for your application (existing application pools can
also be used). Application pools are used to provide a single domain to
every web site. We can assign one application pool to many web sites but in
that case if one web site gets corrupted it will affect other web sites also. To
create application pool right click on the ‘Application pool’ node and click on
the ‘Add Application Pool’.
6. Under Default Website, an Application needs to be created. To create the
application right click on ‘Default Web Sites’ and click on ‘Add Application’.

7. Provide the name, application pool and physical path for your application and
click on ‘OK’. The application will be listed under Default Web Sites.

8. Go to the ‘Control Panel-> Programs and Features’ and click on the ‘Turn
Windows Features on or off’.
9. In the ‘Turn Windows Features on or off’ window, set the options as in the
following screenshot.

10. Register the enCard2Server.dll and SoapClient.dll using the command


( regsvr32 “dllname with location”). If the dll registering fails, check for its
dependent DLLs using depends.exe

11. Reset the IIS using the command ‘iisreset’ from the run command or by
directly going to the IIS directory. Now right click the IIS root node and go
for stop and start.

12. Now open the web.config file in the enBank folder.


Change the IP address and CAB file location in the file to your IP address

<add key="enCardServerURL"
value="http://192.168.1.68/enCardServer"/>
<add key="enCardCabURL_XP"
value="http://192.168.1.68/enCardCAB_XP.CAB#version=4,0,0,604"/>
<add key="enCardCabURL_Vista"
value="http://192.168.1.68/enCardCAB_Vista.CAB#version=4,0,0,604"
/>

13. Change the Connection String in the file to show the correct DB.

<add name="SecuraConnString" connectionString="Data


Source=192.168.1.164;Initial Catalog=securalatest;User
ID=sa;Password=aspire123" providerName="System.Data.SqlClient"/>

Here Data Source refers to the server address where database resides.
Catalog refers to the database name. User ID and Password are the
credentials to access the database. The User ID should have read, write and
delete permission.

14. Now open ODBC Data Source Administrator to create a System DSN with the
following credentials.

System DSN - Driver Type: SQL Server


Name: enCardServer (anyname)
SQLServer: ASPIRE340
Choose SQL Server authentication
User Name : sa
Password: aspire123
Default DB : SecuraLatest(latest DB)

15. Test the data source for Successful connection.


16. Copy the Current.esc file to ‘C:\Inetpub\wwwroot\’.
17. Provide Full Control access to the Users object of Current.esc file.
18. Open the file using enCardSvrCfg.exe.
19.Change the file to reflect the DSN connection you created using ODBC.
20.Provide the local IP address under the RemoteURL key.

21. Open http://localhost/enBank/index.aspx using Internet Explorer. Here in the


URL, ‘enBank’ refers to the virtual directory name. It should invoke the
enBank site.
Steps to Configure IIS for Windows Server 2003

1. IIS 6.0 comes with ASP.NET disabled by default, and followings are the steps
to enable it.
a. Click Start, put your mouse over Control Panel, and click Add/Remove
Programs.

b. Now click Add/Remove Windows Components.

c. Click on "Application Server" and click "Details".

d. In this window, select "ASP.NET" (which will put a checkmark next to it) and
click "OK", then "Next" and "Finish".

e. At this point your ASP.NET pages should work, and we're just going to make
sure that the Web Service Extension is enabled in the IIS Manager. Now, load
IIS from the Administrative tools in the Control Panel by clicking Start ->
Administrative Tools -> IIS Manager (or loading the Control Panel, entering
the Administrative Tools folder, and double clicking IIS Manager).

f. Expand your computer name and click on "Web Service Extensions". Make
sure "ASP.NET" has a checkmark next to it, and that means that it's enabled.

For reference, http://www.visualwin.com/ASP.NET/


2. Copy the contents enBank Web Deploy folder to C:\Inetpub\wwwroot\enBank.
The deploy folder can be copied to other location also but in that case the
folder needs to be mapped to virtual application. To map the virtual
application, the path of the folder needs to be provided while creating
application/virtual directory.

3. Copy enCardServer folder to C:\Inetpub\wwwroot\enCardServer. The


enCardServer folder also can be copied to other location also but in that
case the folder needs to be mapped to the virtual application. To map the
folder to the virtual application, the path of the folder needs to be provided
while creating application/virtual directory.

4. Provide Full Control access to the Users object of enBank and enCardServer
folders.

5. Open IIS (type “inetmgr” in run menu or navigate to Control Panal->


Administrative tool-> Internet Information Services Manager).

6. Application pools are used to provide a single domain to every web site. We
can assign one application pool to many web sites but in that case if one
web site gets corrupted it will affect other web sites also. To create the
application pool go through the following steps:
a. Right click on the Application Pool node under the IIS and click on the
New-> Application Pool.
b. It will take you to “Add New Application Pool” window. If the ID that appears
in Application pool ID box is not the ID that you want, type a new ID.

c. Under Application pool settings, click the appropriate setting. If you click Use
existing application pool as template, in Application pool name box, right-click
the application pool that you want to use as a template.

d. Now click OK to create new application pool.

7. Now go through the following steps to create an application.


a. Open the IIS and go through the ‘web site’ node under local computer. Right
click on web site click on new->web site.

b. It will take you to Web site creation wizard.

c. Now click on next and provide some name under the description field.

d. Click on Next. It will take you to ‘IP Address and Port Settings window’.
Provide the IP Address and port no. for the web site. If no IP address
is provided, web site will run only on local system. No two applications
can have the same port no. so make sure that you provide different
port no. to different applications. If the web sites are mapped to the
same domain controller, we can have the same port no. for web sites.

e. Now click on Next button and it will take you to ‘Web Site Home
Directory’ Window. Here provide the path for the web site folder.

f. Now click on Next and provide permissions for read, write, execute
and run script.
g. Now click on Next to create the application. This will list the application
under the ‘web site’ node.
8. Now to change the application settings right click on the application and go to
the properties. Name, IP Address, Port can be changed under the ‘Web Site’
tab.

9. Click on the Home directory tab to change the application pool.


10. Register the enCard2Server.dll and SoapClient.dll using the command
( regsvr32 “dllname with location”). If the dll registering fails, check for its
dependent DLLs using depends.exe

11. Reset the IIS using the command ‘iisreset’ from the run command or by
directly going to the IIS directory. Now right click the IIS root node and go
for stop and start.

12. Now open the web.config file in the enBank folder.


Change the IP address and CAB file location in the file to your IP address

<add key="enCardServerURL"
value="http://192.168.1.68/enCardServer"/>
<add key="enCardCabURL_XP"
value="http://192.168.1.68/enCardCAB_XP.CAB#version=4,0,0,604"/>
<add key="enCardCabURL_Vista"
value="http://192.168.1.68/enCardCAB_Vista.CAB#version=4,0,0,604"
/>

13. Change the Connection String in the file to show the correct DB.

<add name="SecuraConnString" connectionString="Data


Source=192.168.1.164;Initial Catalog=securalatest;User
ID=sa;Password=aspire123" providerName="System.Data.SqlClient"/>
Here Data Source refers to the server address where database resides.
Catalog refers to the database name. User ID and Password are the
credentials to access the database. The User ID should have read, write and
delete permission.

14. Now open ODBC Data Source Administrator to create a System DSN with the
following credentials.

System DSN - Driver Type: SQL Server


Name: enCardServer (anyname)
SQLServer: ASPIRE340
Choose SQL Server authentication
User Name : sa
Password: aspire123
Default DB : SecuraLatest(latest DB)

15. Test the data source for Successful connection.


16. Copy the Current.esc file to ‘C:\Inetpub\wwwroot\’.
17. Provide Full Control access to the Users object of Current.esc file.
18. Open the file using enCardSvrCfg.exe.
19.Change the file to reflect the DSN connection you created using ODBC.
20.Provide the local IP address under the RemoteURL key.

Open http://localhost/testBank/index.aspx using Internet Explorer. Here in the


URL, ‘testBank’ refers to the application name. It should invoke the TestBank
site.

NOTE: To know the difference between Application and Virtual Directory, please refer to:
http://www.iisworkstation.com/2008/05/difference-between-virtual-directory.html

You might also like