问题
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