Hi, imughal,
as i understand, you mean this lab, right http://msdn.microsoft.com/en-us/library/bb267334.aspx ?
Didn't execute it, but have looked through and it seems to be correct, because I published browser-enabled forms and didn't have any errors.
Don't know, what's a problem, but somebody else has it. See:
http://forums.msdn.microsoft.com/en-US/sharepointinfopath/thread/e60d2b32-b722-4993-8c3a-7af1cfca1292/
P.S. Actually, can advice you a book, tha sometimes helps me. I used it when published a form.
"Designing Forms for Microsoft Office InfoPath and Forms Services 2007"
Scott Roberts
Hagen Green
Best regards