Skip to main content
Home Forums Silverlight Programming Report a Silverlight Bug Silverlight fails execution on path containing non-US characters.
10 replies. Latest Post by v3@directorat.com on November 10, 2009.
(0)
v3@direc...
Member
0 points
5 Posts
11-01-2009 1:52 AM |
Well, it would seem that Silverlight is failing admirably when the path where it is located any non-US character. I have been troubleshooting this for hours now, expecting an error on my part in the code. Then I had to move the files to run an other test and it worked fine, moved them back in the previous location, failed, tried multiple variations and scenarios. The only explaination that was coherant on all scenarios was the directory and or sub/root directory contained non-us character.
This is very agravating.
This prevents me from ever using Silverlight until it is fixed and not only that, makes me insecure about other difficulties I might encounter with deployment.
I might sound pissed, I am pissed, wasted an saturday evening/night on that, excluding the time invested in developing the XAP.
Thank you, and still, have a good night.
max_pau
172 points
53 Posts
11-04-2009 1:53 PM |
could you provide screenshot/error message?
11-04-2009 11:40 PM |
I am very sorry for the delay, I was busy the last few days. There is no error, just nothing happens, the SilverLight just doesnt execute. It just stay blank in the browser. I troubleshouted my code for an entire day before, moving it to a "trash" directory, where it worked. Thus I tested again and found out that as soon as I added certain caracters in my directory names, it stoped working, any SilverLight would simply not execute. When the directory was renamed, or the SL moved, it was working again as intended.
Will not work;D:\01.Sites\00.Pyrée\00.SiteWill work;D:\01.Sites\00.Pyree\00.SiteThere isnt much more information that I can provide sadly, as the code works and there is not errors when it does not.
11-05-2009 3:20 AM |
have you tried just IE or some other browsers?
What version of IIS do you use?
11-05-2009 5:14 PM |
FireFox, IE8 and Opera came back with the same oddity. It was runing directly from the local hard drive not using IIS. BUT, if I hit F5 for a live preview it fails as well on Windows XP SP3 and all the latest patches.
MawashiKid
566 points
102 Posts
11-05-2009 7:16 PM |
Hi,
Maybe you should have a look at the following link
http://www.microsoft.com/silverlight/locale/en-us/html/readme_2.0.30916.html
and scroll down till you find those 2 informations
"Do not use non-ASCII characters for Silverlight project names" Using non-ASCII characters for Silverlight project names is not supported by the Silverlight runtime."
"Do not change the “Build output path” value to a path that contains non-ASCII characters" If the Build output path option is changed from “ClientBin\” to a path that contains non-ASCII characters, the Testpage.html page will be rendered as a blank page at run time.
I've done a simple test. Just created a new SLV 3 Application and gave it the name Pyrée...then clicked on F6 Build Solution and just as I expected got the following error
"The file name Pyrée.xap contains non-ascii characters and needs to be renamed to work correctly with Silverlight"... I know it's annoying...I had to go through similar experiences in the past as I worked worked a lot in both French environment project and I know it sometimes can be a pain in the a... to deal with.So for that reason, I always avoid using "àâçèéêëîïôû" characters in file names, path names and most of all in Silverlight project names...
If this answers your question please select Mark as an answer, Thank you.
11-09-2009 5:17 PM |
I just want to point out the in the exemple it is NOT the file name but the folder [directory] name. Since the HTML is relative to it's own root the XAP file does not use the folder structure to be loaded. The compiling of the XAP does NOT return any error as well, as stated in your answer since it is not the aformentioned notice in the readme.
Will not work;D:\01.Sites\00.Pyrée\00.SiteWill work;D:\01.Sites\00.Pyree\00.Site
The problem reside solely into the folders containing the HTML/XAP, rendering is perfect and if the XAP/Html is moved (As stated earlier in the posts) the XAP executes itself IF the new location does not contain non-US caracters. In other words, the project is working 100% depending on the folder and/or the parent folders of it's containing folder name.
11-09-2009 5:38 PM |
the problem is in IIS - it does not support such symbols - I checked it. BTW IIS supports cyrillic.
11-09-2009 8:10 PM |
Take time to read....http://www.microsoft.com/silverlight/locale/en-us/html/readme_2.0.30916.html
Do not change the “Build output path” value to a path that contains non-ASCII charactersIf the Build output path option is changed from “ClientBin\” to a path that contains non-ASCII characters,the Testpage.html PAGE WILL BE RENDERED AS A BLANK PAGE AT RUN TIME!!!!!! <-------------
11-10-2009 2:25 AM |
MawashiKid, he hasn't changed name of ClientBin
IIS does not support non-ASCII characters in the path to virtual folder
Let's try to create folder 01.Sites\00.Pyrée\00.Site and then create it as virtual folder - IIS will create it, but it will not work
11-10-2009 12:41 PM |
For ISS I agree, but when I just open the HTML file without using the IIS feature of XP. Should'nt the XAP run in any location? Because it wont run when on the desktop/my document folder if the user name has non US characters. Which is a rather important annoyance. I did not try with self executing SilverLight, will try later tonight.