BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

HttpSendRequest server reset in Vista

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi WebServices SOAP
View previous topic :: View next topic  
Author Message
Ivan Sine
Guest





PostPosted: Fri Mar 30, 2007 10:25 pm    Post subject: HttpSendRequest server reset in Vista Reply with quote



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





PostPosted: Fri Mar 30, 2007 11:36 pm    Post subject: Re: HttpSendRequest server reset in Vista Reply with quote



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





PostPosted: Sat Mar 31, 2007 1:46 am    Post subject: Re: HttpSendRequest server reset in Vista Reply with quote



Thanks for the suggestions. Still no love. OneCare is not installed.
Running as Admin.
Back to top
Graham Harris
Guest





PostPosted: Tue Apr 03, 2007 7:16 am    Post subject: Re: HttpSendRequest server reset in Vista Reply with quote

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





PostPosted: Tue Apr 03, 2007 9:06 pm    Post subject: Re: HttpSendRequest server reset in Vista Reply with quote

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





PostPosted: Tue Apr 03, 2007 11:37 pm    Post subject: Re: HttpSendRequest server reset in Vista Reply with quote

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





PostPosted: Wed Apr 04, 2007 9:42 am    Post subject: Re: HttpSendRequest server reset in Vista Reply with quote

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





PostPosted: Thu Apr 05, 2007 12:16 am    Post subject: Re: HttpSendRequest server reset in Vista Reply with quote

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





PostPosted: Thu Apr 05, 2007 12:18 am    Post subject: Re: HttpSendRequest server reset in Vista Reply with 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





PostPosted: Thu Apr 05, 2007 2:12 am    Post subject: Re: HttpSendRequest server reset in Vista Reply with quote

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





PostPosted: Fri Apr 06, 2007 6:47 am    Post subject: Re: HttpSendRequest server reset in Vista Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi WebServices SOAP All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.