Hi,
What is happening is that the serializer for the types exposed/consumed by
the proxy is generated on first use. To resolve this, pre-run each
application and ship the generated custom serializer assembly with the
application bits. Another thing you could consider is creating an instance
of the proxy class during your installation process - so that the
serailizers are pre-created when you install.
I hope this helps
Dan Rogers
Microsoft Corporation
--------------------
From:
at**********@it b-india.com (Atul)
Newsgroups: microsoft.publi c.dotnet.framew ork.webservices
Subject: How to speed up the webservice proxy creation
Date: 28 Nov 2004 21:21:15 -0800
Organization:
http://groups.google.com
Lines: 19
Message-ID: <f5************ **************@ posting.google. com>
NNTP-Posting-Host: 61.11.19.150
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: posting.google. com 1101705676 21797 127.0.0.1 (29 Nov 2004
05:21:16 GMT)
X-Complaints-To:
gr**********@go ogle.com
NNTP-Posting-Date: Mon, 29 Nov 2004 05:21:16 +0000 (UTC)
Path:
cpmsftngxa10.ph x.gbl!TK2MSFTFE ED02.phx.gbl!TK 2MSFTNGP08.phx. gbl!newsfeed00. s
ul.t-online.de!t-online.de!news. glorb.com!postn ews.google.com! not-for-mail
Xref: cpmsftngxa10.ph x.gbl
microsoft.publi c.dotnet.framew ork.webservices :7670
X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.webservices
In my winform application, to access webmethod, we create a webservice
proxy object. For the first time, when winform application is started,
for creating proxy object(e.g. MyWebServicePro xy oProxy = new
MyWebServicePro xy() )it takes a long time(appr. 2 seconds), but for
the next time it happens in 0-10 milli-seconds.
For each proxy object for first time creation it takes looong time.
One reason I know is because of JIT compilation(MSI L is converted into
m/c code each time.)
What can be other reasons? How can I speed-up proxy creation at first
time?
Note: I cannot use NGen bcoz of limitations of NGen(requires admin
login)
Pls help me.
Thanx and regards
Atul