| View previous topic :: View next topic |
| Author |
Message |
Ivan Sine Guest
|
Posted: Fri Mar 30, 2007 10:25 pm Post subject: HttpSendRequest server reset in Vista |
|
|
An HttpSendRequest in SOAPHTTPTrans.pas is returning "The connection
with the server was reset" but only in Vista. On XP it is working well.
Anyone experiencing similiar issues with Vista?
-- |
|
| Back to top |
|
 |
Jean-Marie Babet Guest
|
Posted: Fri Mar 30, 2007 11:36 pm Post subject: Re: HttpSendRequest server reset in Vista |
|
|
Hello Ivan,
This is just a guess: Could it be related to the application requiring
elevated privileges?
Also, I became a little involved with an HTTP/Vista issue during the final
weeks before the release of D2007 because the registration code in the
installer (referred to Sanctuary internally) ran into problems on Vista. In
our case it turns out that it was related to Windows Live OnCare. But before
we found this out, we swapped the code in the Installer with THTTPReqResp
from SOAPHTTPTrans.pas (I had to comment out the logic that throws an
exception if the content-type is not 'text/xml'). Well, once we realized the
issue was 'Live OnCare', the Sanctuary team opted to keep SOAPHTTPTrans.pas
because their tests showed that it was faster than what they had before. I
suspect this is related to the fact that we post chunks of 32K at a time but
did not investigate further.
Anyway.. the code in the installer that registers D2007 uses
SOAPHTTPTrans.pas.. (with a minor tweak not to check content-types). Keep an
eye out for Live OneCare. I can ask for details if you find out you might be
running into the same issue.
Cheers,
Bruneau. |
|
| Back to top |
|
 |
Ivan Sine Guest
|
Posted: Sat Mar 31, 2007 1:46 am Post subject: Re: HttpSendRequest server reset in Vista |
|
|
Thanks for the suggestions. Still no love. OneCare is not installed.
Running as Admin. |
|
| Back to top |
|
 |
Graham Harris Guest
|
Posted: Tue Apr 03, 2007 7:16 am Post subject: Re: HttpSendRequest server reset in Vista |
|
|
Hello Ivan,
| Quote: | Thanks for the suggestions. Still no love. OneCare is not installed.
Running as Admin.
|
Do you mean that you UAC (User Access Control) turned off? Becase as far
as I am aware MS has translated an Admin user to a Power User (if UAC is
turned on). I.e. if you have UAC turned on every time you want to change
a system setting you get a system modal dialog asking your permision for
the admin stuff to proceed.
Graham Harris |
|
| Back to top |
|
 |
Ivan Sine Guest
|
Posted: Tue Apr 03, 2007 9:06 pm Post subject: Re: HttpSendRequest server reset in Vista |
|
|
Hi Graham,
My login account is set as Administator. UAC is on as I am prompted to
"Allow" on system changes. I have a simple demo if anyone with Vista
wants to give it a go.
Ivan at ag2networks dot com |
|
| Back to top |
|
 |
Jean-Marie Babet Guest
|
Posted: Tue Apr 03, 2007 11:37 pm Post subject: Re: HttpSendRequest server reset in Vista |
|
|
Hello Ivan,
I'm interested in any demo/sample. (bbabet (AT) codegear (DOT) com)
I'm also wondering whether you need to mark your app. to request elevated
privileges. Because even when logged with an administrator account, I don't
believe windows will automatically request elevation unless the app.
requests windows to do so (via a manifest for example).
Cheers,
Bruneau. |
|
| Back to top |
|
 |
Graham Harris Guest
|
Posted: Wed Apr 04, 2007 9:42 am Post subject: Re: HttpSendRequest server reset in Vista |
|
|
Hello Jean-Marie Babet,
Hi Bruneau
If I remember rightly the application needs to request elivated priverliges,
as even when logged in with an account that has Administrator Priverliges
(not sure when the PC is part of a domain....). These are not given until
an application requests these. There was a blog from Mark Russinovich.
From Mark's blog:
UAC creates an alternate model where all users, including administrators,
run with standard user rights. Executables that require administrative rights
include a requestedExecutionLevel key in their manifest - XML embedded in
their executable - that specifies “requireAdministrator”. When an administrator
executes such an image, in its default configuration UAC presents a Consent
dialog that asks permission for the image to run with administrative rights.
Standard users see a similar dialog, but must enter the credentials of an
administrative account to unlock administrative rights.
Msdn Article: http://msdn2.microsoft.com/en-us/library/aa480150.aspx
HTH
Graham Harris |
|
| Back to top |
|
 |
Ivan Sine Guest
|
Posted: Thu Apr 05, 2007 12:16 am Post subject: Re: HttpSendRequest server reset in Vista |
|
|
Hi Graham,
I think right-clicking on the exe and choosing "Run as Administrator"
Will elevate. But just in case I added the manifest. Which prompts for
elevation. But unfortunately still no success with Vista.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1"
manifestVersion="1.0">
<dependency>
<dependentAssembly>
<assemblyIdentity
type="win32"
name="Microsoft.Windows.Common-Controls"
version="6.0.0.0"
processorArchitecture="X86"
publicKeyToken="6595b64144ccf1df"
language="*"
/>
</dependentAssembly>
</dependency>
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
<security>
<requestedPrivileges>
<requestedExecutionLevel
level="requireAdministrator"
uiAccess="true"/>
</requestedPrivileges>
</security>
</trustInfo>
</assembly>
-- |
|
| Back to top |
|
 |
Ivan Sine Guest
|
Posted: Thu Apr 05, 2007 12:18 am Post subject: Re: HttpSendRequest server reset in Vista |
|
|
Bruneau,
I emailed you a link to download the demo app. Thanks in advance for
taking a look.
Ivan
-- |
|
| Back to top |
|
 |
Jean-Marie Babet Guest
|
Posted: Thu Apr 05, 2007 2:12 am Post subject: Re: HttpSendRequest server reset in Vista |
|
|
Thanks. I've downloaded the .zip file. I'll post something later today.
Cheers,
Bruneau.
"Ivan Sine" <ivan (AT) nospamorhamag2networks (DOT) com> wrote in message
news:4613ebfc (AT) newsgroups (DOT) borland.com...
| Quote: | Bruneau,
I emailed you a link to download the demo app. Thanks in advance for
taking a look.
Ivan
--
|
|
|
| Back to top |
|
 |
Jean-Marie Babet Guest
|
Posted: Fri Apr 06, 2007 6:47 am Post subject: Re: HttpSendRequest server reset in Vista |
|
|
Hello,
Just a quick note to mention that the issue is not related to https: my
clients with https-based services (eBay, for example) ran fine under Vista.
Today was hectic and I did not have a chance to investigate further. Tonight
or tomorrow hopefully.
Cheers,
Bruneau |
|
| Back to top |
|
 |
|