Page view counter
AG E RUNTIME MANAGED ASSEMBLY DOWNLOAD.
Last post 03-01-2008 12:02 AM by mcameron. 12 replies.
Sort Posts:
06-07-2007 1:16 PM
AG E RUNTIME MANAGED ASSEMBLY DOWNLOAD.

 Hi,

 Im working with managed code and somehow i get this error when i deploy to my server.

<Canvas x:Name="parentCanvas"
Opacity="0"
xmlns="http://schemas.microsoft.com/client/2007"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Loaded="Page_Loaded"
x:Class="HelloSilverlight.Page;assembly=HelloSilverlight.dll"
>

<Canvas.Triggers>
<
EventTrigger RoutedEvent="Canvas.Loaded">
<
EventTrigger.Actions>

<BeginStoryboard>
<
Storyboard>
<
DoubleAnimation Storyboard.TargetName="parentCanvas" Storyboard.TargetProperty="Opacity" From="0" To="1" Duration="0:0:5"/>
</
Storyboard>
</
BeginStoryboard> </EventTrigger.Actions>
</
EventTrigger>
</
Canvas.Triggers>

<TextBlock x:Name="helloBlock" Foreground="Black" />
</
Canvas>

This is the code for the app.

 If i remove the x:Class="HelloSilverlight.Page;assembly=HelloSilverlight.dll" this would work. HelloSilverlight.dll is located on the same directory as the xaml file.

raguirre

Loading...
Joined on 05-11-2007
Posts 49
06-09-2007 1:57 PM
Re: AG_E_RUNTIME_MANAGED_ASSEMBLY_DOWNLOAD.

I am assuming based on your post that you have this issue only when you deploy it to the server, not with development. So I am guessing it is an issue with the server configuration. It could be MIME type mapping, or the rights on the directory. To make sure the server configuration is correct, try navigating directly to the HelloSilverlight.dll, you should get save or open dialog. If not, then there is an issue with the server configuration

Thanks
Yasser Makram
My Blog: http://www.silverlightrecipes.com
Sr. Architect
Santeon Inc. Microsoft Silverlight Partner, Solution Provider

y_makram

Loading...
Joined on 06-07-2007
Cairo, Egypt
Posts 1,143
06-11-2007 11:10 PM
Re: AG_E_RUNTIME_MANAGED_ASSEMBLY_DOWNLOAD.

the MIME Types are setup correctly. I can get a save/open dialog navigating to HelloSilverlight.dll. Also the rights on the directory already has IWAM, IUSR and ASPNET.

The server does'nt have the .net framework 3.0 installed. I managed to deploy a Silverlight app with javascript codes by copying the required DLLs from the .net 3.0 directory directly to the server. It worked.

 Does managed code require .net 3.0 installed on the server? I can't install .net 3.0 for security issues.
anyway, can anyone explain how silverlight gets the libraries it requires.

raguirre

Loading...
Joined on 05-11-2007
Posts 49
06-12-2007 7:10 AM
Re: Re: AG_E_RUNTIME_MANAGED_ASSEMBLY_DOWNLOAD.

.NET 3.0 is not required on the server, to the best of my knowledge.

Did you put the dlls in the right folder (typically ClientBin)?

Since you get the download prompt on the DLL, it sounds like you already turned off IIS execute (or set it to scripts only) permissions for that folder, which is good.

Pete

If your question was answered, please mark the response as the answer.

Silverlight.net Moderator
MVP: Visual Developer - Client Application Development
POKE 53280,0 - My Blog

Psychlist1972

Loading...
Joined on 10-12-2004
Maryland, USA
Posts 833
06-12-2007 7:40 AM
Re: Re: AG_E_RUNTIME_MANAGED_ASSEMBLY_DOWNLOAD.

x:Class="HelloSilverlight.Page;assembly=HelloSilverlight.dll"

the DLL is in the same folder as the XAML file.

raguirre

Loading...
Joined on 05-11-2007
Posts 49
06-13-2007 11:44 PM
Re: AG_E_RUNTIME_MANAGED_ASSEMBLY_DOWNLOAD.

i your root canvas, just for giggles, try adding:

xmlns:HelloSilverlight="clr-namespace:HelloSilverlight;assembly=HelloSilverlight.dll"

 

-th
http://timheuer.com/blog/

