Skip to main content
Home Forums General Silverlight Installation and Setup AG E RUNTIME MANAGED ASSEMBLY DOWNLOAD.
12 replies. Latest Post by mcameron on March 1, 2008.
(0)
raguirre
Member
107 points
55 Posts
06-07-2007 1:16 PM |
Hi,
Im working with managed code and somehow i get this error when i deploy to my server.
<
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
Contributor
6172 points
1,233 Posts
06-09-2007 1:57 PM |
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
06-11-2007 11:10 PM |
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.
Psychlis...
6035 points
973 Posts
06-12-2007 7:10 AM |
.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
06-12-2007 7:40 AM |
x:Class="HelloSilverlight.Page;assembly=HelloSilverlight.dll"
the DLL is in the same folder as the XAML file.
heuertk
Participant
1368 points
422 Posts
06-13-2007 11:44 PM |
i your root canvas, just for giggles, try adding:
xmlns:HelloSilverlight="clr-namespace:HelloSilverlight;assembly=HelloSilverlight.dll"
06-14-2007 4:21 AM |
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
351 points
275 Posts
06-19-2007 3:00 AM |
Try to put all of your dll into clientBin dir.
adefwebs...
434 points
120 Posts
06-23-2007 1:31 PM |
I have Windows XP and I was getting this error:
ErrorCode:2252Error Type: Parser ErrorMessage: AG_E_RUNTIME_MANAGED_ASSEMBLY_DOWNLOADXaml File: Page.xamlLine 19Position: 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.
06-24-2007 10:29 PM |
I'm still having the same error in mozilla.. though IE works fine now.
AhmadSabry
122 points
08-05-2007 4:07 AM |
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
>
any suggestions
sandero
2 points
1 Posts
02-22-2008 7:58 AM |
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
4 points
3 Posts
03-01-2008 12:02 AM |
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