Technical FAQs

Ask a Question

How to Create New Virtual Directory in IIS to host a specific Vista diagram

A user would like to make only specific diagrams available to a specific user groups over the web and this feature is not currently available in PME.
Product Line
Power Monitoring Expert (PME) 7.2.x/8.x
Power Monitoring Expert Web Diagrams
The user will need to create a new Virtual Directory to host the specified diagram.
1) Open the IIS Manager and navigate to "Sites->Default Web Site->ION" then Right-Click on the ION Virtual Directory and Select Explore. Make note of the file path of this virtual directory. (ie. ...\Schneider Electric\Power Monitoring Expert\system\Webreach)

2) Navigate to the parent directory, copy the Webreach folder, and paste it into the same location with a custom name. (ie. Webreach2)

3) Create a new application in the IIS Default Web site with a custom name (ie. TEST).
To create the new application, right-click on Default Websites and select "Add Application". Set the new application to use the "ION AppPool" application pool and link the "Physical Path" to the custom Webreach folder created in Step 2 (Webreach2).

3) Right click on the new Virtual Directory (TEST), and Select Add Application. Input 'diagrams' in Alias field, set the Application Pool to "ION AppPool", then select the physical path of the "...\Schneider Electric\Power Monitoring Expert\config\diagrams" folder.

4) Navigate to the directory of the new IIS Virtual directory created in step 2 (ie. Webreach2) and open the web.config file for editing.

Locate the following highlighted section in the web.config file:

Edit this highlighted section to read as follows:

httpProtocol is replaced with defaultDocument
customerHeaders is replaced with files
remove value and add value clauses are added

           <modules runAllManagedModulesForAllRequests="true"/>
                           <remove value="Default.htm" />
                           <remove value="Default.asp" />
                           <remove value="index.htm" />
                           <remove value="index.html" />
                           <remove value="iisstart.htm" />
                           <remove value="default.aspx" />
                           <add value="default.aspx?dgm=//
COMPNAME/ION-ENT/config/diagrams/ud/test.dgm" />

COMPNAME will need to be replaced with the Computer Name of the Power Monitoring Expert machine.
test.dgm is the name and file extension of the Vista diagram in the ud directory that will be displayed when the new virtual directory is accessed.

After saving these changes, if a user launches the url http://COMPNAME/TEST on the Power Monitoring Expert server or another server on the network with access to port 80 on the PME server the Vista diagram test.dgm will be displayed.

When the user attempts to launch this virtual directory they will be prompted for PME user credentials. If you wish to remove the user authentication from this new virtual directory please make the following edit in the WebReach2 web.config file.

Locate the text string  <deny users="?" /> and change this to <allow users="*" />

This update will allow access to the new virtual directory without prompting users for login credentials.

Was this helpful?
What can we do to improve the information ?