none
WCF end point address and localizations.(Japanese)!! RRS feed

  • 質問

  • Hello,

    I have a WCF based service which exposes several http endpoints, Everything works find when local system locale
    is english. WCF service is self hosting and expose http and net.tcp based endpoints.

    Our setup program dynamically modifies the http and net.tcp endpoint address during setup time
    based on the server name some thing like the following.

    http://servername:4094/Snx/Discovery/v_10

    In japanese system the 'server name' is in japanese and the endpoint address formed is as follows.
    http://名前12:4094/Snx/Discovery/v_10

    Once WCF service is about to start it reads the configu
    ration file and failed with this mixed endpoint address(japanese and english).

    What are the methods i can adopt to solve this issue.

    When we are trying to call the Open() method on the service host object, following exception is thrown by the WCF framework.
    構成システムを初期化できませんでした。((translated as The constitution system could not be initialized??)

    Client channel creation returned the following error
    Cannot create the instance of server on the machine 名前12.
    無効な URI: ホスト名を解析できませんでした。

    Any help is greatly appreciated.

    Thanks,
    Shyam
    2008年9月13日 3:37

回答

  • Hello Vineethk,

     

    Thank you for using this forum!

     

    It seems like the "Invalid URI (無効なURI)" error occurred because the automatically-generated URL of the Japanese system included multi-byte characters. This violates RFC 2396.

     

    If you can make a change to your software, I’d recommend you try name resolution in some way, transforming "名前12" into IP address, and then access the server. For example: http://192.168.1.1:4094/Snx/Discovery/v_10

     

    I hope this helps!

     

     

    Thanks & regards,

     

    ____________________

    Seiji Hattori - Moderator (MSKK)

    • 編集済み 服部清次 2009年7月2日 4:54 Edited my profile.
    2008年10月2日 2:06

すべての返信

  • Hello Vineethk,

     

    Thank you for using this forum!

     

    It seems like the "Invalid URI (無効なURI)" error occurred because the automatically-generated URL of the Japanese system included multi-byte characters. This violates RFC 2396.

     

    If you can make a change to your software, I’d recommend you try name resolution in some way, transforming "名前12" into IP address, and then access the server. For example: http://192.168.1.1:4094/Snx/Discovery/v_10

     

    I hope this helps!

     

     

    Thanks & regards,

     

    ____________________

    Seiji Hattori - Moderator (MSKK)

    • 編集済み 服部清次 2009年7月2日 4:54 Edited my profile.
    2008年10月2日 2:06
  • Hello Vineethk,

     

    It’s been a little while since you submitted this post. I’m a little concerned if your WCF service is working properly as expected, but please allow me to mark my previous post as an answer. I’ve decided to do so because I’d like other forum participants to make use of the information discussed in this thread. I also found the same question you posted onto the English MSDN Forum has been answered. Please refer to:

    http://social.msdn.microsoft.com/forums/en-US/wcf/thread/4720b9ad-8049-4717-b1d2-eb62f9b135e1/ 

     

    If you’d still like to continue your question/discussion, please feel free to unmark my post and make a reply. Again, thank you for using this forum!

     

     

    Thanks & regards,

     

    ____________________

     

    Seiji Hattori - Moderator (MSKK)

    • 編集済み 服部清次 2009年7月2日 4:52 Editted my profile.
    2008年11月4日 6:04