25 Eylül 2009 Cuma

The exception: The type provided as the Service attribute value in the ServiceHost directive could not be found

WCF servisinizde böyle bir hata alıyorsanız ve bu sorun genellikle servis dll ini GAC'a atınca ortaya çıkıyor. Çözüm için, .svc dosyanıza
<% @ServiceHost Language=C# Debug=”true” Service=”typeXXXX, assembly,version=1.0.0.0, culturePublicKeyToken=xxxx” %> şeklinde düzeltin.

1 yorum:

gfturkey dedi ki...

Hocam buna bir örnek verir misin?

typeXXXX = Servisin adı.

Peki orada ki "xxxx" ne oluyor?

Bir de CodeBehind kalkıyor mu?

Teşekkürler.