Installing the Sample Web Application
- Phillip Hanegan
Owned by Phillip Hanegan
Feb 29, 2024
3 min read
Loading data...
This topic describes how to install the AndysBeans .NET Web application used for evaluating EmpowerID Web Access Management.
To update the Connection String for your data source
- Locate the AndysBeans.zip file you received from EmpowerID and extract it to a folder on your Web server.
- From the folder where you extracted AndysBeans, locate the Web.config file.
- Open the Web.config file with any text editor and locate the connectionStrings section.
Replace the default value for connectionString with the value for your environment. The format for the string is as follows, where "YourSQLServer" is the name or IP address of the SQL Server in your environment.
<add name="AndysBeans2Db" connectionString="Data Source=YourSQLServer;Initial Catalog=AndysBeans2Db;Integrated Security=True" providerName="System.Data.SqlClient" />
"AndysBeans2Db" is the actual name of the database used with the Web application, so your updated connectionString needs to keep this as the Initial Catalog.
Your updated connection string looks similar to this:- Next, locate the entitityFramework section in the Web.config file and change the parameter value so that the Data Source points to your SQL Server. This value is the same as that set in the connectionString above. The edited value looks similar to this image.
Next, we need to create the database for the sample Web application.
To create the AndysBeans2Db database
- From the folder where you extracted AndysBeans, locate the ab2008r2script.sql file. This file is used to create the AndysBeans2Db on your SQL Server.
- From SQL Server Management Studio (SSMS), open the ab2008r2script.sql file.
- In SSMS, change the paths for the database and the database log to a location on your SQL Server.
- In SSMS, click Execute to create the AndysBeans2Db database and database log.
AndysBeans2Db appears in SSMS as a database. - In SSMS, map a login to the AndysBeans2Db database with db_owner rights. This login is used as the application pool identity for the AndysBeans Web site.
To create an application pool for the Web application
- From IIS Manager, create a new .NET Framework v4.0.30319 application pool named AndysBeans.
- Right-click on the AndysBeans application pool and select Advanced Settings from the context menu. This allows you to change the identity running the application pool.
- In the Advanced Settings grid that opens, locate the Identity property and click the ellipses (...) button to the right of it.
- In the Application Pool Identity dialog that opens, click the Custom account radio button and then click the Set button.
- In the Set Credentials dialog that opens, type the credentials for the login with db_owner rights to the AndysBeans2Db database and click OK.
- Click OK to close the Application Pool Identity dialog.
- Click OK to close the Advanced Settings grid.
Next, we need to create a Web site for the Web application.
To create a Web site for the Web application
- From IIS Manager, expand the Sites node, right-click on Default Web Site, and select Add Application from the context menu.
- From the Add Application dialog that opens, click the Select button to open the Select Application Pool dialog.
- In the Select Application Pool dialog that opens, select the AndysBeans application pool from the Application Pool drop-down and click OK.
- Back in the Add Application dialog, type AndysBeans into the Alias field and then click the ellipses (...) button to the right of the Physical path field.
- In the Browse For Folder dialog that opens, browse to and select the AndysBeans folder and click OK.
- Click OK to close the Add Application dialog.
AndyBeans appears as a new application under Default Web Site. - From your Web browser, navigate to the FQDN of your Web server appended with andysbeans, as in "sso.empowersso.com/andysbeans" or "localhost/andysbeans." The home page for the sample Web application opens.
On this page