Solved

Adobe SVG Viewer won't load in .NET browser control on a Windows 7 64bit OS

Posted on 2010-09-13
4
2,354 Views
Last Modified: 2013-11-29
I have a VB.NET windows application running on the 64bit version of Windows 7 that utilizes a
browser control. The browser control loads a page which uses the Adobe SVG viewer to load
a GIS map. The control works fine when loaded directly in the 32bit version of IE but when I try
to load the SVG viewer within the browser contol I only get the outline of the map with a red X in
top left corner.

It's well known that the Adobe SVG viewer is not supported by the 64bit version of IE8. Is there
any way to force the browser control to use the 32bit version of IE rather than the 64 bit? I would
like to continue to use the browser control as it works fine on any of the 32bit Windows systems
we have the application deployed on. The issues is with the Adobe SVG viewer loading in the
browser control on the Windows 7 64bit systems.

Any help would be greatly appreciated!
0
Comment
Question by:CaptainCrunch7777
  • 2
4 Comments
 
LVL 19

Expert Comment

by:Rimvis
ID: 33805890
Hi CaptainCrunch7777, Check compilation settings for your app. If it is set to "Any CPU", try to use "x86". Maybe this way browser control will load 32-bit IE.
0
 

Author Comment

by:CaptainCrunch7777
ID: 33808683
Hi Sage,

I've tried that but the app will always load the 64 bit version of IE no matter which CPU it's compiled for.
0
 

Accepted Solution

by:
CaptainCrunch7777 earned 0 total points
ID: 33808725
I have solved the issue. It was the Windows Data Execution Prevention that was preventing the viewer from loading in the browser control. To disable DEP in the EXE you need to do the following:

Go to Project Properties -> Compile -> Build Events

Paste the following under post-build:

call "$(DevEnvDir)..\tools\vsvars32.bat"
editbin.exe /NXCOMPAT:NO "$(TargetPath)"

When creating the install package, use the EXE from the obj\Release folder rather than the bin\Release folder, so I had to add another post-build line to patch that one too
0
 

Expert Comment

by:Cut_OS
ID: 33842376
Good solution, thank you so much!
A better way: Go to the project-linker-settings and add under command-line options:

/NXCOMPAT:NO
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

The recent Microsoft changes on update philosophy for Windows pre-10 and their impact on existing WSUS implementations.
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now