Vista + Net 3.5 + WPF + WindowsFormsHost + WebBrowser + SVG = CRASH


S

star-italia

Hi, I have a big problem:

I am developing a WPF application on Windows Vista SP1 Based on the .NET Framework 3.5 and WPF.
In my application I use a WIndowsFormsHost to (of course) host a WebBrowser.
Everything is ok, but if i try to load an SVG into the WebBrowser the application crashes with the
following message:

---------------------------------------------------------------------------
An exception of type 'System.AccessViolationException' occurred in
PresentationFramework.dll but was not handled in user code

Additional information: Attempted to read or write protected memory.
This is often an indication that other memory is corrupt.
---------------------------------------------------------------------------

On my PC Vista is up to date and I use IE7 that is up to date too.
Loading that SVG directly in IE7, everything goes well.

I also noted that everything but html crashes my application. I don't know if there are problems
loading the plug in within the WebBrowser...
Because if i load the same pages directly on IE7 they load normally.

Someone can help me?

Thanks in advance
 
Ad

Advertisements

H

Henning Krause [MVP - Exchange]

Hello,

have you tried loading your HTML document in a WPF Frame?

Kind regards,
Henning Krause
 
L

Linda Liu[MSFT]

Hi Star-italia,

I'm trying to reproduce the problem on my side.

Currently, I haven't installed SP1 on my Windows Vista Enterprise machine,
so I couldn't perform a test on Vista SP1 at present. But I did run my test
WPF application on a Windows XP Professional SP2 machine and found that the
problem you described does not exist on Windows XP SP2.

I will install SP1 on my Vista machine and perform a test on it later. You
can also run your WPF application on a Windows XP SP2 machine to see if the
problem still exists.

As soon as I have any new finding, I will update it to you. I appreciate
your patience!

Sincerely,
Linda Liu
Microsoft Online Community Support

Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
(e-mail address removed).

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
 
S

star-italia

Hi Linda, I can provide you the svg I'm trying to show.
Of course on my pc i've installed the Adobe SVGViewer plugin

the SVG is located here:
http://origano.altervista.org/a.rar

On WIndows XP SP3 I've tried, and it works like a charm :D

Thanks for your help
 
S

star-italia

I forgot to mention that the svg reside on my HD, so when i double click on it
IE7 tells me that the content can be dangerous, but after clicking on the
top sidebar, it works.

Another thing I forgot to mention, is that this thing is crucial for my
application because an entire part of the app uses a "local website" which use
SVG.

Thanks again
 
L

Linda Liu[MSFT]

Hi Star-italia,

Thank you for your prompt reply!

I forgot to mention that I also installed the Adobe SVG Viewer before I
performed tests : )

I performed another test on Windows Vista Enterprise with SP1 and found
that I couldn't browse a .svg page from within the WebBrowser control
hosted in the WindowsFormsHost element.

I also create a WinForm application and add a WebBrowser control on the
form. When running the WinForm application on the Vista machine, I found
that I couldn't browse the .svg page either.

In my tests, neither the WPF nor the WinForm application crashes when
browsing the .svg page. Instead, I got a "Internet Explorer Script Error"
dialog saying "An error has occured in the script on this page".

It seems that the problem may be related to the native Web Browser COM
component on Vista because the WebBrowser control in .NET is only a managed
wrapper of the native Web Browser component.

I will consult this issue in our internal discussion group. As soon as I
get any hint, I will update it to you.

I appreciate your patience!

Sincerely,
Linda Liu
Microsoft Online Community Support

Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
(e-mail address removed).

This posting is provided "AS IS" with no warranties, and confers no rights.
 
Ad

Advertisements

S

star-italia

Can ou please give a try with the SVG i provided in the previous post?
Because with every other SVG I too get the script error, but with the
one i need to use, the app crashes.

However here is the link:

http://origano.altervista.org/a.rar

Thanks in advance
 
L

Linda Liu[MSFT]

Hi Star-italia,

Thank you for your reply!
Can ou please give a try with the SVG i provided in the previous post?

In fact I have performed a test with the SVG you provided in the previous
message. The result of the test is that I only get a script error while
attempting to browse the SVG files you provided.

BTW, I place the SVG files you provided in the C:\Inetpub\wwwroot directory
on the web server and add a MIME type for SVG files(extension: .svg MIME
type: text/svg) in the IIS manager. The OS of my web server is Windows
Vista Enterprise.


Sincerely,
Linda Liu
Microsoft Online Community Support

Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
(e-mail address removed).

This posting is provided "AS IS" with no warranties, and confers no rights.
 
S

star-italia

Hi Linda, are there any news?

Thanks in advance
Hi Star-italia,

Thank you for your reply!


In fact I have performed a test with the SVG you provided in the previous
message. The result of the test is that I only get a script error while
attempting to browse the SVG files you provided.

BTW, I place the SVG files you provided in the C:\Inetpub\wwwroot directory
on the web server and add a MIME type for SVG files(extension: .svg MIME
type: text/svg) in the IIS manager. The OS of my web server is Windows
Vista Enterprise.


Sincerely,
Linda Liu
Microsoft Online Community Support

Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
(e-mail address removed).

This posting is provided "AS IS" with no warranties, and confers no rights.
 
Ad

Advertisements

L

Linda Liu[MSFT]

Hi Star-italia,

Due to the complexity and lengthy troubleshooting in this issue, I would
like to have a Product Support Professional from Microsoft CSS work with
you to resolution. Please note that there will be no cost to you for this
support incident.

To expedite creation of the support incident, please e-mail me with the
following information([email protected]):

o Customer Name
o Customer email address
o Company Name, if applicable
o Best times to reach you, and your time zone.
o Microsoft Support Contract Information, if applicable
o Complete Address
o Daytime Telephone Number
o Operating System(s) In Use
o Operating System Language, especially if not US English
o Application Language, especially if not US English
o Any additional telephone number(s), in case you cannot be reached at your
primary telephone number.

After I receive an e-mail from you with the requested information, I will
create a support incident for you. Then, one of our support professionals
will contact you to establish a mutually convenient time to work on this.

Thank you again for your patience in working on this issue in the community.

Sincerely,
Linda Liu
Microsoft Online Community Support

Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
(e-mail address removed).

This posting is provided "AS IS" with no warranties, and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top