472,344 Members | 1,261 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

Windows 2000 Server vs. Professional

I have developed a VB.net application that transfers a
SOAP wrapped message to another server securely(using SSL
and sever/client certificates). When I run this app from
a Windows 2000 Professional box everything works as
expected, the secure channel is established and the
message is sent properly. When I use the exact same app
on the Windows 2000 Server(running IIS) box the app does
not work properly. I have used a packet sniffer to try
and see what is going on and it appears the server cannot
establish a secure connection with the remote server.(All
the appropriate certificates are installed on both boxes)
IS there some setting which needs to be changed in Windows
2000 Server in order for this to work??? (I am logged into
the Windows 2000 Server as a client/ it is not running as
a service). I don't understand why this would work under
Windows 2000 Profession and not under Windows 2000
Server. Any help in resolving this issue would be greatly
appreciated. Thanks in advance.
Nov 22 '05 #1
4 1876
Sample code might help. Generally when those types of issues arrive. There
is an issue with security permissions. Have you made any changes to your
machine.config?
Are you using impersonation?

Let me know.

Nick
"Dave" <an*******@discussions.microsoft.com> wrote in message
news:04****************************@phx.gbl...
I have developed a VB.net application that transfers a
SOAP wrapped message to another server securely(using SSL
and sever/client certificates). When I run this app from
a Windows 2000 Professional box everything works as
expected, the secure channel is established and the
message is sent properly. When I use the exact same app
on the Windows 2000 Server(running IIS) box the app does
not work properly. I have used a packet sniffer to try
and see what is going on and it appears the server cannot
establish a secure connection with the remote server.(All
the appropriate certificates are installed on both boxes)
IS there some setting which needs to be changed in Windows
2000 Server in order for this to work??? (I am logged into
the Windows 2000 Server as a client/ it is not running as
a service). I don't understand why this would work under
Windows 2000 Profession and not under Windows 2000
Server. Any help in resolving this issue would be greatly
appreciated. Thanks in advance.

Nov 22 '05 #2
We have not made any changes to the Machine.config and we are not using impersonation...It is the standard installation of Windows 2000 Server running IIS with a server certificate installed on the machine. Here is the code I am using to establish the connection...again bear in mind that this exact same code works with Windows 2000 Professional, so I'm kinda leaning to some sort of configuration issue

Dim objRequest As HttpWebReques
Dim objResponse As HttpWebRespons
Dim objWriter As StreamWrite
Dim objReader As StreamReade
Dim objCertificate As X509Certificat

