Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Managed C++/CLI
  4. ChannelFactory create exception

ChannelFactory create exception

Scheduled Pinned Locked Moved Managed C++/CLI
wpfwcfhelpquestion
4 Posts 2 Posters 11 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Moby
    wrote on last edited by
    #1

    Hello everybody, I don't know if I omits something or if I've not correctly understanded something, but I've an Strange exception. This is the code who generates the exception : NetTcpBinding^ binding = gcnew NetTcpBinding(); binding->Name = "IMyWebService"; EndpointAddress^ address = gcnew EndpointAddress("myUrl"); ^> factory = gcnew ChannelFactory(binding, address); Exception System.ArgumentNullException occurs on last line. "All parameter names used in operations that constitute a service contract must be not null. Parameter name : name" Have you any idea why I'm receiving this exception ? Many thanks for your help Best regards,

    Syncerely yours,

    L 1 Reply Last reply
    0
    • M Moby

      Hello everybody, I don't know if I omits something or if I've not correctly understanded something, but I've an Strange exception. This is the code who generates the exception : NetTcpBinding^ binding = gcnew NetTcpBinding(); binding->Name = "IMyWebService"; EndpointAddress^ address = gcnew EndpointAddress("myUrl"); ^> factory = gcnew ChannelFactory(binding, address); Exception System.ArgumentNullException occurs on last line. "All parameter names used in operations that constitute a service contract must be not null. Parameter name : name" Have you any idea why I'm receiving this exception ? Many thanks for your help Best regards,

      Syncerely yours,

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      You need to use the debugger to examine both of the new objects and see exactly which property is causing the exception.

      M 1 Reply Last reply
      0
      • L Lost User

        You need to use the debugger to examine both of the new objects and see exactly which property is causing the exception.

        M Offline
        M Offline
        Moby
        wrote on last edited by
        #3

        Hi, Thanks for your reply. Of course. Objects have been examined but no null name parameter was found. I've tested using configuration file on the Web service to define the service, behavior, ... rather than using code only. But same error. Debugger was checked on both side (client / service). Very strange. Regards,

        Syncerely yours,

        L 1 Reply Last reply
        0
        • M Moby

          Hi, Thanks for your reply. Of course. Objects have been examined but no null name parameter was found. I've tested using configuration file on the Web service to define the service, behavior, ... rather than using code only. But same error. Debugger was checked on both side (client / service). Very strange. Regards,

          Syncerely yours,

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          The error message is quite clear, so there must be a null parameter somewhere. It may well be inside the actual framework, caused by something not being built correctl. And the only way to find it is by going deep in the debugger.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups