Skip to main content

Microsoft Silverlight

Unanswered Question AG E RUNTIME MANAGED ASSEMBLY DOWNLOAD.RSS Feed

(0)

raguirre
raguirre

Member

Member

107 points

55 Posts

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.

y_makram
y_makram

Contributor

Contributor

6172 points

1,233 Posts

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
http://www.silverlightrecipes.com
_____
Dont forget to click "Mark as Answer" on the post that helped you. If your question has not been answered, please post a followup question.

raguirre
raguirre

Member

Member

107 points

55 Posts

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.

Psychlist1972
Psychlis...

Contributor

Contributor

6035 points

973 Posts

MicrosoftModerator

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

Silverlight.net Moderator
MVP: Silverlight, Silverlight Insider
Author: Silverlight in Action, 2nd Edition
POKE 53280,0 - My Blog

Opinions are my own. Oh, and I don't work for Microsoft.

raguirre
raguirre

Member

Member

107 points

55 Posts

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.

heuertk
heuertk

Participant

Participant

1368 points

422 Posts

MicrosoftModerator

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.

raguirre
raguirre

Member

Member

107 points

55 Posts

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

forci
forci

Member

Member

351 points

275 Posts

Re: Re: AG E RUNTIME MANAGED ASSEMBLY DOWNLOAD.

Try to put all of your dll into clientBin dir.

Make love not war.

adefwebserver
adefwebs...

Member

Member

434 points

120 Posts

Silverlight MVP

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.

raguirre
raguirre

Member

Member

107 points

55 Posts

Re: Re: Re: AG E RUNTIME MANAGED ASSEMBLY DOWNLOAD.

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

AhmadSabry
AhmadSabry

Member

Member

122 points

55 Posts

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

sandero
sandero

Member

Member

2 points

1 Posts

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

 

mcameron
mcameron

Member

Member

4 points

3 Posts

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 

  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities