Skip to main content

Microsoft Silverlight

Unanswered Question Silverlight fails execution on path containing non-US characters.RSS Feed

(0)

v3@directorat.com
v3@direc...

Member

Member

0 points

5 Posts

Silverlight fails execution on path containing non-US characters.

 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
max_pau

Member

Member

172 points

53 Posts

Re: Silverlight fails execution on path containing non-US characters.

could you provide screenshot/error message?

Do not forget to click "Mark as Answer" on my post that helped you

v3@directorat.com
v3@direc...

Member

Member

0 points

5 Posts

Re: Silverlight fails execution on path containing non-US characters.

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

Will work;
D:\01.Sites\00.Pyree\00.Site

There isnt much more information that I can provide sadly, as the code works and there is not errors when it does not.

max_pau
max_pau

Member

Member

172 points

53 Posts

Re: Silverlight fails execution on path containing non-US characters.

 have you tried just IE or some other browsers?

What version of IIS do you use?

Do not forget to click "Mark as Answer" on my post that helped you

v3@directorat.com
v3@direc...

Member

Member

0 points

5 Posts

Re: Silverlight fails execution on path containing non-US characters.

 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
MawashiKid

Member

Member

566 points

102 Posts

Re: Silverlight fails execution on path containing non-US characters.

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.

v3@directorat.com
v3@direc...

Member

Member

0 points

5 Posts

Re: Silverlight fails execution on path containing non-US characters.

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

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

max_pau
max_pau

Member

Member

172 points

53 Posts

Re: Silverlight fails execution on path containing non-US characters.

the problem is in IIS - it does not support such symbols - I checked it. BTW IIS supports cyrillic.

Do not forget to click "Mark as Answer" on my post that helped you

MawashiKid
MawashiKid

Member

Member

566 points

102 Posts

Re: Silverlight fails execution on path containing non-US characters.

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 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!!!!!! <-------------

max_pau
max_pau

Member

Member

172 points

53 Posts

Re: Silverlight fails execution on path containing non-US characters.

 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

Do not forget to click "Mark as Answer" on my post that helped you

v3@directorat.com
v3@direc...

Member

Member

0 points

5 Posts

Re: Re: Silverlight fails execution on path containing non-US characters.

 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.

  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities