RE: Web Service SSL

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Steven,

Thanks for your reply. We found the problem to be a permission issue.
Although the login was designated with administrative privleges on the
server, for some reason it did not have permission to access XMLHTTP. Not
sure why or how this occurred, but that resolved the problem When we ran the
job manually, it was based on our login, thus the difference in permissions.
Thank you so much for your assistance.

""Steven Cheng"" wrote:

Thanks for your reply,

Glad that you've made some progress. For the hang issue, it would be hard
to troubleshoot from external symptoms. Is it possible that you try repro
the same behavior on a development machine? If so, I suggest you attach
debugger to the process to see at what point does the problem happen or
stuck at.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msdnmg@xxxxxxxxxxxxxx

This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
From: =?Utf-8?B?TGlzYUNvbnN1bHQ=?= <lisasconsult@xxxxxxxxxxxxx>
References: <4F1EB81E-9C44-4F37-9C7F-A0646ECD4C16@xxxxxxxxxxxxx>
<#R7PaoXiIHA.4672@xxxxxxxxxxxxxxxxxxxxxx>
<42921609-ECCD-499F-8392-F08BBCB96121@xxxxxxxxxxxxx>
<lePyctjiIHA.6264@xxxxxxxxxxxxxxxxxxxxxx>
Subject: RE: Web Service SSL
Date: Mon, 24 Mar 2008 07:47:01 -0700


Steven,
Thank you for your reply. I believe we've corrected the SSL Credential
issue, but the job is still not executing properly. It executes fine
manually, but when executing through the task scheduler is still hangs.
Any
other ideas? Thanks.

""Steven Cheng"" wrote:

Thanks for your reply,

So based on your further description, the manual test is via IE and
you've
got some prompt SSL credential info(do you mean a popup dialog or some
warning page occur to let you do some action)?

If this is the case, you're probably running into a common issue.
Generally, many https/ssl site is using a server certificate that is not
installed as trusted one one client computer(or something else that make
the client browser prompt warning), and you can interactively handle it
in
browser. However, for programmatic code, you do not have interactive
handling means, then such error cause the problem fails.

In .net framework, you can use the certificate validation handler to
provide your own code logic for handling such SSL server certificate
validation process. You can have a look at the following articles:

#ServicePointManager..::.ServerCertificateValidationCallback Property

http://msdn2.microsoft.com/en-us/library/system.net.servicepointmanager.serv
ercertificatevalidationcallback.aspx

#'CertificatePolicy' Vs 'ServerCertificateValidationCallback'
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=80799&SiteID=1

For simple test, you can implemented a validation handler that always
return "true"(think the server certificate is valid) to see whether it
works.

Hope this helps.

Best regards,

Steven Cheng
Microsoft MSDN Online Support Lead

Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you.
Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msdnmg@xxxxxxxxxxxxxx

This posting is provided "AS IS" with no warranties, and confers no
rights.

--------------------
From: =?Utf-8?B?TGlzYUNvbnN1bHQ=?= <lisasconsult@xxxxxxxxxxxxx>
References: <4F1EB81E-9C44-4F37-9C7F-A0646ECD4C16@xxxxxxxxxxxxx>
<#R7PaoXiIHA.4672@xxxxxxxxxxxxxxxxxxxxxx>
Subject: RE: Web Service SSL
Date: Wed, 19 Mar 2008 11:18:01 -0700

Steven,

Thank you for your message. Regarding your questions: I executed it
manually simply by using the https:// URL in an IE window. (the vbs file
from the job scheduler calls an asmx file. I typed in the value of the
vbs
URL in an IE window). We are unable to attach via VS IDE but we write to
a
log file in multiple locations to indicate that it has started, runs,
etc.
It appears that it never execute. Regarding your comment: Is it
possible
that it's waiting for a permission or something? When I ran it manually
I
was prompted for SSL Credentials. Do you have an example of how I would
enter those in the case of a scheduled job. In the scheduled job I do
have
it running as the same person that I used for the SSL Credentials.

Thanks.

""Steven Cheng"" wrote:

Hi,

From your description, you have a webservice at server-side which ove
files
into a sharepoint folder(from normal file folder). You found that you
failed to call th e webservice(hang) through windows scheduled task at
client ,correct?

Generally, for webservice and https condition, a common problem is the
client-side's validation against the SSL certificate. As you mentioned
that
you can successfully call the service manually, how did you call it
manually? Is there any different between it and what you did when using
scheduled task?

Also, you can try using VS IDE to attach the program process when it
runs
to see whether there is any internal error or unexpected behavior in
the
code.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


Delighting our customers is our #1 priority. We welcome your comments
and
suggestions about how we can improve the support we provide to you.
Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msdnmg@xxxxxxxxxxxxxx

==================================================
Get notification to my posts through email? Please refer to


http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent
issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each
follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach
the
most efficient resolution. The offering is not appropriate for
situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are
best
handled working with a dedicated Microsoft Support Engineer by
contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no
rights

--------------------1
From: =?Utf-8?B?TGlzYUNvbnN1bHQ=?= <lisasconsult@xxxxxxxxxxxxx>
Subject: Web Service SSL
Date: Tue, 18 Mar 2008 05:23:01 -0700


I have a web service which basically moves files from a folder to a
sharepoint document folder. The service is scheduled to run as a
scheduled
task. It works fine in our test environment. On production we have
SSL
installed. When I execute it manually, it runs properly, however when
I
execute it as a scheduled tasks, it seems to hang. According to the
schedule
log it starts, but it doesn't complete. Is there a problem with SSL
and
scheduled taks? I believe that I must place it under the sharepoint
web
site
on the server in order to use sharepoint's credentials when writing to
the
folder. Any assistance is appreciated


.



Relevant Pages

  • Re: CUPS Server Error
    ... # This is the CUPS configuration file. ... Server Identity ... determines whether the scheduler will allow new printers ... whether or not to use "short" names for remote printers ...
    (Debian-User)
  • Re: Application design question
    ... doesn't the 'scheduler' (for want of a better ... the client rather than the server. ... Does the screen just continually poll the ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Server process stalled during massive thread creation : scheduler problem ?
    ... i just realized a behaviour of the scheduler that gets me thinking... ... i run a server process that accepts ... TCP connections, and after a client has connected, just echoes all the ... When the load generator starts 1000 threads simultanously, ...
    (Linux-Kernel)
  • Re: is RSDL an "unfair" scheduler too?
    ... Consider two otherwise equivalent web server designs. ... I think that user-level scheduling is good for real multi user systems, where 'user' means a person, not an artificial entity. ... they're not true, the scheduler becomes sub-optimal. ... they run as users 'foo' and 'bar' for security. ...
    (Linux-Kernel)
  • Re: NPS RADIUS with Cisco wlc
    ... Server Status Enabled ... PEAP-MS-CHAP v2 does require a server certificate on the NPS server. ... Foundation Network Companion Guide: Deploying 802.1X Authenticated Wireless ...
    (microsoft.public.internet.radius)