.net - 2 methods in Web Service, one works, one returns with 400 Bad Request -
i have 2 methods in svc web service, 1 takes no arguments , returns active directory users. 1 works. have method receives user id , returns of groups member of. 1 fails "400 (bad request)" on our beta site, works identical code , calling methods on local development box. have used fiddler ensure json being sent web service correct in both instances. both environments sharepoint.
i have checked authentication providers sites both in beta , dev environment , identical.
what causing this?
when utilizing ajax, not internal server error 500 message. if you're sure of inputs (no ampersand in parameters, etc) , other methods not yielding errors, code crashing in method returning 400 (bad request).
it turns out there security issue on beta server not return user principal unless specifying super user able see domain accounts, domain , password. there no check null on user principal object before attempting use properties, , throwing internal server error.
Comments
Post a Comment