Win32Exception when using Process.Start() with URL with non-english characters

The following code is throwing a Win32Exception with the message "No application is associated with the specified file for this operation:"

Process.Start("http:// hello");

Is this a feature/bug of .NET Or is something wrong somewhere else in my code


Answer this question

Win32Exception when using Process.Start() with URL with non-english characters

  • Maeestro

    Hi,

    this is not valid parameter.

    If you want to open some url with HTTP then you may need to start the process IE giving this URL as parameter to IE.

    HTH,



  • USJOHN

    That is not a valid URL. URLs can only use ASCII character codes 0x20 through 0x7F. Character codes outside that range (0x01-0x1F, 0x80-0xFF) need to be escaped with "%". I'm not sure how codes beyond 0xFF are handled...


  • Win32Exception when using Process.Start() with URL with non-english characters