Technical FAQs

Ask a Question

StruxureWare Power Monitoring Expert 7 webpage error "Server Error in '/Web' Application" when attempting to open page.

Issue




Server Error in '/Web' Application.

No connection could be made because the target machine actively refused it xxx.xxx.xxx.xxx:xxxxx
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it 10.172.58.112:23102

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


Stack Trace:

[SocketException (0x274d): No connection could be made because the target machine actively refused it 10.172.58.112:23102]
System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress) +251
System.Net.ServicePoint.ConnectSocketInternal(Boolean connectFailure, Socket s4, Socket s6, Socket& socket, IPAddress& address, ConnectSocketState state, IAsyncResult asyncResult, Int32 timeout, Exception& exception) +279

[WebException: Unable to connect to the remote server]
System.Net.HttpWebRequest.GetRequestStream(TransportContext& context) +6100429
System.Net.HttpWebRequest.GetRequestStream() +13
System.ServiceModel.Channels.WebRequestHttpOutput.GetOutputStream() +59

[EndpointNotFoundException: There was no endpoint listening at http://2ua15106q6:23102/CoreServicesHost/Inventory/InventoryService that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.]
System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) +9439503
System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) +345
SchneiderElectric.Framework.Interfaces.Inventory.IServiceInventory.GetServicesInSystem() +0
SchneiderElectric.Framework.Common.ClientServices.ServiceInventoryLoader.GetInventoryFromWebService(String endpointAddress) +75
SchneiderElectric.Framework.Common.ClientServices.ServiceInventoryLoader.Load(AppDomain appDomain) +68
SchneiderElectric.UI.ApplicationFramework.Web.Global.Application_Start(Object sender, EventArgs e) +15

[HttpException (0x80004005): There was no endpoint listening at http://2ua15106q6:23102/CoreServicesHost/Inventory/InventoryService that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.]
System.Web.HttpApplicationFactory.EnsureAppStartCalledForIntegratedMode(HttpContext context, HttpApplication app) +9171885
System.Web.HttpApplication.RegisterEventSubscriptionsWithIIS(IntPtr appContext, HttpContext context, MethodInfo[] handlers) +131
System.Web.HttpApplication.InitSpecial(HttpApplicationState state, MethodInfo[] handlers, IntPtr appContext, HttpContext context) +194
System.Web.HttpApplicationFactory.GetSpecialApplicationInstance(IntPtr appContext, HttpContext context) +339
System.Web.Hosting.PipelineRuntime.InitializeApplication(IntPtr appContext) +253

[HttpException (0x80004005): There was no endpoint listening at http://2ua15106q6:23102/CoreServicesHost/Inventory/InventoryService that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +9090988
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +97
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +256

Product Line
Struxtureware Power Monitoring 7.0/7.01
Power Monitoring Expert 7.2/7.2.1/7.2.2/Health Care/Data Center Editions

Environment
Web Applications

Causes

Cause 1

This can be caused when the 3 Schneider Electric services are not running.

Cause 2

Another possible cause of this error message is that the SQL user "AMUser" is not assigned the appropriate password.

Cause 3

Make sure the Application Module database has the proper user mappings and permissions.

Resolutions

Resolution 1

Ensure that the 3 Schneider Electric Services are running:



Resolution 2

*Warning: Take backups of any files prior to modifying them. Ensure the backups are in a location that will not be overwritten (i.e. the Desktop).  


Open the below files in notepad and do a search for AMUser.
Verify that the assigned password for AMUser is the same in all files. Open up SQL Management Studio and assign the AMUser password from the .config files to the AMUser account in SQL.

For SPM7/SPM7.0.1 Systems:

...\Schneider Electric\ION Enterprise\Applications\AMSecurityTokenService\Web.config
...\Schneider Electric\ION Enterprise\Applications\ApplicationFramework\Web.config
...\Schneider Electric\ION Enterprise\Applications\bin\Framework.ServiceHost.exe.config

For PME7.2/PME4HC7.2/PME4DC7.2:

...\Power Monitoring Expert\Applications\ApplicationFramework\Web.config
...\Power Monitoring Expert\Applications\HierarchyManager\Web.config
...\Power Monitoring Expert\Applications\SystemDataService\Web.config
...\Power Monitoring Expert\system\ReportDataService\Web.config 
...\Power Monitoring Expert\Applications\bin\Framework.ServiceHost.exe.config

Resolution 3

*Warning: Irreparable database damage can occur. This procedure should only be performed by users familiar with SQL Server Management Studio. Databases should be backed up prior to performing this procedure.


Ensure that AMUser is mapped to the application modules database with the database roles as shown below



Legacy KB System (APS) Data: RESL211060 V3.0, Originally authored by MaTh on 03/27/2013, Last Edited by DaWa on 12/29/2013
Related ranges: Power Monitoring Expert 7
Was this helpful?
What can we do to improve the information ?