Tr
objCertificate = objCertificate.CreateFromCertFile(CertificatePath

'Initializes HTTP properties for communicatio
If RequestType = MISORequestType.SUBMIT_REQUEST The
objRequest = CType(objRequest.Create("https://" & SUBMIT_URL), HttpWebRequest
ElseIf RequestType = MISORequestType.QUERY_REQUEST The
objRequest = CType(objRequest.Create("https://" & QUERY_URL), HttpWebRequest
End I

'Adds a Client Certificat
objRequest.ClientCertificates.Add(objCertificate

'Set up some configuration for using HTTPWebReques
objRequest.Method = "POST
objRequest.ContentLength = XMLMessage.Lengt
objRequest.ContentType = "Content-Type: text/xml" ' heade

'Sends the HTTP POST command over the strea
MsgBox("About to send the message to MISO"
objWriter = New StreamWriter(objRequest.GetRequestStream()
objWriter.Write(XMLMessage
objWriter.Close(
MsgBox("Message Sent waiting for response"
'Sets Timeout to 60 second
objRequest.Timeout = 6000
'Gets the response back from the HTTP Post Reques
objResponse = CType(objRequest.GetResponse(), HttpWebResponse

ResponseCode = objResponse.StatusCod

'Reads the response back into Text forma
objReader = New StreamReader(objResponse.GetResponseStream(), Encoding.UTF8
ResponseMessage = objReader.ReadToEnd(
objReader.Close(

Catch e As Exceptio
MsgBox(e.Message & " " & e.InnerException.Message
End Tr
Return Tru
----- Nick Harris wrote: ----

Sample code might help. Generally when those types of issues arrive. Ther
is an issue with security permissions. Have you made any changes to you
machine.config
Are you using impersonation

Let me know

Nic
"Dave" <an*******@discussions.microsoft.com> wrote in messag
news:04****************************@phx.gbl..
I have developed a VB.net application that transfers
SOAP wrapped message to another server securely(using SS
and sever/client certificates). When I run this app fro
a Windows 2000 Professional box everything works a
expected, the secure channel is established and th
message is sent properly. When I use the exact same ap
on the Windows 2000 Server(running IIS) box the app doe
not work properly. I have used a packet sniffer to tr
and see what is going on and it appears the server canno
establish a secure connection with the remote server.(Al
the appropriate certificates are installed on both boxes
IS there some setting which needs to be changed in Window
2000 Server in order for this to work??? (I am logged int
the Windows 2000 Server as a client/ it is not running a
a service). I don't understand why this would work unde
Windows 2000 Profession and not under Windows 200
Server. Any help in resolving this issue would be greatl
appreciated. Thanks in advance


Nov 22 '05 #3
Sample code might help. Generally when those types of issues arrive. There
is an issue with security permissions. Have you made any changes to your
machine.config?
Are you using impersonation?

Let me know.

Nick
"Dave" <an*******@discussions.microsoft.com> wrote in message
news:04****************************@phx.gbl...
I have developed a VB.net application that transfers a
SOAP wrapped message to another server securely(using SSL
and sever/client certificates). When I run this app from
a Windows 2000 Professional box everything works as
expected, the secure channel is established and the
message is sent properly. When I use the exact same app
on the Windows 2000 Server(running IIS) box the app does
not work properly. I have used a packet sniffer to try
and see what is going on and it appears the server cannot
establish a secure connection with the remote server.(All
the appropriate certificates are installed on both boxes)
IS there some setting which needs to be changed in Windows
2000 Server in order for this to work??? (I am logged into
the Windows 2000 Server as a client/ it is not running as
a service). I don't understand why this would work under
Windows 2000 Profession and not under Windows 2000
Server. Any help in resolving this issue would be greatly
appreciated. Thanks in advance.

Nov 22 '05 #4
We have not made any changes to the Machine.config and we are not using impersonation...It is the standard installation of Windows 2000 Server running IIS with a server certificate installed on the machine. Here is the code I am using to establish the connection...again bear in mind that this exact same code works with Windows 2000 Professional, so I'm kinda leaning to some sort of configuration issue

Dim objRequest As HttpWebReques
Dim objResponse As HttpWebRespons
Dim objWriter As StreamWrite
Dim objReader As StreamReade
Dim objCertificate As X509Certificat

Tr
objCertificate = objCertificate.CreateFromCertFile(CertificatePath

'Initializes HTTP properties for communicatio
If RequestType = MISORequestType.SUBMIT_REQUEST The
objRequest = CType(objRequest.Create("https://" & SUBMIT_URL), HttpWebRequest
ElseIf RequestType = MISORequestType.QUERY_REQUEST The
objRequest = CType(objRequest.Create("https://" & QUERY_URL), HttpWebRequest
End I

'Adds a Client Certificat
objRequest.ClientCertificates.Add(objCertificate

'Set up some configuration for using HTTPWebReques
objRequest.Method = "POST
objRequest.ContentLength = XMLMessage.Lengt
objRequest.ContentType = "Content-Type: text/xml" ' heade

'Sends the HTTP POST command over the strea
MsgBox("About to send the message to MISO"
objWriter = New StreamWriter(objRequest.GetRequestStream()
objWriter.Write(XMLMessage
objWriter.Close(
MsgBox("Message Sent waiting for response"
'Sets Timeout to 60 second
objRequest.Timeout = 6000
'Gets the response back from the HTTP Post Reques
objResponse = CType(objRequest.GetResponse(), HttpWebResponse

ResponseCode = objResponse.StatusCod

'Reads the response back into Text forma
objReader = New StreamReader(objResponse.GetResponseStream(), Encoding.UTF8
ResponseMessage = objReader.ReadToEnd(
objReader.Close(

Catch e As Exceptio
MsgBox(e.Message & " " & e.InnerException.Message
End Tr
Return Tru
----- Nick Harris wrote: ----

Sample code might help. Generally when those types of issues arrive. Ther
is an issue with security permissions. Have you made any changes to you
machine.config
Are you using impersonation

Let me know

Nic
"Dave" <an*******@discussions.microsoft.com> wrote in messag
news:04****************************@phx.gbl..
I have developed a VB.net application that transfers
SOAP wrapped message to another server securely(using SS
and sever/client certificates). When I run this app fro
a Windows 2000 Professional box everything works a
expected, the secure channel is established and th
message is sent properly. When I use the exact same ap
on the Windows 2000 Server(running IIS) box the app doe
not work properly. I have used a packet sniffer to tr
and see what is going on and it appears the server canno
establish a secure connection with the remote server.(Al
the appropriate certificates are installed on both boxes
IS there some setting which needs to be changed in Window
2000 Server in order for this to work??? (I am logged int
the Windows 2000 Server as a client/ it is not running a
a service). I don't understand why this would work unde
Windows 2000 Profession and not under Windows 200
Server. Any help in resolving this issue would be greatl
appreciated. Thanks in advance


Nov 22 '05 #5

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

Similar topics

6
by: Nathan Sokalski | last post by:
I recently downloaded and installed (hopefully correctly) MSDE 2000 Release A. I previously, and still do, have the version of IIS that comes with...
5
by: Alex | last post by:
I wrote an asp program to send email. I set SMTP as 127.0.0.1 and it worked well in Windows 2000 server but not in Windows 2000 Professional. What...
2
by: Dave | last post by:
I have developed a VB.net application that transfers a SOAP wrapped message to another server securely(using SSL and sever/client certificates). ...
2
by: Nate | last post by:
Hello, I am trying to recover a SQL Server 7 database from another hard disk drive that has a corrupted Windows 2000 Advanced Server...
5
by: Joseph Barbaro | last post by:
I am trying to install DB2 Universal Database Enterprise Server Edition Version 8.1 (for Windows operating systems on 32-bit systems) on Windows...
5
by: RAJ | last post by:
hi plz tell me how to know "how window is going to close"... i have to right code for X button of forms... plz telll me thanks bye
2
by: Vaap | last post by:
I did lot of googling to see if I can solve the SQL server not found problem while trying to run ASP.Net community starter kit from an XP machine...
6
by: Patrick Jox | last post by:
Hi, I have a client request to build an asp.net application. This application shall be installed on a machine running Windows NT 4.0 SP 6a. As far...
1
by: Manu | last post by:
Hi, To get the USERNAME of all process running in local/remote system I am using the WTSOpenServer and WTSEnumerateProcesses API's but when I...
4
by: David | last post by:
Hi all, I just asked some people to help me out and phone microsoft with the following information, kindly they refused unless we setup a support...
0
by: concettolabs | last post by:
In today's business world, businesses are increasingly turning to PowerApps to develop custom business applications. PowerApps is a powerful tool...
0
by: teenabhardwaj | last post by:
How would one discover a valid source for learning news, comfort, and help for engineering designs? Covering through piles of books takes a lot of...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was...
0
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. ...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...
0
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the...

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.