WCF: operations with out parameters are not supported
Posted
by
Budda
on Stack Overflow
See other posts from Stack Overflow
or by Budda
Published on 2011-01-07T21:52:10Z
Indexed on
2011/01/07
21:53 UTC
Read the original article
Hit count: 167
I've created a simple WCF service inside of WebApplication project.
[ServiceContract(Namespace = "http://my.domain.com/service")]
[AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]
public class MyService
{
[OperationContract]
public string PublishProfile(out string enrollmentId, string registrationCode)
{
enrollmentId = null;
return "Not supported";
}
built - everything is compiled successfully
After that I've tried to open service in browser, I've got the following error:
Operation 'PublishProfile' in contract 'MyService' specifies an 'out' or 'ref' parameter. Operations with 'out' or 'ref' parameters are not supported
Can't I use 'out' parameters?
What is wrong here?
Thanks
© Stack Overflow or respective owner