IT Administrators‎ > ‎Installation‎ > ‎

Error: 'Programmatic Access to Visual Basic Project Disabled' when Exporting to HTML

 This article is suitable for an IT Adminstrator

Ref: 20090722
Last edited 28th September 2011

Symptoms:

When exporting to HTML, perhaps as part of an automated publication, the following errors are reported:
 
22/07/2009 11:30:02 Failure exporting C:\Triaster\Showcase\3 Master\ProcessMap.vdx to html.

=== Begin For Triaster Support ===

The following content may be useful to the Triaster support team. Please copy and paste it into an e-mail to
support@triaster.co.uk and attach any referenced files if you would like help understanding how to avoid this issue reoccurring.
Programmatic access to Visual Basic project is disabled. Failure exporting C:\Triaster\Showcase\3 Master\ProcessMap.vdx to html. System.Runtime.InteropServices.COMException (0x86DB08BA): Programmatic access to Visual Basic project is disabled. at Triaster.ProcessNavigator.Common.ProcessObjects.DocumentsBase.BeginVisioScope(String strFullPathAndFilename, String strTemplateFileName) at Triaster.ProcessNavigator.Common.ProcessObjects.Maps.BeginVisioScope(String strFullPathAndFilename) at Triaster.ProcessNavigator.AnalystEdition.clsExportToHTML.PerformExport(String strTargetRoot, Boolean blnIncludeHeaderAndFooter, String strHeaderFileName, String strFooterFileName, Boolean blnAddMetadata, Boolean blnIncludeProperties, Boolean blnUseVisio2002MouseOver, Boolean blnUseDescriptionMouseOver, Boolean blnConvertHyperlinkCircleLinks, Boolean blnExportModifiedFilesOnly)

=== Finish For Triaster Support ===

22/07/2009 11:30:02 Failure exporting to HTML

=== Begin For Triaster Support ===

The following content may be useful to the Triaster support team. Please copy and paste it into an e-mail to
support@triaster.co.uk and attach any referenced files if you would like help understanding how to avoid this issue reoccurring. Object reference not set to an instance of an object. Failure exporting to HTML System.NullReferenceException: Object reference not set to an instance of an object. at Triaster.ProcessNavigator.Common.ProcessObjects.DocumentsBase.EndVisioScope(String strFullPathAndFilename, Boolean blnAllowSave) at Triaster.ProcessNavigator.AnalystEdition.clsExportToHTML.PerformExport(String strTargetRoot, Boolean blnIncludeHeaderAndFooter, String strHeaderFileName, String strFooterFileName, Boolean blnAddMetadata, Boolean blnIncludeProperties, Boolean blnUseVisio2002MouseOver, Boolean blnUseDescriptionMouseOver, Boolean blnConvertHyperlinkCircleLinks, Boolean blnExportModifiedFilesOnly) at Triaster.ProcessNavigator.AnalystEdition.clsExportToHTML.Export(String strTargetRoot, Boolean blnBackUpExisting, String strBackupRoot, Boolean blnIncludeHeaderAndFooter, String strHeaderFileName, String strFooterFileName, Boolean blnAddMetadata, Boolean blnIncludeProperties, Boolean blnUseVisio2002MouseOver, Boolean blnUseDescriptionMouseOver, Boolean blnConvertHyperlinkCircleLinks, Boolean blnExportModifiedFilesOnly)

=== Finish For Triaster Support ===

Cause:
 
The errors occur when 'Trust access to Visual Basic Project' isn't set in Visio.
 
Solution:
 
This should be configured for each user, as it's a per-user setting. On a publication server, it's particularly important that it's configured for the publication user.
Log on to the PC as the user that needs to be configured.
Run Visio.
  • From the Visio menu, Tools > Macros > Security...
  • In the Security dialog, click on the 'Trusted Publishers' tab.
  • On the 'Trusted Publishers' tab, ensure 'Trust access to Visual Basic Project' is checked.
  • Click OK to update the settings and close the dialog.
The updated setting will take effect when Visio next starts.
 
Note: The above describes how to configure Visio 2003. Configuring Visio 2007 is very similar, but set through the Tools > Trust Center dialog.
 
Applies to:
  • Process Navigator all versions
  • Visio 2003
  • Visio 2007 

Need further help? Contact the Triaster Support team by e-mailing support@triaster.co.uk or by calling us on +44 (0)870 402 1234.
 
Do you have any feedback or suggestions that you would like to share with Triaster? We would love to hear from you! Please e-mail feedback@triaster.co.uk