Recently we have met one headache issue as follows:
Application Pool 1(running in .Net 2):
Asp and Asp.net app
are running in this application pool, at
the same time, one Web Service(used by Asp.Net) is running in this application
pool as well, note that thisWeb Service
is exposed as WCF service which is used by Silverlight at the same time similar
bool HasData(String id);
Application Pool 2(running in .Net4)
Silverlight app is running in this application pool.
HTTP_USERis written in one ISAPI filter in request
in HasData method is
sometimes null for WCF call(ServerVariables is not null in such case), however,
it always correct for Web Service call.
if the issue 1 occurs, then sometimes one of the WCF service
is always not work, from Fiddler it shows there is internal error inside the
service, and cannot be debugged(breakpoint always not hit).
The above issues do not happen always, the issues shall
disappear temporally if recycle Application Pool 1 or reset IIS.
Does the HTTPContext is same in Web Service and WCF service?
Does application pool recycling/setting affect this?
Anyone can shed some light on this?Many thanks for your great help in advance,