This is really bizarre. Can you open a form published locally? What version of SharePoint do you have? Can you save the template.xsn file to your desktop and try double clicking on it? What happens? If you get the same error, rename it as a cab and use winzip to extract the files. Open the xsf and make sure it is well-formed XML.
Patrick Halstead
Project Manager at Qdabra