Exclusive Lock?

A

Alex Irazabal

Form template:
file:///C:\Documents%20and%20Settings\alex\Local%20Settings\Application%20Data\Microsoft\InfoPath\Designer\c545f63c907443e\manifest.xsf
InfoPath cannot open the selected form because of an error in the form's code.
More than one exclusive group is not allowed.

Anyone has any idea what this is? I don't have infopath running (or VS).
Just tried to click on the form and I get that nice error...is there an icon
for pulling out one's hair?
 
S

Steve van Dongen [MSFT]

Form template:
file:///C:\Documents%20and%20Settings\alex\Local%20Settings\Application%20Data\Microsoft\InfoPath\Designer\c545f63c907443e\manifest.xsf
InfoPath cannot open the selected form because of an error in the form's code.
More than one exclusive group is not allowed.

Anyone has any idea what this is? I don't have infopath running (or VS).
Just tried to click on the form and I get that nice error...is there an icon
for pulling out one's hair?

Your subject line is wrong; there's no mention anywhere of an
exclusive lock. The error "More than one exclusive GROUP is not
allowed" is being thrown on by whatever code you have in your onload
handler. You'll have to post that code if you need help with it.

Regards,
Steve
 
A

Alex Irazabal

My apologies for mis-classifying the error...
The error happens when I save a form to disk and try to reopen it with IP.
Here is the code that writes the file...

public void OnSubmitRequest(DocReturnEvent e)
{
String strFile = "C:\\Documents and Settings\\alex\\My
Documents\\ContinuityForm.xml";
StreamWriter stwRSS = new StreamWriter(strFile, false, Encoding.UTF8);
stwRSS.Write(e.XDocument.DOM.xml);
stwRSS.Flush();
stwRSS.Close();
e.ReturnStatus = true;
return;
}

any better?
 
Top