WCF is throwing UnauthorizedAccessExceptyion after upgrade to .NET 4.0
- by Andrey
I have a pretty simple client-server ASP.NET app; communication is via WCF service. All worked perferctly inVS 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