473,791 Members | 3,113 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Vista + Net 3.5 + WPF + WindowsFormsHos t + 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 WIndowsFormsHos t 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.AccessV iolationExcepti on' occurred in
PresentationFra mework.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 3534
Hello,

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

Kind regards,
Henning Krause

"star-italia" <st*********@co mmunity.nospamw rote in message
news:ej******** ******@TK2MSFTN GP02.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 WIndowsFormsHos t 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.AccessV iolationExcepti on' occurred in
PresentationFra mework.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****@microsof t.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****@microsof t.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****@microsof t.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 WindowsFormsHos t 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****@microsof t.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 WindowsFormsHos t 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****@microsof t.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\wwwr oot 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****@microsof t.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\wwwr oot 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****@microsof t.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****@microsof t.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
1158
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 Vista. I found there is a download for Visual Studio 2005 for vista. But the operation system for this version is Vista. So I don't know 1) wether this version fixes this particular problem, 2)wether the application released from this version can...
7
2774
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
913
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", line 43, in open
1
2015
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 office 2007 the document opens Word/excel etc and doesn´t allow the preview within the webbrowser control.
3
1884
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 even better!). Something that allows browsing the internet within the window, or possibly just display a web page that I choose (as the application author in code) to show without the ability to browse. The later ability would allow me to change,...
1
1568
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. Other than using the virtual store for some config information, it doesn't do anything fancy. The strange thing is that when the application is executed without an active internet connection, there is a crash in the application for some of our...
2
1725
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 problems will I have installing and running my VB6 app under Vista? If I develop VB2005 apps under XP, what kinds of problems will I have
11
1929
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 the UI) on Vista. It works fine on XP. In a nutshell: - user makes a selection on the UI - System.Reflection.MethodInfo.Invoke() calls into one of our .NET library dlls - Inside the library dll, System.Activator.CreateInstance() is called
6
2758
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 a small window opens at the postion x0 y0 (like I want) but then IE thinks "Hey lets open a other main window too". And that window opens the url 'http://www.google.nl'
0
10428
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10156
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9997
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7537
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6776
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5435
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4110
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3718
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2916
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.