开发者

WCF Service with netTcpBinding + windows Authentication hosted with IIS and using roles for authorization

开发者 https://www.devze.com 2023-01-06 17:00 出处:网络
I am having a WCF Service which is hosted with IIS with nettcpbinding and Win开发者_运维问答dows authentication, I am trying to do authorization with user name/roles. But service is allowing any user

I am having a WCF Service which is hosted with IIS with nettcpbinding and Win开发者_运维问答dows authentication, I am trying to do authorization with user name/roles. But service is allowing any user to access it.

Is this possible in first place?


It sounds like you have some soft of configuration error. IIS does not allow for hosting of WCF with the nettcp binding. You'll need to host your WCF in a Windows Service or WAS (only in Windows Server 2008). See Learning WCF, by Michele Leroux Bustamante for an excellent reference on how to do this.

0

精彩评论

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