![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| 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. |
| |||||||
| |
| | #1 (permalink) |
| | Viewing Xaml in Internet Explorer Hello everybody! I can't view my Xaml files in Internet Explorer. I've got an error: Startup URI: C:\test.xaml Application Identity: file:///C:/WINDOWS/WinFX/v3.0/WPF/XamlViewer/XamlViewer.xbap#XamlViewer.application, Version=1.0.0.0, Culture=neutral, PublicKeyToken=ed9f9a6c9f3a9db8, processorArchitecture=msil/XamlViewer.exe, Version=1.0.0.0, Culture=neutral, PublicKeyToken=ed9f9a6c9f3a9db8, processorArchitecture=msil, type=win32 System.Windows.Markup.XamlParseException: Invalid character in the given encoding. Line 10, position 22. ---> System.Xml.XmlException: Invalid character in the given encoding. Line 10, position 22. And then, a list of exeptions... ////////////////////////// But this file works perfectly in EID or EGD.... Is it a component I haven't installed properly? Thanks for your answer |
My System Specs![]() |
| | #2 (permalink) |
| | RE: Viewing Xaml in Internet Explorer Can you post the first 10-11 lines of your XAML file? From the error message it seems there is a problem at line 10. -- Valentin Iliescu [MVP - Client Application Development] "Ben" wrote: > Hello everybody! > > I can't view my Xaml files in Internet Explorer. I've got an error: > > Startup URI: C:\test.xaml > Application Identity: > file:///C:/WINDOWS/WinFX/v3.0/WPF/XamlViewer/XamlViewer.xbap#XamlViewer.application, > Version=1.0.0.0, Culture=neutral, PublicKeyToken=ed9f9a6c9f3a9db8, > processorArchitecture=msil/XamlViewer.exe, Version=1.0.0.0, > Culture=neutral, PublicKeyToken=ed9f9a6c9f3a9db8, > processorArchitecture=msil, type=win32 > > System.Windows.Markup.XamlParseException: Invalid character in the > given encoding. Line 10, position 22. ---> System.Xml.XmlException: > Invalid character in the given encoding. Line 10, position 22. > > And then, a list of exeptions... > > ////////////////////////// > But this file works perfectly in EID or EGD.... Is it a component I > haven't installed properly? > > Thanks for your answer > > |
My System Specs![]() |
| | #3 (permalink) |
| | Re: Viewing Xaml in Internet Explorer Thank's for the answer... in fact, it works if I remove every comment line (<!-- My comment --> ) from my xaml file... Isn't it possible to have our xaml file working in IE even with comment liens in it? -- Ben |
My System Specs![]() |
| | #4 (permalink) |
| | Re: Viewing Xaml in Internet Explorer Is that copy/pasted exactly? I noticed the portion "--->" after the line number. I'm not familiar with the error format, but that looks like an indication of your error, especially given your mention of removing comments. If that's the case, and you actually do have the trailing end of your comment with a triple-dash greater-than ("--->"), rather than a double-dash greater-than ("-->"), you do not have well-formed XML, and the IE parser is correct to balk at it. If either Expression product is allowing it, then they're mis-parsing the XML. You should report it as a bug. |
My System Specs![]() |
| | #5 (permalink) |
| | Re: Viewing Xaml in Internet Explorer No, there isn't any "--->" : In fact, I don't have any xaml file working properly in IE (even the sample ones) for instance, the file: ///////////////////////////////////////////////////////////////////////// <!-- Generated by Adobe Illustrator CS -> XAML Export Plug-In Version 0.14 --> <!-- For questions, contact Mike Swanson: http://www.mikeswanson.com/XAMLExport --> <Canvas Width="527.031250" Height="119.000000" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> <!-- Calque 1/<Groupe>/<Groupe>/<Tracé> --> <Path Fill="#ff085aa5" Data="F1 M 229.159180,55.635742 L 232.751953,32.051758 C 232.751953,32.050781 232.752930,32.049805 232.752930,32.048828 L 233.204102,29.085938 L 236.203125,29.114258 L 236.204102,29.114258 L 239.949219,29.149414 L 243.696289,29.185547 C 245.344727,29.200195 245.821289,28.183594 244.754883,26.925781 L 234.692383,15.053711 L 224.629883,3.182617 C 223.563477,1.925781 221.672852,1.779297 220.426758,2.859375 L 206.675781,14.791992 L 192.926758,26.723633 C 191.681641,27.803711 192.010742,28.700195 193.657227,28.717773 L 197.406250,28.752930 L 201.151367,28.787109 C 201.152344,28.787109 201.153320,28.787109 201.154297,28.787109 L 204.151367,28.815430 L 200.106445,55.364258 L 196.513672,78.947266 C 196.513672,78.947266 196.512695,78.949219 196.512695,78.950195 L 196.061523,81.913086 L 189.316406,81.850586 L 185.571289,81.815430 C 183.920898,81.799805 183.444336,82.817383 184.510742,84.075195 L 194.573242,95.946289 L 204.635742,107.818359 C 205.702148,109.075195 207.592773,109.221680 208.838867,108.141602 L 222.589844,96.208984 L 236.338867,84.277344 C 237.583984,83.197266 237.254883,82.300781 235.608398,82.283203 L 231.859375,82.249023 L 228.114258,82.213867 C 228.113281,82.213867 228.112305,82.213867 228.111328,82.213867 L 225.114258,82.185547 L 229.159180,55.635742 Z"/> </Canvas> ///////////////////////////////////////////////////////////////////////// Will give the error: Startup URI: D:\documents and Settings\bbouilliez\Desktop\titre3.xaml Application Identity: file:///C:/WINDOWS/WinFX/v3.0/WPF/XamlViewer/XamlViewer.xbap#XamlViewer.application, Version=1.0.0.0, Culture=neutral, PublicKeyToken=ed9f9a6c9f3a9db8, processorArchitecture=msil/XamlViewer.exe, Version=1.0.0.0, Culture=neutral, PublicKeyToken=ed9f9a6c9f3a9db8, processorArchitecture=msil, type=win32 System.Windows.Markup.XamlParseException: Invalid character in the given encoding. Line 14, position 40. ---> System.Xml.XmlException: Invalid character in the given encoding. Line 14, position 40. at System.Xml.XmlTextReaderImpl.Throw(Exception e) at System.Xml.XmlTextReaderImpl.Throw(String res, String arg) ............. ........... and much more.... ............. //////////////////////////////////////////////////////////////////////// Thank's -- Ben |
My System Specs![]() |
| | #6 (permalink) |
| | Re: Viewing Xaml in Internet Explorer How about if you remove the "é" from "Tracé"? Note the error says "invalid character in the given encoding" - and there is no encoding declared. - Doug > No, there isn't any "--->" : > > In fact, I don't have any xaml file working properly in IE (even the > sample ones) > for instance, the file: > ////////////////////////////////////////////////////////////////////// > /// > > <!-- Generated by Adobe Illustrator CS -> XAML Export Plug-In Version > 0.14 --> > <!-- For questions, contact Mike Swanson: > http://www.mikeswanson.com/XAMLExport --> > <Canvas Width="527.031250" Height="119.000000" > xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" > xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> > <!-- Calque 1/<Groupe>/<Groupe>/<Tracé> --> > <Path Fill="#ff085aa5" Data="F1 M 229.159180,55.635742 L > 232.751953,32.051758 C 232.751953,32.050781 232.752930,32.049805 > 232.752930,32.048828 L 233.204102,29.085938 L 236.203125,29.114258 L > 236.204102,29.114258 L 239.949219,29.149414 L 243.696289,29.185547 C > 245.344727,29.200195 245.821289,28.183594 244.754883,26.925781 L > 234.692383,15.053711 L 224.629883,3.182617 C 223.563477,1.925781 > 221.672852,1.779297 220.426758,2.859375 L 206.675781,14.791992 L > 192.926758,26.723633 C 191.681641,27.803711 192.010742,28.700195 > 193.657227,28.717773 L 197.406250,28.752930 L 201.151367,28.787109 C > 201.152344,28.787109 201.153320,28.787109 201.154297,28.787109 L > 204.151367,28.815430 L 200.106445,55.364258 L 196.513672,78.947266 C > 196.513672,78.947266 196.512695,78.949219 196.512695,78.950195 L > 196.061523,81.913086 L 189.316406,81.850586 L 185.571289,81.815430 C > 183.920898,81.799805 183.444336,82.817383 184.510742,84.075195 L > 194.573242,95.946289 L 204.635742,107.818359 C 205.702148,109.075195 > 207.592773,109.221680 208.838867,108.141602 L 222.589844,96.208984 L > 236.338867,84.277344 C 237.583984,83.197266 237.254883,82.300781 > 235.608398,82.283203 L 231.859375,82.249023 L 228.114258,82.213867 C > 228.113281,82.213867 228.112305,82.213867 228.111328,82.213867 L > 225.114258,82.185547 L 229.159180,55.635742 Z"/> > > </Canvas> > > ////////////////////////////////////////////////////////////////////// > /// Will give the error: > > Startup URI: D:\documents and Settings\bbouilliez\Desktop\titre3.xaml > Application Identity: > file:///C:/WINDOWS/WinFX/v3.0/WPF/XamlViewer/XamlViewer.xbap#XamlViewe > r.app > lication, > Version=1.0.0.0, Culture=neutral, PublicKeyToken=ed9f9a6c9f3a9db8, > processorArchitecture=msil/XamlViewer.exe, Version=1.0.0.0, > Culture=neutral, PublicKeyToken=ed9f9a6c9f3a9db8, > processorArchitecture=msil, type=win32 > System.Windows.Markup.XamlParseException: Invalid character in the > given encoding. Line 14, position 40. ---> System.Xml.XmlException: > Invalid character in the given encoding. Line 14, position 40. > at System.Xml.XmlTextReaderImpl.Throw(Exception e) > at System.Xml.XmlTextReaderImpl.Throw(String res, String arg) > ............ > ........... > and much more.... > ............ > > ////////////////////////////////////////////////////////////////////// > // > > Thank's > |
My System Specs![]() |
| | #7 (permalink) |
| | Re: Viewing Xaml in Internet Explorer In the past I've seen problems with the the XML parser choking on non UTF (ansi) files containing accented characters. Try opening the offending files in notepad and in the save as dialog making sure the encoding is UTF-8. -- Ifeanyi Echeruo [MSFT] This posting is provided "AS IS" with no warranties, and confers no rights. "Douglas Stockwell" <doug@remove.11011.net> wrote in message news:eca9ec3813afa98c83ca960de6880@news.microsoft.com... > How about if you remove the "é" from "Tracé"? > > Note the error says "invalid character in the given encoding" - and there > is no encoding declared. > > - Doug > >> No, there isn't any "--->" : >> >> In fact, I don't have any xaml file working properly in IE (even the >> sample ones) >> for instance, the file: >> ////////////////////////////////////////////////////////////////////// >> /// >> >> <!-- Generated by Adobe Illustrator CS -> XAML Export Plug-In Version >> 0.14 --> >> <!-- For questions, contact Mike Swanson: >> http://www.mikeswanson.com/XAMLExport --> >> <Canvas Width="527.031250" Height="119.000000" >> xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" >> xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> >> <!-- Calque 1/<Groupe>/<Groupe>/<Tracé> --> >> <Path Fill="#ff085aa5" Data="F1 M 229.159180,55.635742 L >> 232.751953,32.051758 C 232.751953,32.050781 232.752930,32.049805 >> 232.752930,32.048828 L 233.204102,29.085938 L 236.203125,29.114258 L >> 236.204102,29.114258 L 239.949219,29.149414 L 243.696289,29.185547 C >> 245.344727,29.200195 245.821289,28.183594 244.754883,26.925781 L >> 234.692383,15.053711 L 224.629883,3.182617 C 223.563477,1.925781 >> 221.672852,1.779297 220.426758,2.859375 L 206.675781,14.791992 L >> 192.926758,26.723633 C 191.681641,27.803711 192.010742,28.700195 >> 193.657227,28.717773 L 197.406250,28.752930 L 201.151367,28.787109 C >> 201.152344,28.787109 201.153320,28.787109 201.154297,28.787109 L >> 204.151367,28.815430 L 200.106445,55.364258 L 196.513672,78.947266 C >> 196.513672,78.947266 196.512695,78.949219 196.512695,78.950195 L >> 196.061523,81.913086 L 189.316406,81.850586 L 185.571289,81.815430 C >> 183.920898,81.799805 183.444336,82.817383 184.510742,84.075195 L >> 194.573242,95.946289 L 204.635742,107.818359 C 205.702148,109.075195 >> 207.592773,109.221680 208.838867,108.141602 L 222.589844,96.208984 L >> 236.338867,84.277344 C 237.583984,83.197266 237.254883,82.300781 >> 235.608398,82.283203 L 231.859375,82.249023 L 228.114258,82.213867 C >> 228.113281,82.213867 228.112305,82.213867 228.111328,82.213867 L >> 225.114258,82.185547 L 229.159180,55.635742 Z"/> >> >> </Canvas> >> >> ////////////////////////////////////////////////////////////////////// >> /// Will give the error: >> >> Startup URI: D:\documents and Settings\bbouilliez\Desktop\titre3.xaml >> Application Identity: >> file:///C:/WINDOWS/WinFX/v3.0/WPF/XamlViewer/XamlViewer.xbap#XamlViewe >> r.app >> lication, >> Version=1.0.0.0, Culture=neutral, PublicKeyToken=ed9f9a6c9f3a9db8, >> processorArchitecture=msil/XamlViewer.exe, Version=1.0.0.0, >> Culture=neutral, PublicKeyToken=ed9f9a6c9f3a9db8, >> processorArchitecture=msil, type=win32 >> System.Windows.Markup.XamlParseException: Invalid character in the >> given encoding. Line 14, position 40. ---> System.Xml.XmlException: >> Invalid character in the given encoding. Line 14, position 40. >> at System.Xml.XmlTextReaderImpl.Throw(Exception e) >> at System.Xml.XmlTextReaderImpl.Throw(String res, String arg) >> ............ >> ........... >> and much more.... >> ............ >> >> ////////////////////////////////////////////////////////////////////// >> // >> >> Thank's >> > > |
My System Specs![]() |
| | #8 (permalink) |
| | Re: Viewing Xaml in Internet Explorer Even without any é or è or à it is still not working... and saving it in UTF-8 encoding doesn't change anything... still the same error message... -- Ben |
My System Specs![]() |
| | #9 (permalink) |
| | Re: Viewing Xaml in Internet Explorer Ben I'm pretty certain it's the encoding of the file that is giving you grief. I was able to repro the exception on my machine (line number and all) with your sample xaml; saving the same file as UTF-8 showed the xaml just fine. Could it be that when you did the UTF-8 save as notepad appended a .txt to the filename? -- Ifeanyi Echeruo [MSFT] This posting is provided "AS IS" with no warranties, and confers no rights. "Ben" <bbouilliez.schneider@gmail.com> wrote in message news:1146739591.225888.69540@g10g2000cwb.googlegroups.com... Even without any é or è or à it is still not working... and saving it in UTF-8 encoding doesn't change anything... still the same error message... -- Ben |
My System Specs![]() |
| | #10 (permalink) |
| | Re: Viewing Xaml in Internet Explorer I figure I might as well attach the working file -- Ifeanyi Echeruo [MSFT] This posting is provided "AS IS" with no warranties, and confers no rights. "Ifeanyi Echeruo [MSFT]" <ifeanyie@online.microsoft.com> wrote in message news:e651EQ6bGHA.4932@TK2MSFTNGP03.phx.gbl... > Ben I'm pretty certain it's the encoding of the file that is giving you > grief. > I was able to repro the exception on my machine (line number and all) with > your sample xaml; saving the same file as UTF-8 showed the xaml just fine. > Could it be that when you did the UTF-8 save as notepad appended a .txt to > the filename? > > -- Ifeanyi Echeruo [MSFT] > This posting is provided "AS IS" with no warranties, and confers no > rights. > > "Ben" <bbouilliez.schneider@gmail.com> wrote in message > news:1146739591.225888.69540@g10g2000cwb.googlegroups.com... > Even without any é or è or à it is still not working... and saving > it in UTF-8 encoding doesn't change anything... still the same error > message... > > -- > Ben > > |
My System Specs![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| Viewing Internet Files | Browsers & Mail | |||
| Viewing Photos in Internet Explorer Different to Windows Photo Gallery | Vista General | |||
| error viewing doc from internet | Vista General | |||