Hi Leon,
Welcome to MSDN newsgroup.
From your description you're encountering some problem when creating
webservice proxy in a .net 2.0 application, which will take long time with
no responding .... ,yes?
Are you generating the webservcie proxy through VS2005 or the wsdl.exe
tool? Also, I think this should be a service specific behavior. Can you
repro the problem through a simplified WSDL document? If so, it'd be
helpful if you can provide us this one so that we can have some test on our
side...
Thanks,
Steven Cheng
Microsoft Online Support

Signature
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
--------------------
| From: "Leon Finker" <Leon@nospam.nospam>
| References: <#YQz4HH$FHA.344@TK2MSFTNGP11.phx.gbl>
| Subject: Re: .NET 2.0/csc.exe/SoapHttpClientProtocol hangs for 15-20
seconds (compared to .NET 1.1) under Citrix
| Date: Thu, 8 Dec 2005 23:20:51 -0500
| Lines: 68
[quoted text clipped - 73 lines]
| > This appears to be the only problem so far under Citrix. Thanks for any
| > help!
Leon Finker - 09 Dec 2005 13:10 GMT
No, the proxy class was generated in .NET 1.1 and I'm running .NET 1.1
assemblies under .NET 2.0 by specifying the requiredRuntime in .config file.
We are also doing our own CLR hosting and specifying 2.0 version (but that
shouldn't matter). So, all of the assemblies are .NET 1.1 assemblies. But
same code works fine on non Citrix machine under same conditions otherwise.
Yes, the problem definitely occurs when I create web service proxy which has
structures for web method parameters. In this case csc.exe has to be invoked
to generate the code for xml serialization of those structures. It's not
just csc.exe that blocks on something.
The code in SoapHttpClientProtocol..ctor() also blocks and waits for
something before even creating the csc.exe process.
Just to clarify, the problem is not in the invocation of web method. The
problem is in creating the class object (i.e.: SomeSvc svc = new
SomeSvc() ). I have isolated just web proxy class object creation line as
the culprit (that's for sure).
As far as I saw, it didn't happen under admin account that I use for
development/debugging under Citrix. Only happens under regular AD User
accounts that are created for Citrix . I'll gather more information and
update the post.
Thanks for getting back!
> Hi Leon,
>
[quoted text clipped - 105 lines]
> any
> | > help!
Leon Finker - 12 Dec 2005 04:38 GMT
The problem is just as it was in .NET 1.1. It's CRL (cert. revocation list)
verification done by wintrust API, which .NET is using. It's timing out.
However, in .NET 1.1 there probably weren't any authenticode signed assembly
dependencies when using SoapHttpClient and csc.exe for XML serialization
because same code doesn't block under .NET 1.1.
By disabling CRL verification for the user, the problem disappears under
2.0. First I see connection being made to crl.microsoft.com and then to
crl.verisign.com. Both either fail or timeout, but this continues for good
~10 seconds per csc.exe invocation as well as in main host executable.
> Hi Leon,
>
[quoted text clipped - 105 lines]
> any
> | > help!
Steven Cheng[MSFT] - 13 Dec 2005 01:19 GMT
Thanks for your followup Leon,
Yes, your response also remind me of a former issue which is caused by the
similiar things. When some of our assemblies are code signed and at the CLR
startup time, the security(cas) policy will try to verfiy the certificate
revorcation list over internet, if the machine's internet connection is not
setup correctly, it'll hangs until timeout.....
Also, there is the "Check for publisher's certificate revocation" setting
in the internet explore's advanced options , when turn off this can also
avoid such checking....
Regards,
Steven Cheng
Microsoft Online Support

Signature
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
--------------------
| From: "Leon Finker" <Leon@nospam.nospam>
| References: <#YQz4HH$FHA.344@TK2MSFTNGP11.phx.gbl>
<#h7PyfH$FHA.208@tk2msftngp13.phx.gbl>
<IkzTdpL$FHA.552@TK2MSFTNGXA02.phx.gbl>
| Subject: Re: .NET 2.0/csc.exe/SoapHttpClientProtocol hangs for 15-20
seconds (compared to .NET 1.1) under Citrix
| Date: Sun, 11 Dec 2005 23:38:59 -0500
| Lines: 134
[quoted text clipped - 130 lines]
| > any
| > | > help!