i4SCADA Knowledge Base

i4SCADA Application Template connect method call failure

Abstract

Learn how to overcome the connect method failure that you may encounter while using the i4SCADA Application Template.

The users of the i4SCADA Application Template that do not update to the latest version of the Application Template for version 3.8.4, must make a small change to avoid the connect method call from failing.

  1. Open Visual Studio with Administrative privileges. To do so, right-click on the Visual Studio icon and select Run as Administrator. This is required in order to ensure that the access to Internet Information Services (IIS) configuration is granted.

  2. In Visual Studio open a new Project using File > New > Project.

  3. In the New project dialog, search for the WEBfactory i4SCADA Application template or locate it under the left-side menu in Visual C# .

    i4SCADA_App_Template.jpg
  4. The new project is opened. In the Solution Explorer open the securityServiceApi.ts node, through the path: App > src > services > api .

    Sol_Explorer.jpg
  5. Find the following line:

    return this.post<SessionDTO>("SignalsService", "Connect", null);
    
    line.jpg
  6. Update the line to:

    return this.post<SessionDTO>("SignalsService", "Connect", { });
    updated_line.jpg
  7. To preserve the changes, use the toolbar button Save  or the keyboard shortcut Ctrl + S.