473,394 Members | 1,960 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

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:5004/" the
application errors out when the request stream is closed. Error "Cannot
access a disposed object - System.Net.TLSStream".

Any one have a solution or work around?
Thanks.
Nov 21 '05 #1
2 1341
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." <Bi***@discussions.microsoft.com> wrote in message news:12**********************************@microsof t.com...
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:5004/" the
application errors out when the request stream is closed. Error "Cannot
access a disposed object - System.Net.TLSStream".

Any one have a solution or work around?
Thanks.

Nov 21 '05 #2
Uri.Port is readonly.

"Alex" wrote:
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." <Bi***@discussions.microsoft.com> wrote in message news:12**********************************@microsof t.com...
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:5004/" the
application errors out when the request stream is closed. Error "Cannot
access a disposed object - System.Net.TLSStream".

Any one have a solution or work around?
Thanks

Nov 21 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: lothar | last post by:
re: 4.2.1 Regular Expression Syntax http://docs.python.org/lib/re-syntax.html *?, +?, ?? Adding "?" after the qualifier makes it perform the match in non-greedy or minimal fashion; as few...
17
by: cheeser | last post by:
Hello all, Please see the question in the code below... Thanks! Dave #include <iostream>
5
by: klaus triendl | last post by:
hi, recently i discovered a memory leak in our code; after some investigation i could reduce it to the following problem: return objects of functions are handled as temporary objects, hence...
25
by: Yves Glodt | last post by:
Hello, if I do this: for row in sqlsth: ________pkcolumns.append(row.strip()) ________etc without a prior:
32
by: Adrian Herscu | last post by:
Hi all, In which circumstances it is appropriate to declare methods as non-virtual? Thanx, Adrian.
8
by: Bern McCarty | last post by:
Is it at all possible to leverage mixed-mode assemblies from AppDomains other than the default AppDomain? Is there any means at all of doing this? Mixed-mode is incredibly convenient, but if I...
11
by: ypjofficial | last post by:
Hello All, So far I have been reading that in case of a polymorphic class ( having at least one virtual function in it), the virtual function call get resolved at run time and during that the...
2
by: Ian825 | last post by:
I need help writing a function for a program that is based upon the various operations of a matrix and I keep getting a "non-aggregate type" error. My guess is that I need to dereference my...
399
by: =?UTF-8?B?Ik1hcnRpbiB2LiBMw7Z3aXMi?= | last post by:
PEP 1 specifies that PEP authors need to collect feedback from the community. As the author of PEP 3131, I'd like to encourage comments to the PEP included below, either here (comp.lang.python), or...
12
by: puzzlecracker | last post by:
is it even possible or/and there is a better alternative to accept input in a nonblocking manner?
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.