[REST Extender] Specified Cast is no Valid

Forge Component
Published on 1 Jul by Hanno
1 vote
Published on 1 Jul by Hanno


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?



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

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