Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

a call to sspi failed see inner exception. The target principal name is incorrect #1674

Closed
juchunwei opened this issue Nov 22, 2016 · 6 comments
Assignees
Labels
tooling An issues related to any tool shipped from this repo.
Milestone

Comments

@juchunwei
Copy link

I got the error. how to correct it? thanks.

@hongdai
Copy link
Contributor

hongdai commented Nov 22, 2016

What's the scenario? Call stack can also help pinpoint issue.

@juchunwei
Copy link
Author

@hongdai, hello. I generated the wcf client through the wcf connected service. but when I call it, I got that error message. How can I setup the UPN for the service? thanks.

@zhenlan zhenlan added Community tooling An issues related to any tool shipped from this repo. labels Nov 22, 2016
@zhenlan zhenlan added this to the S110 milestone Nov 22, 2016
@hongdai
Copy link
Contributor

hongdai commented Nov 22, 2016

@juchunwei Could you attach the generated reference.cs file? The tool does not support generating UPN information yet. I will see if I can help you to work around it by manually editing the generated reference.cs client code.

@juchunwei
Copy link
Author

@hongdai , thank you! I tried to upload the file but not successes. I added the UPN to the EndPoint.Address before I call the service and it's working now. but I noticed the method generated is not correct. like this one, it missed the parameter CallContext, I have to added it myself.

` public System.Threading.Tasks.Task<AxOnhandService.FL_InventOnhandServiceGetOnhandResponse> getOnhandAsync(CallContext callContext, string itemId, string configId, string colorId, string sizeId, string wigId, string capId, string hairId, string warehouse, string location)
{
AxOnhandService.FL_InventOnhandServiceGetOnhandRequest inValue = new AxOnhandService.FL_InventOnhandServiceGetOnhandRequest();
inValue.CallContext = callContext;
inValue.itemId = itemId;
inValue.configId = configId;
inValue.colorId = colorId;
inValue.sizeId = sizeId;
inValue.wigId = wigId;
inValue.capId = capId;
inValue.hairId = hairId;
inValue.warehouse = warehouse;
inValue.location = location;

        return ((AxOnhandService.FL_InventOnhandService)(this)).getOnhandAsync(inValue);
    }`

@hongdai
Copy link
Contributor

hongdai commented Nov 23, 2016

@juchunwei Great to hear that you have figured out how to make it work yourself.

Thanks for providing the detailed information that what was missing. We will take it consideration when adding the feature.

@zhenlan zhenlan closed this as completed Dec 9, 2016
@dilipdad
Copy link

H @hongdai ,

how u added UPN in Reference.CS. .Net Core 1.1 is saying CreateUPNIdentity is not available. Please share your reference file.

I am adding WCF service in .net core 1.1 project and i am not able to connect WCF service it saying missing target principle name in error

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tooling An issues related to any tool shipped from this repo.
Projects
None yet
Development

No branches or pull requests

4 participants