iis - ServiceHostFactory.CreateServiceHost is called multiple time WCF -
i have wcf service hosted @ iis
<%@ servicehost language="c#" debug="true" service="myservice" factory="initializableservicehostfactory" %> my problem createservicehost called each request myservice method, make initialization code written in createservicehost called multiply.
after checked lot problem, saw related asp.net dynamic compile, recompile whole site when things inside bin folder changed, wcf service writes temp folder inside bin folder make site recompiled application_start re-fired, initializableservicehostfactory re-create wcf service
i know dummy problem :(
Comments
Post a Comment