I'm on .NET 4.0, I have a wcf service which implements two contracts, one with protection level and one with no protection. Both specify in the Action and in the ReplyAction the "*" value.
Now, if I configure this service inside a Web Site project everything works, but if I configure the same service inside a Web Application project, if I try to see the service page in the browser for the default endpoint, I receive the error "The request message must be protected, This is required by an operation of the contract ('IContractSigned','http://myservice/contracts'). The protection must be provided by the binding ('BasicHttpBinding','http://tempuri.org/'). "
Both the Web Site project and the Web Application project has the same web.config.
Now I'm trying to investingate, but it's impossible to find an easy solution or discussion. Any idea? Why the project type influence in this way the correctness of the config? Thanks in advance