create new type Static Link

Forum Home Forums Development and Integration create new type Static Link

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1338

    hi

    i try to make new type(staticLink) in the scadaSchemeEditor so i make new type in
    SchemeView.Types
    SchemeView
    and
    ScadaSchemeSvc
    but after compile code and run the program i get the exeption
    WCF service error: The formatter threw an exception while trying to deserialize the message: There was an error while trying to deserialize parameter http://tempuri.org/:schemeChange. The InnerException message was ‘Invalid enum value ‘staticLink’ cannot be deserialized into type ‘Scada.Scheme.ScadaSchemeSvc.SchemeViewElementTypes’. Ensure that the necessary enum values are present and are marked with EnumMemberAttribute attribute if the type has DataContractAttribute attribute.’. Please see InnerException for more details.
    i trace the program i i find in the line
    editorData.SchemeChange = change;
    in the file ScadaSchemeSvc.svc in scadaSchemeCommon
    it get throw exeption
    what can i do for that and what was it made.
    thanks for your help

    #1342
    Mikhail
    Moderator

    Hi,

    It’s difficult to answer without debugging. I assume that web service autogenerated code must be updated using VS.

    The core of schemes will be significantly redesigned this year. It may cause double work for you. The prototype of the new web app is here http://demo.rapidscada.net
    Login and password are admin/12345

    It is planned to support 3rd party controls to allow developers creating their own components, but API hasn’t been developed yet.

    #1343

    thanks for your answers
    but i can not understand the problem
    i try to change the action command and add new action type but the same problem seen.
    WCF service error: The formatter threw an exception while trying to deserialize the message: There was an error while trying to deserialize parameter http://tempuri.org/:schemeChange. The InnerException message was ‘Invalid enum value ‘OpenLink’ cannot be deserialized into type ‘Scada.Scheme.ScadaSchemeSvc.SchemeViewAction’. Ensure that the necessary enum values are present and are marked with EnumMemberAttribute attribute if the type has DataContractAttribute attribute.’. Please see InnerException for more details.
    i check the new schemaweb but the core library completely diffrent from the current version.
    it will be the please to help solving the problem

    #1344
    Mikhail
    Moderator

    Go to SchemeViewAction class defenition in ScadaScheme silverlight project (by pressing F12). It’s in the file Reference.cs that is “generated by a tool.” You have to right click ScadaSchemeSvc in solution explorer and update service reference. You need the value “OpenLink” be added to the service reference class defenition.

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