开发者

WCF is throwing UnauthorizedAccessException after upgrade to .NET 4.0

开发者 https://www.devze.com 2022-12-27 00:08 出处:网络
I have a pretty simple client-server ASP.NET app; communication is via WCF service. All worked perferctly in VS 2008, now I upgraded to VS2010 and 开发者_高级运维every time the client code is trying t

I have a pretty simple client-server ASP.NET app; communication is via WCF service. All worked perferctly in VS 2008, now I upgraded to VS2010 and 开发者_高级运维every time the client code is trying to instantiate a channel to the server:

new ChannelFactory<IMemberService>("Members.MemberService").CreateChannel();

it throws an UnauthorizedAccessException "Access denied".

Were there any breaking changes in the new version, or do I need to add some configuration?

I'm pretty stuck, any ideas would be highly appreciated!

BTW, binding used is basicHttpBinding, I don't know if thats important here.

Thank you, Andrey


Please disregard, turned out to be configuration error

0

精彩评论

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