开发者

WCF is throwing UnauthorizedAccessException after upgrade to .NET 4.0

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