8/8/2019 Secura IIS Configuration
1/18
8/8/2019 Secura IIS Configuration
2/18
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.
8/8/2019 Secura IIS Configuration
3/18
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.
8/8/2019 Secura IIS Configuration
4/18
15. Following the same steps create Virtual Directory for the folder enCardServerlisted 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).
8/8/2019 Secura IIS Configuration
5/18
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 bydirectly 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
Here enCardServer is the name of the folder for which we created the virtualdirectory (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.
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 anddelete permission.
20. Now open ODBC Data Source Administrator to create a System DSN with thefollowing credentials.
System DSN - Driver Type: SQL ServerName: enCardServer (anyname)SQLServer: ASPIRE340Choose SQL Server authenticationUser Name : saPassword: aspire123Default 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.
8/8/2019 Secura IIS Configuration
6/18
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 theURL, 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?Test
34. The below message was displayed.
Nc:\inetpub\wwwroot\Current.esc
35. To solve the problem, provide Full Access permission to the Current.esc fileUser object.
http://localhost/enBank/index.aspxhttp://support.microsoft.com/?kbid=267904http://support.microsoft.com/kb/326902http://127.0.0.1/encardserver/encardci.dll?CreateTokenX?%3CenCard%3E%3CIID%3ETest%3C/IID%3E%3C/enCardhttp://127.0.0.1/encardserver/encardci.dll?CreateTokenX?%3CenCard%3E%3CIID%3ETest%3C/IID%3E%3C/enCardhttp://localhost/enBank/index.aspxhttp://support.microsoft.com/?kbid=267904http://support.microsoft.com/kb/326902http://127.0.0.1/encardserver/encardci.dll?CreateTokenX?%3CenCard%3E%3CIID%3ETest%3C/IID%3E%3C/enCardhttp://127.0.0.1/encardserver/encardci.dll?CreateTokenX?%3CenCard%3E%3CIID%3ETest%3C/IID%3E%3C/enCard8/8/2019 Secura IIS Configuration
7/18
8/8/2019 Secura IIS Configuration
8/18
6. Under Default Website, an Application needs to be created. To create theapplication right click on Default Web Sites and click on Add Application.
7. Provide the name, application pool and physical path for your application andclick 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.
8/8/2019 Secura IIS Configuration
9/18
9. In the Turn Windows Features on or off window, set the options as in thefollowing screenshot.
10. Register the enCard2Server.dll and SoapClient.dll using the command
( regsvr32 dllname with location). If the dll registering fails, check for itsdependent 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 gofor 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
13. Change the Connection String in the file to show the correct DB.
Here Data Source refers to the server address where database resides.Catalog refers to the database name. User ID and Password are the
8/8/2019 Secura IIS Configuration
10/18
credentials to access the database. The User ID should have read, write anddelete permission.
14. Now open ODBC Data Source Administrator to create a System DSN with thefollowing credentials.
System DSN - Driver Type: SQL ServerName: enCardServer (anyname)SQLServer: ASPIRE340Choose SQL Server authenticationUser Name : saPassword: aspire123Default 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 theenBank site.
http://localhost/enBank/index.aspxhttp://localhost/enBank/index.aspx8/8/2019 Secura IIS Configuration
11/18
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/RemovePrograms.
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, loadIIS from the Administrative tools in the Control Panel by clicking Start ->Administrative Tools -> IIS Manager (or loading the Control Panel, enteringthe 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 creatingapplication/virtual directory.
3. Copy enCardServer folder to C:\Inetpub\wwwroot\enCardServer. TheenCardServer 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 providedwhile 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 theapplication pool go through the following steps:
a. Right click on the Application Pool node under the IIS and click on the
New-> Application Pool.
http://www.visualwin.com/ASP.NET/http://www.visualwin.com/ASP.NET/8/8/2019 Secura IIS Configuration
12/18
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.
8/8/2019 Secura IIS Configuration
13/18
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.
8/8/2019 Secura IIS Configuration
14/18
Provide the IP Address and port no. for the web site. If no IP addressis provided, web site will run only on local system. No two applications
can have the same port no. so make sure that you provide differentport 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, executeand run script.
8/8/2019 Secura IIS Configuration
15/18
g. Now click on Next to create the application. This will list the application
under the web site node.
8/8/2019 Secura IIS Configuration
16/18
8. Now to change the application settings right click on the application and go tothe 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.
8/8/2019 Secura IIS Configuration
17/18
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 bydirectly 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
13. Change the Connection String in the file to show the correct DB.
Here Data Source refers to the server address where database resides.Catalog refers to the database name. User ID and Password are the
8/8/2019 Secura IIS Configuration
18/18
credentials to access the database. The User ID should have read, write anddelete permission.
14. Now open ODBC Data Source Administrator to create a System DSN with thefollowing credentials.
System DSN - Driver Type: SQL ServerName: enCardServer (anyname)SQLServer: ASPIRE340Choose SQL Server authenticationUser Name : saPassword: aspire123Default 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 TestBanksite.
NOTE: To know the difference between Application and Virtual Directory, please refer to:
http://www.iisworkstation.com/2008/05/difference-between-virtual-directory.html
http://localhost/testBank/index.aspxhttp://www.iisworkstation.com/2008/05/difference-between-virtual-directory.htmlhttp://localhost/testBank/index.aspxhttp://www.iisworkstation.com/2008/05/difference-between-virtual-directory.html