-----

If this answered your question, please be sure to click the 'mark as answered' feature, otherwise please feel free to post follow-up questions that are related.

heuertk

Loading...
Joined on 06-20-2002
Queen Creek, AZ
Posts 337
06-14-2007 4:21 AM
Re: AG E RUNTIME MANAGED ASSEMBLY DOWNLOAD.

Hi i tried adding the line and it still gave me the same error.

However, if i delete the x:Class attribute on the tag <Canvas> i will not get the error but there would be no code to run (e.g. Page_Loaded).

raguirre

Loading...
Joined on 05-11-2007
Posts 49
06-19-2007 3:00 AM
Re: Re: AG E RUNTIME MANAGED ASSEMBLY DOWNLOAD.
Try to put all of your dll into clientBin dir.


Make love not war.
Please be sure to click "Mark as Answer" on the post that helped you.

forci

Loading...
Joined on 05-10-2007
Slovenia
Posts 201
06-23-2007 1:31 PM
Re: Re: AG E RUNTIME MANAGED ASSEMBLY DOWNLOAD.

I have Windows XP and I was getting this error:

ErrorCode:2252
Error Type: Parser Error
Message: AG_E_RUNTIME_MANAGED_ASSEMBLY_DOWNLOAD
Xaml File: Page.xaml
Line 19
Position: 2 

I downloaded and installed ASP.NET 3.5. I then followed the directions here:

http://silverlight.net/forums/t/479.aspx

Turns out the problem was I did not follow the directions correctly and in IIS Configuration for the virtual website on the Virtual Directory tab, in the  Execute Permissions dropdown I had "scripts and executables" and I should only have "Scripts". Changing it to "scripts" fixed the problem.

 


SilverlightDesktop.net

A framework that allows you to dynamically load Silverlight modules into resizable draggable windows.

adefwebserver

Loading...
Joined on 06-07-2003
Los Angeles, CA
Posts 89
06-24-2007 10:29 PM
Re: Re: Re: AG E RUNTIME MANAGED ASSEMBLY DOWNLOAD.

I'm still having the same error in mozilla.. though IE works fine now.

raguirre

Loading...
Joined on 05-11-2007
Posts 49
08-05-2007 4:07 AM
Re: Re: Re: Re: AG E RUNTIME MANAGED ASSEMBLY DOWNLOAD.

hi

iam trying to include a silverlight media player in a normal website so i added a new website and added silverlight link. when i browse the page that i added silverlight cmopnent to it goes fine. however, when i make a virtual directory to the website and try to access it. i got the following error. AG_E_Runtime_Managed_Assembly_Download

this is the first settings for the page.xaml 

<Canvas

xmlns="http://schemas.microsoft.com/client/2007"

xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"

xmlns:LDN_IPTV="clr-namespace:LDN_IPTV;assembly=ClientBin/LDN_IPTV.dll"

Width="400" Height="400"

Background="White"

x:Class="LDN_IPTV.Page;assembly=ClientBin/LDN_IPTV.dll"

x:Name="mediaPlayer"

>

any suggestions

Best Regards,
Sabry

AhmadSabry

Loading...
Joined on 06-24-2007
Posts 55
02-22-2008 7:58 AM
Re: Re: Re: Re: AG E RUNTIME MANAGED ASSEMBLY DOWNLOAD.

Hi,

I had the same error when deploying a Silverlight application to Sharepoint, when adding /_LAYOUTS/ before the assembly path it worked correctly so i guess you must fully qualify the path to your assembly because sharepoint resolves this path also.

Greetings Sander

 

sandero

Loading...
Joined on 02-22-2008
Posts 1
03-01-2008 12:02 AM
Re: Re: Re: AG E RUNTIME MANAGED ASSEMBLY DOWNLOAD.

I had the same issue that raguirre mentioned previously, the AG_E_RUNTIME_MANAGED_ASSEMBLY_DOWNLOAD ErrorCode: 2252 error, but only in Firefox, and only when uploaded to my web host.

I got around this by putting the silverlight assembly in the same folder as the Page.xaml file and HTML host page, not in the default ClientBin folder. The path in the Page.xaml file should also be changed.

Michael

MC`s Sandpit 

mcameron

Loading...
Joined on 02-29-2008
Posts 3
Microsoft Communities