I'm hosting a simple silverlight app using freehostia.com
The app runs fine through F5 from c# or from http://localhost using apache 2.2 However, when I put the files on the host it gives me the error
2252 ParserError AG_E_RUNTIME_MANAGED_ASSEMBLY_DOWNLOAD
XAML : Page.txt
Line: 10
Position: 9
I was originally using xaml, but I read that some hosts don't have the correct mime types for xaml. I also tried xml with no success, and txt isn't working either.
What exactly should I be changing to switch from xaml to xml or
txt? I'm just renaming the .xaml to the new extension and putting the
new filename in the TestPage.html.js file under
Silverlight.createObjectEx({ source: "Page.xaml", // etc I change
Page.xaml to Page.xml or .txt
I'm doing this *after* compile... Is this ok? Is there anything else I need to do?
If I go to the file Page.txt online it comes up just fine.
http://www.intelligentspanish.com/LearnSpanish/ -- page with the silverlight files
The files i've uploaded are:
Page.txt (xaml file)
TestPage.html
TestPage.html.js
Silverlight.js
boing.mp3 (used by the downloader -> MediaElement)
ClientBin \ Language.dll (my app)
ClientBin \ Silverlight.Samples.Controls.dll
Are there any files I'm missing? Should I switch to a different host? Most of the free hosting i've tried is pretty poor, which is fine (I get what I paid for :) -- but until I finish development I don't really want to spend money on commercial hosting.
Also, a side note that i've seen in other posts dealing with the Downloader object. If I use it client side it gives me an error, but if i just set the source directly on the MediaElement it works clientside (which doesn't work through localhost)... Is there an easy way to check if the silverlight app is being run through http or clientside? For now I'm just not running it client side, which is fine..
Thanks