Help with VS2005

T

Tim Philomeno

I am trying to get Infopath to run using VS2005. I have both "Office
Infopath 2003 Toolkit for VS 2005" and "VS 2005 Tools for the Microsoft
Office System" installed.

When I try to create a simple form using VS2005 I get the error "InfoPath
cannot open the selected form because of an error in the form's code. The
format of the file '<formname>.dll' is invalid."

I have been using Infopath with VS2003 for about a year now with no issues....

Help!

Tim Philomeno, Sparling, Inc.
 
B

Ben Walters

Hey Tim
I've had this problm before basicaly the issue is that when you run an
InfoPath form with managed code InfoPath expects to find the compiled dll in
the same location as the rest of the form files. Visual Studio however always
compiles the dll and put is in [SolutionDirectory]\bin\debug.

you have 2 options 1

1: rebuild the code file for your project then move the dll out to the same
location as the rest of your form files

2: Open the properties for the code project, click on the build tab and
change the output path to your solution directory.

if you need any more help let me know and i'll put some instructions up on
my blog for you

Cheers
Ben
 
D

Dinos

Ben,

I'm having the same problem but neither of the solutions you suggested
fixed my problem. do you have any other sugestions?

--
Dino


Ben Walters said:
Hey Tim
I've had this problm before basicaly the issue is that when you run an
InfoPath form with managed code InfoPath expects to find the compiled dll in
the same location as the rest of the form files. Visual Studio however always
compiles the dll and put is in [SolutionDirectory]\bin\debug.

you have 2 options 1

1: rebuild the code file for your project then move the dll out to the same
location as the rest of your form files

2: Open the properties for the code project, click on the build tab and
change the output path to your solution directory.

if you need any more help let me know and i'll put some instructions up on
my blog for you

Cheers
Ben

Tim Philomeno said:
I am trying to get Infopath to run using VS2005. I have both "Office
Infopath 2003 Toolkit for VS 2005" and "VS 2005 Tools for the Microsoft
Office System" installed.

When I try to create a simple form using VS2005 I get the error "InfoPath
cannot open the selected form because of an error in the form's code. The
format of the file '<formname>.dll' is invalid."

I have been using Infopath with VS2003 for about a year now with no issues....

Help!

Tim Philomeno, Sparling, Inc.
 

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