Hi All, I am using VS2005 on Win7 32bit to build a strongly typed class library that calls a web service. I've used the Add Web Reference wizard in VS2005 to add the reference to the service.
Everything works a treat, except the first call to the service takes 20+ seconds. Subsequent calls take around 40ms (as expected). Other clients (eg. SOAPUI) call the service very fast every time, so it's not the service.
I'm almost certain that the problem is the compiling of the MyLib.XmlSerializers.dll. But no matter what I do I can't prevent it from happening. I've set Project Properties > Build > Generate serialization assembly to 'On' and the file does get generated,
but when I call the service a new version of MyLib.XmlSerializers.dll still gets compiled to the %TEMP% directory.
I've tried sgen.exe, again successfully generating the MyLib.XmlSerializers.dll, but still the first call takes ages and the file gets generated in %TEMP% on the first call.
I'm at a loss here and would be extremely grateful if anybody can suggest a potential solution.
View Complete Post