WinInet from .Net Web Service

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

I have a Visual Basic 6.0 component that uses WinInet to communicate with a
server on the Internet. This works fine from a number of different languages
and environments, but when I use this component in a C# .Net Web Service, the
method HttpSendRequest takes 5-6 seconds! I have done some tests to narrow
this down and have been feeding my component with the exact same data and
testing it on the same computer:

1. Form an ASP page (VBScript) = request takes < 1 second

2. Form a stand alone C# exe that references my component = request takes <
1 second

3. Form a .Net C# Web Service that references my component = request takes
5 seconds!

Why does this request take longer from my Web Service? I do feed the
component with the exact same data and use the same computer for my tests. I
guess it has something to do with the environment that Web Services are run
under? Account used? Threading? Any ideas?

Best regards,
Mikael
 
Probablay a marshalling issue or something. Is the COM object in a COM+
Server Application?

Or...can you just use HttpWebRequest & forget the VB6 DLL? It might be less
time to recode than track down this performance issue.
 
Back
Top