For some reason, I can't compile code that uses IServiceHostFactory. I installed the latest CTP and WinFX extensions for Visual Studio. I also have the following references in my C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\CONFIG\web.config:
<add assembly="System.ServiceModel, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add extension=".svc" type="System.ServiceModel.ServiceBuildProvider, System.ServiceModel, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<add path="*.svc" verb="*" type="System.ServiceModel.Channels.HttpHandler, System.ServiceModel, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
validate="false" />
<add name="ServiceModel" type="System.ServiceModel.Channels.HttpModule, System.ServiceModel, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
I have a single System.ServiceModel.dll on my system at C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727, which is confusing at best, since I assumed the latest WinFX SDK would install newer assemblies elsewhere.
What am I missing I definitely DO NOT have the following on my system or in the GAC: "System.ServiceModel, Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL"

Can't compile IServiceHostFactory
larange
can you post your service code and config file information,I will try to repro here
-Thank you
Madhu
DVCasmey
IServiceHostFactory is a new type in the February CTP. It sounds like you still have the old assembly on your box, which is why you can't compile.
Augustinscuba
Hi Mark, any update on this , are you still experiencing this problem.
-Thank you
Madhu
jhcorey
I did have a previous CTP. The current System.ServiceModel.dll on my system is 2.0.50727.154 (WAPBeta2.060727-1500). I've installed the latest WinFX Runtime Components 3.0 - Beta 2 (2/21/06), as well as the Orcas extensions for Visual Studio 2005 (1/17/06) and WinFX SDK (2.0.50215.45.106.WinFXSDK_idw.img).
EDIT: I just ran the CTP uninstall tool, which removed System.ServiceModel.dll from my machine. I then installed the Go-Live release which replaced that file with the 1/13/06 version. This assembly does not contain IServiceHostFactory. Looks like the Go-Live release is not what I want...I'm going to try the Feb CTP (3.0.50727.358), as that seems to be what I really need.