Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > .NET General

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

Reply
 
Old 06-18-2008   #1 (permalink)
star-italia


 
 

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

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-lliu@xxxxxx):

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:
msdnmg@xxxxxx.

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

My System SpecsSystem Spec
Old 06-18-2008   #2 (permalink)
Henning Krause [MVP - Exchange]


 
 

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

Hello,

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

Kind regards,
Henning Krause

"star-italia" <star-italia@xxxxxx> wrote in message
news:ejH9ZES0IHA.2384@xxxxxx
Quote:

> 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
My System SpecsSystem Spec
Old 06-19-2008   #3 (permalink)
Linda Liu[MSFT]


 
 

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

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:
msdnmg@xxxxxx.

==================================================
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.

My System SpecsSystem Spec
Old 06-19-2008   #4 (permalink)
star-italia


 
 

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

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

Thanks for your help

Linda Liu[MSFT] wrote:
Quote:

> 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:
> msdnmg@xxxxxx.
>
> ==================================================
> 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.
>
My System SpecsSystem Spec
Old 06-19-2008   #5 (permalink)
star-italia


 
 

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

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:
Quote:

> 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:
> msdnmg@xxxxxx.
>
> ==================================================
> 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.
>
My System SpecsSystem Spec
Old 06-20-2008   #6 (permalink)
Linda Liu[MSFT]


 
 

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

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:
msdnmg@xxxxxx.

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

My System SpecsSystem Spec
Old 06-20-2008   #7 (permalink)
star-italia


 
 

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

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:
Quote:

> 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:
> msdnmg@xxxxxx.
>
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
My System SpecsSystem Spec
Old 06-23-2008   #8 (permalink)
Linda Liu[MSFT]


 
 

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

Hi Star-italia,

Thank you for your reply!
Quote:

> 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:
msdnmg@xxxxxx.

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


My System SpecsSystem Spec
Old 06-25-2008   #9 (permalink)
star-italia


 
 

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

Hi Linda, are there any news?

Thanks in advance

Linda Liu[MSFT] wrote:
Quote:

> Hi Star-italia,
>
> Thank you for your reply!
>
Quote:

>> 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:
> msdnmg@xxxxxx.
>
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
>
My System SpecsSystem Spec
Old 06-25-2008   #10 (permalink)
Linda Liu[MSFT]


 
 

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

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-lliu@xxxxxx):

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:
msdnmg@xxxxxx.

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


My System SpecsSystem Spec
Reply

Thread Tools



Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46