473,406 Members | 2,439 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

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

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
Jun 27 '08 #1
9 3509
Hello,

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

Kind regards,
Henning Krause

"star-italia" <st*********@community.nospamwrote in message
news:ej**************@TK2MSFTNGP02.phx.gbl...
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
Jun 27 '08 #2
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:
ms****@microsoft.com.

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.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/subscripti...t/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

Jun 27 '08 #3
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

Linda Liu[MSFT] wrote:
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:
ms****@microsoft.com.

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.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/subscripti...t/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
Jun 27 '08 #4
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

Linda Liu[MSFT] wrote:
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:
ms****@microsoft.com.

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.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/subscripti...t/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
Jun 27 '08 #5
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:
ms****@microsoft.com.

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

Jun 27 '08 #6
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

Linda Liu[MSFT] wrote:
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:
ms****@microsoft.com.

This posting is provided "AS IS" with no warranties, and confers no rights.
Jun 27 '08 #7
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:
ms****@microsoft.com.

This posting is provided "AS IS" with no warranties, and confers no rights.
Jun 27 '08 #8
Hi Linda, are there any news?

Thanks in advance

Linda Liu[MSFT] wrote:
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:
ms****@microsoft.com.

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

Jun 27 '08 #9
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(v-****@microsoft.com):

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:
ms****@microsoft.com.

This posting is provided "AS IS" with no warranties, and confers no rights.
Jun 27 '08 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: peter shaw | last post by:
I am using c# of visual studio 2005 to develop a program. The application uses a webbrowser component. It displays html, word, pdf without problem. But I just find it cannot display anything on...
7
by: Dirk Reske | last post by:
Hello, In Windows Vista I can make a memory dump of an application in the taskmanager. Is there an api call to create a memory dump, so that I can do that out of my app? thanks!
0
by: Norman Lorrain | last post by:
I don't have a Vista machine to test this on, but I have users reporting a problem with the following e.g. import webbrowser webbrowser.open('http://www.google.com') File "webbrowser.pyc",...
1
by: swaykid | last post by:
Hi, I have a webbrowser control embedded in a winform (vs2005) and use it for previewing documents. The form works perfectly in XP with office 2003 When using the same form in Vista with...
3
by: Peter Oliphant | last post by:
It's not necessary, but it would be nice if there was a way I could easily create something like a 'web browser form' or a 'display web page form' as forms in my application (in a Panel would be...
1
by: Alex | last post by:
Hello everybody, I've been working for days on a "twilight zone" bug and I can't make any sense of it. This is in an application that was developped on XP and that was modified to handle Vista....
2
by: 13Rockes | last post by:
I am in the process of writing programs using VB6 in XP Pro. However, I am thinking about starting over using VB2005 as my company is migrating to Vista. Two questions... What kinds of...
11
by: idoublepress | last post by:
Hi all, I've been struggling with an issue that I hope you can comment on or provide suggestions to. Our .NET 2.0 (VS2005) based product is crashing (when the user selects a particular feature on...
6
by: gcmartijn | last post by:
H! I using a script that opens a internet page in a small window (what I can control) In XP everything was working fine, but now I'm using Vista with IE7 and this is what happends now: First...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.