开发者

Multiple Host Headers and WCF

开发者 https://www.devze.com 2023-03-02 05:58 出处:网络
Following some great posts here led me to the following link. http://www.apterasoftware.com/Blog/Post/10-01-09/Hosting_WCF_Web_Services_on_a_site_with_multiple_host_header_bindings.aspx

Following some great posts here led me to the following link. http://www.apterasoftware.com/Blog/Post/10-01-09/Hosting_WCF_Web_Services_on_a_site_with_multiple_host_header_bindings.aspx

I am using .Net 3.5 but am trying to use the ServiceFactory found at the link. The problem I'm having is that I'm receiving the error: "The CLR Type 'WCFReportLibrary.MultipleHeaderServiceHostFactory' could not be loaded during service compilation."

I have created a solution with two projects. A WCFReportLibrary which contains the [ServiceContract] and the MultipleHeaderServiceHostFactory class. In my web project within the solution I have created the .svc file with the <%@ ServiceHost Factory @> directive set to "WCFReportLibrary.MultipleHeaderServ开发者_运维知识库iceHostFactory". Am I not able to load the factory in this way? Thanks again!

0

精彩评论

暂无评论...
验证码 换一张
取 消