André Rentes

Hi,

When I open VSTA and run my project show this message:

InfoPath cannot open the selected form.

Whats happen

Im using InfoPath 2007!! Please Help me.

Att




Re: Visual Studio Tools for Office Error - InfoPath cannot open the selected form

Ankur Soni

Same here .. can someone come up with an answer please !



Re: Visual Studio Tools for Office Error - InfoPath cannot open the selected form

Cindy Meister

This forum is specific to the VSTO technology. It has nothing to do with VSTA or programming in InfoPath. Please address your questions to the InfoPath newsgroup

http://msdn.microsoft.com/newsgroups/default.aspx dg=microsoft.public.infopath &lang=en&cr=US






Re: Visual Studio Tools for Office Error - InfoPath cannot open the selected form

Lixinfeng

Same error occurred in my VSTO SE environment, what's wrong with it thanks a lot.



Re: Visual Studio Tools for Office Error - InfoPath cannot open the selected form

Andre Rentes

Hi Lixinfeng,

To resolve this problem I did:

The Menu -> Tools -> Form Options -> Security and Trust -> uncheck "Automatically determine security level" and select Full Trust - >OK

Att






Re: Visual Studio Tools for Office Error - InfoPath cannot open the selected form

Jits x

Nope didnt work. !!



Re: Visual Studio Tools for Office Error - InfoPath cannot open the selected form

jlehew

There are a wide variety of things that can cause this error as this is the most generic of errors for InfoPath:

1. Open up the form in the Rich Client/InfoPath 2007. This give the options to click "Details" and get a more specific error. Opening in Visual Studio or in the web client does not provide this option so it is a guessing game as to why.

2. Building the solution in VS2005 isn't enough and won't create an XSN, need to publish instead of build. Once the XSN is created, open in the rich client and see if the error occurs and get details. Check the date on the XSN to verify it built the file.

3. I'm using Full Trust Security mode which is not set by default. Open up the manifest.xsf in VS2005, select Tools... Form Options.. Security.

4. This one is tricky... The cache won't refresh in VS2005. Close VS2005 then click on the manifest.xsf file. During the open process it will ask if you want to overwrite the cached version. Say yes.

5. Beyond this it is typically a schema issue with the xml.

6. Can also try restarting VS2005 and/or removing then readding references in the VS2005 solution.

Also, to use the Tools.. Form Options... Preview feature:

1. Open up the XSN in InfoPath and fill out the form.

2. Save As.. and enter the file name. Usually I put sampledata.xml and place in the project directory

3. Goto Tools... Form Options... Preview... and enter this file name.

4. Now when the form is run, it shows the data that was entered in step 1.

John Lehew





Re: Visual Studio Tools for Office Error - InfoPath cannot open the selected form

Andrew Maisey

I could duplicate the same error message at will.

Essentially my form has drop-downs which are populated by InfoPath data connections. These data connections connect through a C# web service to a database. When the database became unavailable (either through a web.config pointer being changed or the SQLServer process being recycled), the form would not load. I can deduce from this that it is important to have '100% available' inbound data connections for getting the form to render.