Veetrik,
Thanks for your reply. I tried what you suggested, but the assembler didn't like the code.
After some investigation I found my problem in the program.cs.
There was no trap for a bad command sent from the browser.
Thanks again Gordon
That's great Gordan. by the way the could I sent you should have been:
string commandData = (rawData.Lenght >= 5) ? rawData.Substring(5, rawData.Length – 5) : "";