News:

BB code in posts seems to be working again!
I haven't turned on every single tag, so please let me know if there are any that are used/needed but not activated.

Main Menu

Crash using 2010 drawing control in Visual Studio 2012

Started by brian123, August 24, 2012, 12:33:39 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

brian123

Trying to create a winforms app in Visual Studio 2012 using the Microsoft Office Visio 14.0 Drawing Control. Once I drag/drop the control onto a winform, I get a crash:
Failed to create component 'AxHost'. System.Runtime.InteropServices.COMException (0x80004005): Error HRESULT E_FAIL has been returned from a call to a COM component.

Has anyone else seen this, and is there a known workaround?

aledlund

Just off the top of my head, I'd start with Project => properties => Advanced => Compile => and your target is set for AnyCpu... Set the target to match the version of Visio that you have installed.

al

brian123

Thanks Al. The new project is set to AnyCPU by default... I also tried .NET version back to 2.0.

Looks like it's broken, not sure if it's a Visual Studio bug or a Visio bug.

aledlund


brian123

That doesn't work either, I've tried all of those simple project settings, net runtimes, etc. I'd be interested in hearing if anyone has gotten this to work.... Anyone?

Browser ID: smf (is_webkit)
Templates: 4: index (default), Display (default), GenericControls (default), GenericControls (default).
Sub templates: 6: init, html_above, body_above, main, body_below, html_below.
Language files: 4: index+Modifications.english (default), Post.english (default), Editor.english (default), Drafts.english (default).
Style sheets: 4: index.css, attachments.css, jquery.sceditor.css, responsive.css.
Hooks called: 200 (show)
Files included: 34 - 1306KB. (show)
Memory used: 1073KB.
Tokens: post-login.
Cache hits: 14: 0.00184s for 26,766 bytes (show)
Cache misses: 3: (show)
Queries used: 16.

[Show Queries]