Issue regarding running infopath from Visual Studio

R

Ron Herhuth

Hi,

I have a Visual Studio 2008 Solution that contains an InfoPath project. We
have the project in subversion source control. I used to be able to run the
project "F5" from within Visual Studio but only of late do I get "InfoPath
cannot open the selected form." If I try to open the manifest.xsf file in
InfoPath I get the error: "InfoPath cannot create a new, blank form.
InfoPath cannot open the form. To fix this problem, contact your system
administrator." When I view the details I get: "Form template:
C:\Users\jsmith\Documents\Subversion\Trunk\InterimInfoPathContracts\AGContract\InfoPath
Form Template\manifest.xsf
The system cannot find the file specified."

This can't be the issue because if I paste that path into an explorer window
it attempts to open the file.

I have the security setup to domain and I don't think security is an issue
because it runs fine when I publish the form, it is only a problem when I
attempt to run the project from Visual Studio.

If I publish the form infopath has no problem running it. I tried clearing
the cache many times to no avail. What is very odd too is that when I check
my work in and preview the same form on several other machines it opens and
runs everytime. It is a bugger debugging code by using alerts...does anyone
have any ideas on how I can get this project to run on my machine?

Thanks in advance for any advice,
Ron
 
G

Greg Collins

Ron,

While I have run into various similar situations and find these to be very
frustrating, I have found a couple of solutions (with much pain). You can
find those here:

http://www.braintrove.com/products/Visual-Studio-Tools-for-Office,InfoPath

However, when you can find no other way to fix it, one solution I've found
is to create a new VS project based on the existing form, them moving the
code over to the new project. While not ideal, this has invariably fixed
whatever the issue was. Afterward, I'll compare the old project to the new
to see if I can identify what was different. Sometimes I can find the issue,
and sometimes not.

Good luck.
Greg
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top