174
Views
1
Comments
[REST Extender] Specified Cast is no Valid
Question
rest-extender
Service icon
Forge asset by Hanno

Hi


I'm trying to set some cookies up before a REST web service call. I've used the GetCookies on the OnAfterResponseAdvanced, and that action has worked well.

These cookie values I am storing in session variables of type HttpCookie.


When I try to set them in the SetCookies Action I get a "Specified cast is not valid" error. I have been able to narrow down the error to when the HttpCookie.Value is set.


Any idea of what I'm doing wrong?


Regards,

   CLSJ


P.S. The AuxHttpCookie is a local variable of type HttpCookie structure.

2025-09-25 22-50-38
Hanno

Thanks for the detailed info, helps me to better trace the issue!


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.