Search
Web Braintrove
Site Navigation
Home
Products
Tags
Levels
Dates
Authors
5 MOST RECENT
Perform a Case-Insensitive String Comparison without Using Translate()
Force a Field Value to a Boolean Using Rules
Quickly Crop to a Shadow
Sum Repeating Time Values
Preview and Open Forms after Upgrading to Internet Explorer 8
5 MOST POPULAR
Pass Query String Parameters to an ASP.NET Xml Control
Access a Method in a Master Page with Code-Behind
Prevent Namespace Prefixes from Being Copied to the Output
Create Groups in a Drop-Down List Box
Change the Default Action of the Power Button on the Windows Vista Start Menu
5 MOST FORGOTTEN
Install Windows 7 Beta onto a Virtual Machine
Configure Lab Color Mode Defaults for Braintrove Articles
Permanently Change the Default Styles for New Word Documents
Enable Themes in Windows Server
Use Logical Operators in Place of Conditional Expressions
Microsoft MVP
Popular
This article has been viewed 922 times.

Get InfoPath to Preview VSTO and VSTA Projects

Page 5 of 7
Written by Gregory Scot Collins
Friday, 29 February 2008, 5:08 AM

Installation discs

My wife at one point suggested that, since no one else was experiencing the issue, maybe one of my MSDN discs was faulty. It made sense to me as a possibility as I had been having some problems with the Visual Studio disc. Downloading the discs was not an option because I didn't have a fast enough Internet connection. So, after much prodding from her, I finally called MSDN and they sent out a new set of discs. What was supposed to be an overnight delivery ended up taking a week because someone in shipping sent it standard mail—ugh! But, sadly the new discs made no difference, and I was able to drop it as a possibility.

The new laptop

The second miracle fix occurred as I prepared to make a business trip. My aging laptop had two issues: it could not preview InfoPath managed code projects, and more importantly it had a dead battery (meaning it needed to always be plugged in). So it was time to upgrade. After the new laptop arrived, I only had a few days to get it built out for the trip. I reformatted it and installed Windows Vista Ultimate (32-bit), Office Ultimate 2007, Visual Studio 2005 Professional + SP1 + Vista Patch, Visual Studio 2005 Team Explorer, and VSTO SE. To my horror, the issue persisted on this new machine.
By this time, I am at my wits end on this. I could be found kicking and screaming. Oh, if you only knew how much turmoil this issue caused me!
On multiple occasions I had scoured the Internet in search of anyone else reporting the same issue, but none could be found. I had talked with several members of the Microsoft InfoPath team, but no one had ever heard of the issue. I had worked with Microsoft Tier 1 and Tier 2 support, but they were unable to help. It seemed as though I was to remain alone in my pain, that no one else in the entire world was experiencing this issue (as unlikely as that seemed), while I encountered it on every machine I ever touched, including multiple desktop and laptop computers of different makes and models installed with various versions of Windows including XP (32-bit) and Vista (32-bit and 64-bit).
After much frustration and some praying for help, I finished building out my machine so that I could at least still use it on my trip. While I wouldn't be able to preview, I could always publish the form and open it from the published location (refer to Solution 1: The workaround). At least that worked. So, accordingly I installed Internet Information Services (IIS) (a prerequisite for SQL), and then installed SQL Server 2005 Enterprise + SP2. Then, suddenly preview started working! It makes no sense to me now why that would have made any difference, but again God smiled on me and it started working. I've since installed other machines in the same manner and have not had that same success. I really don't know why it worked, but it did, and I thanked my Maker for it.

The breaking update

Once I got it working, I created a restore point, and then started installing updates. But, after all of the updates finished installing, preview stopped working again. Aha! This has happened to me twice now. One of these updates was causing the issue to rear its ugly head. I performed a system restore, verified everything was working, then laboriously, started installing the updates a few at a time. At length, I tracked the breaking update to KB937143: Cumulative Security Update for Internet Explorer. This update alone affected my ability to preview an InfoPath managed code project. And uninstalling it did not fix the problem, so I resorted to another system restore.

What didn't work

Having already disabled Windows Update on this machine, I left it at that and emailed my experience to my friends at Microsoft. We discussed various ideas and thoughts. They had me try a VSTA form instead of VSTO; same issue. Script or no code, on the other hand, previewed just fine. I tried a full Office Repair—no difference. They told me: "Launching the preview mode, all we do is check whether the parent process is a safe one. We do this by looking at a few registry values." And again: "Currently we are thinking it might be some registry values being corrupted or change of IE settings after the installation." They asked if they could take a look at my machine, and as I was going to be in the Redmond area on my business trip, I arranged a time to meet with them. At the appointed time, they dug through my laptop registry and tried a few things, but were ultimately unsuccessful in their attempts. I left the exact steps I had taken to build out my machine (what worked, what didn't work), including the specific update that caused the issue with one of their testers to try to reproduce the issue. But all such attempts were fruitless. Again, I was left a lone man in the wilderness of no preview.
Bookmark this Article
StumbleUpon  Stumble It!
Digg  Digg It!
del.icio.us  del.icio.us
List of Figures
Screenshot 1 - An error dialog while trying to preview a VSTO or VSTA InfoPath project.
Screenshot 2 - Disabling automatic intranet detection in Internet Explorer.
Screenshot 3 - A site that has been manually added to the Local Intranet zone.
Screenshot 4 - Establishing a domain impersonation for previewing a form template.
Listing 1 - The zone attribute flag enumeration.
Article Tags
Great Deals
TigerDirect Exclusive Deals, Limited Time Offers, Act Now And Save!
Find all current special offers on Adobe products.
Try SugarSync Free!
Join WebHost4Life.com
TigerDirect
Computers4SURE (4SURE.com - An Office Depot Co.)
Copyright © 2006-2010 Braintrove. All rights reserved. Braintrove, braintrove.com, and the Braintrove logo are trademarks of Gregory Scot Collins in the United States and/or other countries. The names of actual companies and products mentioned herein may be the trademarks of their respective owners. Any rights not expressly granted herein are reserved.