Page view counter
Hosting 2252 ParserError AG_E_RUNTIME_MANAGED_ASSEMBLY_DOWNLOAD
Last post 12-30-2007 9:21 PM by speige. 1 replies.
Sort Posts:
12-29-2007 9:47 PM
Hosting 2252 ParserError AG_E_RUNTIME_MANAGED_ASSEMBLY_DOWNLOAD

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

speige

Loading...
Joined on 12-28-2007
Posts 4
12-30-2007 9:21 PM
Marked as Answer
Re: Hosting 2252 ParserError AG_E_RUNTIME_MANAGED_ASSEMBLY_DOWNLOAD

Ok, I was able to figure it out. I put the exact same files up on a different server and it ran fine, so I tried downloading each of the files individually from the freehostia site and I noticed that although the .dll files *were* uploaded correctly, it gave me an access denied when trying to download them. I'll contact them directly to see if they can change this, but is it possible to rename my .dll files and have it still work through silverlight? My guess is a no, but I thought i'd mention it... I guess I'll try it and see..

Thanks. 

speige

Loading...
Joined on 12-28-2007
Posts 4
Microsoft Communities