[REST Extender] Specified Cast is no Valid

Forge Component
(1)
Published on 2018-10-08 by Hanno
1 vote
Published on 2018-10-08 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.

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