Server was unable to process request. The specified security token is invalid

淺唱寂寞╮ 提交于 2019-12-24 10:37:53

问题


Here is my code:

DefectsService.DefectHandler dh = new DefectsService.DefectHandler();
dh.Url = "https://myUrl.com/defectservice.asmx";
DefectsService.Defect defect = new DefectsService.Defect();
defect.Name = "some name";
int noDefect = dh.AddDefect(myGuid, defect);

I'm adding a web reference with one URL, which then I change in the second line of the code above. The new URL is correct.

But, when it comes to the last line I get the error "Server was unable to process request. The specified security token is invalid.". What could be the problem?

来源:https://stackoverflow.com/questions/8963938/server-was-unable-to-process-request-the-specified-security-token-is-invalid

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!