Søg i ofte stillede spørgsmål
Power Monitoring Expert - JavaScript not fully enabled Error
Issue
When navigating to the Power Monitoring Expert Web Applications, the login field does not display and the following error is shown:
"The login cannot proceed because JavaScript is not fully enabled in the browser. Enable Javascript and try starting the Web Applications again."
Product Line
Power Monitoring Expert 9.0
Power Monitoring Expert 2020
Power Monitoring Expert 2021
Power Monitoring Expert 2022
Power Monitoring Expert 2023
Environment
Web Applications (Chrome and Edge)
Cause 1
When you go to a site that uses HTTPS, the website's server uses a certificate to prove the website's identity. The certificate issued by a CA (Certificate Authority) must be "Issued to" the FQDN (Fully Qualified Domain Name) of the PME server. A misconfiguration of the https binding in IIS can cause a JavaScript error. (Note that by default, PME installs a Self Signed Certificate which causes a warning message in the browser.)
Cause 2
You see the following error message in the ApplicationModules Diagnostics.
"A problem occurred on page ' https://mypmeserver.mydomain.com/SystemDataService/sharedcontent/map': Could not load file or assembly 'WebGrease, Version=1.5.2.14234, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)"
Cause 3
The Microsoft IIS add-on called URL Rewrite is enabled. This add-on transforms any HTTP webpages to HTTPS, however, because PME natively supports HTTPS already, enabling this add-on will cause the "javascript is not fully enabled" error.
Cause 4
The SCHANNEL configuration is not compatible with PME. The tell-tale sign of this will be SCHANNEL errors in the Windows System log.
The resolution requires the user to have the following:
Resolution 1
In order for the Web Applications to work, the PME databases Application Modules and ION_Network need to be updated with the fully qualified domain name.
Use the following link for steps on, How to Configure PME for server certificates (schneider-electric.com)
Resolution 2
(ONLY if the issue explained in cause 2 is observed)
Replace all instances of the string "1.5.2.14234" with "1.6.5135.21930" in all the web.config files.
C:\Program Files (x86)\Schneider Electric\Power Monitoring Expert\applications\AlarmConfiguration\Web.config (2 hits)
C:\Program Files (x86)\Schneider Electric\Power Monitoring Expert\applications\Alarms\Web.config (2 hits)
C:\Program Files (x86)\Schneider Electric\Power Monitoring Expert\applications\ApplicationFramework\Web.config (2 hits)
C:\Program Files (x86)\Schneider Electric\Power Monitoring Expert\applications\Dashboards\Web.config (2 hits)
C:\Program Files (x86)\Schneider Electric\Power Monitoring Expert\applications\Diagrams\Web.config (2 hits)
C:\Program Files (x86)\Schneider Electric\Power Monitoring Expert\applications\HierarchyManager\web.config (2 hits)
C:\Program Files (x86)\Schneider Electric\Power Monitoring Expert\applications\HierarchyManager\web.config.TestAuto (2 hits)
C:\Program Files (x86)\Schneider Electric\Power Monitoring Expert\applications\ModelingConfig\Web.config (2 hits)
C:\Program Files (x86)\Schneider Electric\Power Monitoring Expert\applications\Slideshow\Web.config (2 hits)
C:\Program Files (x86)\Schneider Electric\Power Monitoring Expert\applications\SystemDataService\Web.config (2 hits)
C:\Program Files (x86)\Schneider Electric\Power Monitoring Expert\applications\Teams\Web.config (2 hits)
C:\Program Files (x86)\Schneider Electric\Power Monitoring Expert\applications\Trends\Web.config (2 hits)
C:\Program Files (x86)\Schneider Electric\Power Monitoring Expert\system\WebReach\Web.config (2 hits)
C:\Program Files (x86)\Schneider Electric\Power Monitoring Expert\web\Web.config (2 hits)
Restart the four ION Application Modules services and restart IIS.
If this does not resolve all issues, a reconfiguration of the system is recommended if it has not been done yet.
Resolution 3
If URL Rewrite is enabled, it must be disabled on the default website and all PME virtual roots.
Resolution 4
*Warning: Improper changes to the registry can permanently damage the operating system. Always back up the registry before making any changes.*
To resolve SCHANNEL errors in the Windows System Log, first inspect the errors for important clues. Look for keywords such as "ciphers" or "hashes". Using the Regedit utility, navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL. Using the hints from the errors, investigate the registry keys in this location to see if the server might be locked down beyond what PME can support.
Resolution 5
Configuring HTTPS binding with a CA-issued certificate.
1. Open Internet Information Services (IIS) Manager on the PME server.
2. In the Connections pane (left pane) expand server name > Sites > Default Web Site. Right-click Default Web Site and select Edit Bindings... from the context menu.
3. In the Site Bindings dialog Edit the HTTPS binding
4. Set "Hostname" to the name shown in the "Issued To" property of the CA-issued certificate.
5. Set "SSL certificate" by choosing the CA-issued certificate from the dropdown.
Resolution 6
1. Open Internet Information Services (IIS) Manager on the PME server.
2. In the Connections pane (left pane) expand server name > Sites > Default WebSite
3. Go to SSL Settings and uncheck the box " SSL Required"
4. Open up the Command Prompt as administrator and run iisreset
When navigating to the Power Monitoring Expert Web Applications, the login field does not display and the following error is shown:
"The login cannot proceed because JavaScript is not fully enabled in the browser. Enable Javascript and try starting the Web Applications again."
Product Line
Power Monitoring Expert 9.0
Power Monitoring Expert 2020
Power Monitoring Expert 2021
Power Monitoring Expert 2022
Power Monitoring Expert 2023
Environment
Web Applications (Chrome and Edge)
Cause 1
When you go to a site that uses HTTPS, the website's server uses a certificate to prove the website's identity. The certificate issued by a CA (Certificate Authority) must be "Issued to" the FQDN (Fully Qualified Domain Name) of the PME server. A misconfiguration of the https binding in IIS can cause a JavaScript error. (Note that by default, PME installs a Self Signed Certificate which causes a warning message in the browser.)
Cause 2
You see the following error message in the ApplicationModules Diagnostics.
"A problem occurred on page ' https://mypmeserver.mydomain.com/SystemDataService/sharedcontent/map': Could not load file or assembly 'WebGrease, Version=1.5.2.14234, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)"
Cause 3
The Microsoft IIS add-on called URL Rewrite is enabled. This add-on transforms any HTTP webpages to HTTPS, however, because PME natively supports HTTPS already, enabling this add-on will cause the "javascript is not fully enabled" error.
Cause 4
The SCHANNEL configuration is not compatible with PME. The tell-tale sign of this will be SCHANNEL errors in the Windows System log.
The resolution requires the user to have the following:
- Local Administrator rights to the PME application server
- Sys Admin (sa) rights to the SQL database server
Resolution 1
In order for the Web Applications to work, the PME databases Application Modules and ION_Network need to be updated with the fully qualified domain name.
Use the following link for steps on, How to Configure PME for server certificates (schneider-electric.com)
Resolution 2
(ONLY if the issue explained in cause 2 is observed)
Replace all instances of the string "1.5.2.14234" with "1.6.5135.21930" in all the web.config files.
C:\Program Files (x86)\Schneider Electric\Power Monitoring Expert\applications\AlarmConfiguration\Web.config (2 hits)
C:\Program Files (x86)\Schneider Electric\Power Monitoring Expert\applications\Alarms\Web.config (2 hits)
C:\Program Files (x86)\Schneider Electric\Power Monitoring Expert\applications\ApplicationFramework\Web.config (2 hits)
C:\Program Files (x86)\Schneider Electric\Power Monitoring Expert\applications\Dashboards\Web.config (2 hits)
C:\Program Files (x86)\Schneider Electric\Power Monitoring Expert\applications\Diagrams\Web.config (2 hits)
C:\Program Files (x86)\Schneider Electric\Power Monitoring Expert\applications\HierarchyManager\web.config (2 hits)
C:\Program Files (x86)\Schneider Electric\Power Monitoring Expert\applications\HierarchyManager\web.config.TestAuto (2 hits)
C:\Program Files (x86)\Schneider Electric\Power Monitoring Expert\applications\ModelingConfig\Web.config (2 hits)
C:\Program Files (x86)\Schneider Electric\Power Monitoring Expert\applications\Slideshow\Web.config (2 hits)
C:\Program Files (x86)\Schneider Electric\Power Monitoring Expert\applications\SystemDataService\Web.config (2 hits)
C:\Program Files (x86)\Schneider Electric\Power Monitoring Expert\applications\Teams\Web.config (2 hits)
C:\Program Files (x86)\Schneider Electric\Power Monitoring Expert\applications\Trends\Web.config (2 hits)
C:\Program Files (x86)\Schneider Electric\Power Monitoring Expert\system\WebReach\Web.config (2 hits)
C:\Program Files (x86)\Schneider Electric\Power Monitoring Expert\web\Web.config (2 hits)
Restart the four ION Application Modules services and restart IIS.
If this does not resolve all issues, a reconfiguration of the system is recommended if it has not been done yet.
Resolution 3
If URL Rewrite is enabled, it must be disabled on the default website and all PME virtual roots.
Resolution 4
*Warning: Improper changes to the registry can permanently damage the operating system. Always back up the registry before making any changes.*
To resolve SCHANNEL errors in the Windows System Log, first inspect the errors for important clues. Look for keywords such as "ciphers" or "hashes". Using the Regedit utility, navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL. Using the hints from the errors, investigate the registry keys in this location to see if the server might be locked down beyond what PME can support.
Resolution 5
Configuring HTTPS binding with a CA-issued certificate.
1. Open Internet Information Services (IIS) Manager on the PME server.
2. In the Connections pane (left pane) expand server name > Sites > Default Web Site. Right-click Default Web Site and select Edit Bindings... from the context menu.
3. In the Site Bindings dialog Edit the HTTPS binding
4. Set "Hostname" to the name shown in the "Issued To" property of the CA-issued certificate.
5. Set "SSL certificate" by choosing the CA-issued certificate from the dropdown.
Resolution 6
1. Open Internet Information Services (IIS) Manager on the PME server.
2. In the Connections pane (left pane) expand server name > Sites > Default WebSite
3. Go to SSL Settings and uncheck the box " SSL Required"
4. Open up the Command Prompt as administrator and run iisreset