Ken:
Wiley support (Charul Shukla) is providing you this work around directly, but I'm posting it here too in case anyone else is having the problem. If this doesn't solve it, of course continue to work with support and/or post here and we'll also see if Scott can jump in with any additional thoughts:
We have tested the code the customer is referring to and we understand what is probably happening. Once the code is downloaded and saved in some location on the hard drive and when the Chapter 6 Start.xsn is ran, it shows the following error message.
âThis form has been published to one location and then saved or moved to a different location. Before deploying this form to your users, you should publish it again.â
There are two approaches to solve this problem as follows:
Approach 1
Click OK to open the form and then publish it again on exactly the same location from where you opened it. While doing so, InfoPath will ask you for overwriting the already existed form. Proceed with overwriting procedure and published it.
Once you published the form on the same location, close the form and now open it again, this time it will not show any error and will work fine.
Remember: You might need to follow this approach in all the forms showing this error.
Approach 2
Create a New Folder named âBooksâ on your C drive
Create two more subfolders in âbooksâ folder named "InfoPath" and "sample" by following the directory structure given below
C:\Books\Infopath\Sample
Copy all the folders of download code in the samples folder.
After completing all these steps, you will be able to use the code without any problem.
Jim Minatel
Senior Acquisitions Editor
Wiley Technology Publishing
WROX Press
Blog:
http://wroxblog.typepad.com/
Jim's Book of the week:
Professional DotNetNuke ASP.NET Portals