WCF, Service attribute value in the ServiceHost directive could not be found

后端 未结 22 1623
自闭症患者
自闭症患者 2020-12-04 17:19

I\'m trying to host my service with IIS 6 but I keep get this exception.

    Server Error in \'/WebServices\' Application.
----------------------------------         


        
22条回答
  •  無奈伤痛
    2020-12-04 18:07

    I had this problem - my service type was in the GAC. It WOULD work if i added the dll containing the type to the bin folder but as it was in the GAC this was NOT what I wanted. I eventually added this to the web.config for the service

    
        
        
            
                
            
        
    
    

    and it worked without needing any dlls in the bin folder.

提交回复
热议问题