ScadaScheme can't run

Forum Home Forums Development and Integration ScadaScheme can't run

Viewing 15 posts - 1 through 15 (of 25 total)
  • Author
    Posts
  • #840
    Wan
    Participant

    source code (ScadaScheme.sln) I can’t run it.
    Error is :Не удалось загрузить схему
    maybe I can’t run it directly??
    Executive the source code have sequence??

    #841
    MikhailMikhail
    Moderator

    Open ScadaSchemeWeb project properties, go to web tab and change viewSet as below
    scheme/ScadaScheme.aspx?viewSet=0&view=1

    #842
    MikhailMikhail
    Moderator

    The new scheme engine is under construction. Don’t waste much time by improving the existing scheme project.

    #881
    Wan
    Participant

    Thank you for you.
    can I Suggest your new scheme Functions?

    #882
    Wan
    Participant

    I changed my viewSet as below scheme/ScadaScheme.aspx?viewSet=0&view=1.
    but also error

    “Error is :Не удалось загрузить схему”

    My original viewSet is “scheme/ScadaScheme.aspx?viewSet=3&view=1”

    Thanks for the hard work

    #883
    MikhailMikhail
    Moderator

    can I Suggest your new scheme Functions?

    Of course.

    #884
    MikhailMikhail
    Moderator

    Is SCADA-Server running when you try to start debugging?
    May be there are some useful information in ScadaScheme.log and ScadaWeb.log in your sources log subfolder?
    Also look for additional information into C:\SCADA\ScadaServer\Log\ScadaServerSvc.log

    #887
    Wan
    Participant

    ScadaScheme.log “<ERR> Unable to load scheme because user is not logged on. Host: ::1”

    I don’t know Sequence of operations

    #888
    MikhailMikhail
    Moderator

    I added some changes in development branch: https://github.com/RapidScada/scada/blob/develop/ScadaScheme/ScadaSchemeWeb/scheme/ScadaScheme.aspx.cs

    You should uncomment #define DEBUG_MODE
    If you work with master branch, you can copy the changes to you local copy of sources.

    #889
    Wan
    Participant

    if (!userData.LoggedOn)
    throw new Exception(CommonPhrases.NoRights);

    Error:Insufficient rights.

    #890
    MikhailMikhail
    Moderator

    When you uncomment #define DEBUG_MODE the following code works:

    userData.Login("admin", "12345", out errMsg);
    

    And user become logged on. SCADA-Server service must be running.

    #891
    Wan
    Participant

    yes, I do it.
    But also have this error
    Error:Insufficient rights.
    ——————————-

    public partial class ScadaScheme : System.Web.UI.Page
    {
    protected void Page_Load(object sender, EventArgs e)
    {
    // получение данных пользователя
    UserData userData = UserData.GetUserData();

    // вход в систему для отладки приложения
    if (!userData.LoggedOn)
    {
    string errMsg;
    userData.Login(“admin”, “12345”, out errMsg);
    }

    // проверка входа в систему
    if (!userData.LoggedOn)
    throw new Exception(CommonPhrases.NoRights);

    // инициализировать данные приложения SCADA-Схема
    SchemeApp.InitSchemeApp(SchemeApp.WorkModes.Monitor);
    }
    }

    #892
    MikhailMikhail
    Moderator

    It’s strange. You should debug and understand the details.

    #893
    Wan
    Participant

    <ERR> Unsuccessful login attempt: admin – server communication settings is not loaded??

    #894
    Wan
    Participant

    My SCADA-Server service and Server-Communicator are running.

Viewing 15 posts - 1 through 15 (of 25 total)
  • You must be logged in to reply to this topic.