WCF and Multiple Host Headers

后端 未结 5 2009
甜味超标
甜味超标 2021-02-06 01:51

My employers website has multiple hostnames that all hit the same server and we just show different skins for branding purposes.

Unfortunately WCF doesn\'t seem to work

5条回答
  •  不思量自难忘°
    2021-02-06 02:42

    I'm sure you've figured it out by now, but just for fun I'll post here anyway.

    I've had this exact problem and spent forever trying to figure it out. The best solution is to put the host base addresses in your service definition, which allows the service to operate under these multiple addresses. For this solution to work, you still need the ServiceHostFactory to be overridden. Since you've already done that, just leave it in there.

    
        
        
        
          
            
            
          
        
      
    

提交回复
热议问题