Forum Replies Created
-
AuthorPosts
-
inpelsa
ParticipantCommunicator usually uses very little CPU, but seems it tries to open the serial port too aggressively (through it has a 10 seconds delay)
Any idea to debug this?
inpelsa
ParticipantAt the end the calculated real was not reliable enough…
Once a day data rises above 100 and it doesn’t get the right number, graph is useless with a data point 100 times above the rest.
Maybe it needs a perfect channels sync read or power regulator device updates too fast.
Anyway, it has an easy fix: Cnl>100 ? Cnl/100 : Cnl
inpelsa
Participantnew DLL received, updated and working!
BTW… schemes are working too! good job!
inpelsa
ParticipantThanks, I applied the update. It was not working until I changed this to work:
web.config:
<serviceMetadata httpGetEnabled=”true” httpsGetEnabled=”true” />
to
<serviceMetadata httpGetEnabled=”true” httpsGetEnabled=”false” />This was the error on scadaweb.log:
2016-04-20 21:05:28 <RAPIDSCADA><SYSTEM><EXC> Application error: La propiedad HttpsGetEnabled de ServiceMetadataBehavior está establecida en true y la propiedad HttpsGetUrl es una dirección relativa, pero no hay ninguna dirección base https. Proporcione una dirección base https o establezca HttpsGetUrl en una dirección absoluta.
en System.ServiceModel.Description.ServiceMetadataBehavior.EnsureGetDispatcher(ServiceHostBase host, ServiceMetadataExtension mex, Uri url, String scheme)
en System.ServiceModel.Description.ServiceMetadataBehavior.CreateHttpGetEndpoints(ServiceDescription description, ServiceHostBase host, ServiceMetadataExtension mex)
en System.ServiceModel.Description.ServiceMetadataBehavior.ApplyBehavior(ServiceDescription description, ServiceHostBase host)
en System.ServiceModel.Description.ServiceMetadataBehavior.System.ServiceModel.Description.IServiceBehavior.ApplyDispatchBehavior(ServiceDescription description, ServiceHostBase serviceHostBase)
en System.ServiceModel.Description.DispatcherBuilder.InitializeServiceHost(ServiceDescription description, ServiceHostBase serviceHost)
en System.ServiceModel.ServiceHostBase.InitializeRuntime()
en System.ServiceModel.ServiceHostBase.OnBeginOpen()
en System.ServiceModel.ServiceHostBase.OnOpen(TimeSpan timeout)
en System.ServiceModel.Channels.CommunicationObject.Open(TimeSpan timeout)
en System.ServiceModel.Channels.CommunicationObject.Open()
en System.ServiceModel.ServiceHostingEnvironment.HostingManager.ActivateService(String normalizedVirtualPath)
en System.ServiceModel.ServiceHostingEnvironment.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath)
Page: http://192.168.5.120/Scada/diag/DiagSvc.svc/GetDiagData?cnlNums=1239&startDate=2016-04-20&timeOffset=0.876388900462963I was using “Components for Charting: chart pro” and it has dissapeared, I will try to install it again.
Thanks for all !!!
inpelsa
ParticipantI will change OS, but in the mean time please show the fix even if it doesn’t fix scheme issue.
thanks!
inpelsa
ParticipantBrowser console:
POST http://192.168.5.120/Scada/diag/DiagSvc.svc/GetDiagData
200 OK 1ms
jquery-….min.js (línea 5)
POST results:{“d”:””}
17:41:23 Empty data received. Data service error
diag.js (línea 83)
17:42:23 Request diagram data. TimeOffset = 0.7361111226851851SCADAWEB.LOG:
2016-04-19 17:36:36 <RAPIDSCADA><SYSTEM><EXC> Diagram data service error: HTTP context or it’s properties are undefined.
Nombre del parámetro: contextMany web services can run on Win2003 IIS 6, it’s a pitty win2003 is unsupported but it’s a very old OS so I will plan for an newer OS
inpelsa
ParticipantI need it on the table editor, for the table view. I already created the channel list.
THanks,
inpelsa
ParticipantIts easy, communicator service was not able to retrieve data from any channel because the souece (virtual COM port from a lantronix RS485-Ethernet converter) had no TCP/IP connectivity.
Real channels got no data and nothing is shown on the graph, and you notice it. But the calculated channel reflects 0 and no way to know it was disconnectes.
Should I play with the status part of the channel to reflect the wrong situation??
Thanks in advance!
inpelsa
Participantmmm… no data on source channels = 0 on the new channel
I would like to have the new channel as nothing/null/no data.
Is this possible?
inpelsa
Participantsmall advice: if you try to graph a non existent channel (not in the table editor file) you get the “Insufficient rights” message too.
inpelsa
ParticipantAll done! 🙂
Let’s see how it works…inpelsa
ParticipantI had it on a Win7, but the purpouse was to have it in a server.
If documentation said Win2003 is not supported I would not have moved it.
I can live without it on the initial phase.
inpelsa
ParticipantThis is what I get:
=======================================================
Éste es un servicio de Windows© Communication Foundation.La publicación de metadatos para este servicio está deshabilitada actualmente.
Si tiene acceso al servicio, puede habilitar la publicación de metadatos realizando los siguientes pasos para modificar el archivo de configuración de web o de aplicación:
1. Cree la siguiente configuración de comportamiento de servicio o agregue el elemento <serviceMetadata> a una configuración de comportamiento de servicio existente:
<behaviors>
<serviceBehaviors>
<behavior name=”MyServiceTypeBehaviors” >
<serviceMetadata httpGetEnabled=”true” />
</behavior>
</serviceBehaviors>
</behaviors>2. Agregue la configuración de comportamiento al servicio:
<service name=”MyNamespace.MyServiceType” behaviorConfiguration=”MyServiceTypeBehaviors” >
Nota: el nombre del servicio debe coincidir con el nombre de la configuración para la implementación del servicio.
3. Agregue el siguiente extremo a la configuración del servicio:
<endpoint contract=”IMetadataExchange” binding=”mexHttpBinding” address=”mex” />
Nota: el servicio debe tener una dirección base http para agregar este extremo.
A continuación, se incluye un ejemplo de un archivo de configuración de servicio con la publicación de metadatos habilitada:
<configuration>
<system.serviceModel><services>
<!– Nota: el nombre del servicio debe coincidir con el nombre de la configuración para la implementación del servicio. –>
<service name=”MyNamespace.MyServiceType” behaviorConfiguration=”MyServiceTypeBehaviors” >
<!– Agregue el siguiente extremo. –>
<!– Nota: el servicio debe tener una dirección base http para agregar este extremo. –>
<endpoint contract=”IMetadataExchange” binding=”mexHttpBinding” address=”mex” />
</service>
</services><behaviors>
<serviceBehaviors>
<behavior name=”MyServiceTypeBehaviors” >
<!– Agregue el siguiente elemento a la configuración del comportamiento del servicio. –>
<serviceMetadata httpGetEnabled=”true” />
</behavior>
</serviceBehaviors>
</behaviors></system.serviceModel>
</configuration>Para obtener más información acerca de la publicación de metadatos, consulte la siguiente documentación: http://go.microsoft.com/fwlink/?LinkId=65455 (puede estar en inglés).
=======================================================Seems you are right, do you know the right config for the service?
I do not see anymore the Insufficient rights error.
PS: OK I will not spend my whole life to make it work 🙂
inpelsa
ParticipantAfter adding silverlight MIME types as follows:
http://www.iis.net/learn/web-hosting/web-server-for-shared-hosting/configuring-iis-for-silverlight-applicationsI get this error:
Че удалось загрузить аему. Загрузка…
(Could not load theme. Loading…)So I suppose is not the same problem…
inpelsa
ParticipantProbably not related but I get the same error: Insufficient rights:
Insufficient rights.
Descripción: Excepción no controlada al ejecutar la solicitud Web actual. Revise el seguimiento de la pila para obtener más información acerca del error y dónde se originó en el código.Detalles de la excepción: System.Exception: Insufficient rights.
Error de código fuente:
Se ha generado una excepción no controlada durante la ejecución de la solicitud Web actual. La información sobre el origen y la ubicación de la excepción pueden identificarse utilizando la excepción del seguimiento de la pila siguiente.
Seguimiento de la pila:
[Exception: Insufficient rights.]
Scada.Scheme.Web.scheme.ScadaScheme.Page_Load(Object sender, EventArgs e) +62
System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
System.Web.UI.Control.OnLoad(EventArgs e) +91
System.Web.UI.Control.LoadRecursive() +74
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2207Most probably this error is because is running in a Windows 2003 server (IIS 6 of course) and needs some tweaks to work on it.
any clue if it is related or what can be the problem?
-
AuthorPosts