09-27-2012 11:49 AM
Hello all, has anyone seen this error in Web UI Builder? It doesn't seem to be listed in the list of error messages. I have a simple web service on a cRIO controller - see attached.
Untitled.vix: Started run at 10:28:22 AM 9/27/2012
web.vix: ToMoreSpecificClass in Web: Bad type cast. The run-time value of this class cannot be treated as an instance of the given class.
09-28-2012 01:34 PM
Marvin,
Would it be possible for you to post the web.vix file and the data.ctl? I have not seen this error before and I want to try to reproduce it.
Regards,
Greg Haley
Applications Engineer
National Instruments
10-10-2012 11:07 AM
Hi Greg,
Thanks for looking into this. I might need to apologize, though; during some of my troubleshooting I didn't keep the project intact, so these might not be the exact files that caused the error.
Interestingly, the problem was solved when I didn't use a cluster network shared variable (see web without cluster.vi) to publish the data from the cRIO.
Regards,
Marvin
10-11-2012 03:37 PM
Hello Marvin,
Thanks for posting the LabVIEW web service and Web UI builder files. I've attempted to duplicate the "Bad type cast" error and your workround, but haven't seen the error. The steps I've gone through include:
There was a known issue with the 2011 Real-Time module and typedef shared variables, but it would prevent the web service from functioning altogether (not produce errors in Web UI builder).
Regards,
Andrew Brown