SSL on a non-Standard HTTPS port

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Bill W.

    #1

    SSL on a non-Standard HTTPS port

    I have a VB.NET application that needs to make a web request using the https
    protocol, but not on the standard https port. It works fine on the standard
    https port, but as soon as the uri becomes "https://mywebsite.com:5 004/" the
    application errors out when the request stream is closed. Error "Cannot
    access a disposed object - System.Net.TLSS tream".

    Any one have a solution or work around?
    Thanks.
  • Alex

    #2
    Re: SSL on a non-Standard HTTPS port

    Hi Bill,

    did try to set the Uri.Port?

    Dim baseUri As New Uri("https://mywebsite.com/")
    baseUri.Port = 5004

    Alex
    http://www.DotNet42.com - The Answer to Your .NET Question


    "Bill W." <BillW@discussi ons.microsoft.c om> wrote in message news:12BE09DE-B2FB-43A2-A2D8-926186CA80FD@mi crosoft.com...[color=blue]
    > I have a VB.NET application that needs to make a web request using the https
    > protocol, but not on the standard https port. It works fine on the standard
    > https port, but as soon as the uri becomes "https://mywebsite.com:5 004/" the
    > application errors out when the request stream is closed. Error "Cannot
    > access a disposed object - System.Net.TLSS tream".
    >
    > Any one have a solution or work around?
    > Thanks.[/color]

    Comment

    • Bill W.

      #3
      Re: SSL on a non-Standard HTTPS port

      Uri.Port is readonly.

      "Alex" wrote:
      [color=blue]
      > Hi Bill,
      >
      > did try to set the Uri.Port?
      >
      > Dim baseUri As New Uri("https://mywebsite.com/")
      > baseUri.Port = 5004
      >
      > Alex
      > http://www.DotNet42.com - The Answer to Your .NET Question
      >
      >
      > "Bill W." <BillW@discussi ons.microsoft.c om> wrote in message news:12BE09DE-B2FB-43A2-A2D8-926186CA80FD@mi crosoft.com...[color=green]
      > > I have a VB.NET application that needs to make a web request using the https
      > > protocol, but not on the standard https port. It works fine on the standard
      > > https port, but as soon as the uri becomes "https://mywebsite.com:5 004/" the
      > > application errors out when the request stream is closed. Error "Cannot
      > > access a disposed object - System.Net.TLSS tream".
      > >
      > > Any one have a solution or work around?
      > > Thanks[/color][/color]

      Comment

      Working...