Forum Home › Forums › Development and Integration › ScadaScheme can't run
- This topic has 24 replies, 3 voices, and was last updated 8 years ago by inpelsa.
-
AuthorPosts
-
March 4, 2016 at 8:48 am #840WanParticipant
source code (ScadaScheme.sln) I can’t run it.
Error is :Не удалось загрузить схему
maybe I can’t run it directly??
Executive the source code have sequence??March 4, 2016 at 12:03 pm #841MikhailModeratorOpen ScadaSchemeWeb project properties, go to web tab and change viewSet as below
scheme/ScadaScheme.aspx?viewSet=0&view=1March 4, 2016 at 12:06 pm #842MikhailModeratorThe new scheme engine is under construction. Don’t waste much time by improving the existing scheme project.
March 8, 2016 at 3:22 am #881WanParticipantThank you for you.
can I Suggest your new scheme Functions?March 8, 2016 at 3:38 am #882WanParticipantI 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
March 8, 2016 at 1:49 pm #883MikhailModeratorcan I Suggest your new scheme Functions?
Of course.
March 8, 2016 at 1:55 pm #884MikhailModeratorIs 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.logMarch 9, 2016 at 1:44 am #887WanParticipantScadaScheme.log “<ERR> Unable to load scheme because user is not logged on. Host: ::1”
I don’t know Sequence of operations
March 9, 2016 at 6:31 am #888MikhailModeratorI 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.March 9, 2016 at 8:13 am #889WanParticipantif (!userData.LoggedOn)
throw new Exception(CommonPhrases.NoRights);Error:Insufficient rights.
March 9, 2016 at 10:16 am #890MikhailModeratorWhen 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.
March 9, 2016 at 10:25 am #891WanParticipantyes, 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);
}
}March 9, 2016 at 11:48 am #892MikhailModeratorIt’s strange. You should debug and understand the details.
March 10, 2016 at 1:27 am #893WanParticipant<ERR> Unsuccessful login attempt: admin – server communication settings is not loaded??
March 10, 2016 at 3:10 am #894WanParticipantMy SCADA-Server service and Server-Communicator are running.
-
AuthorPosts
- You must be logged in to reply to this topic.