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.
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
Independent Consultant
http://www.silverlightrecipes.com _____
Dont forget to click "Mark as Answer" on the post that helped you.
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.
.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
Developer Community Program Manager - XAML, WPF, Silverlight, .NETMF/Gadgeteer
10rem.net - Pete Brown's site and blog | twitter: @pete_brown
I work for the Developer Guidance group in Microsoft. Opinions are my own.
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.
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.
raguirre
Member
109 Points
56 Posts
AG E RUNTIME MANAGED ASSEMBLY DOWNLOAD.
Jun 07, 2007 05:16 PM | LINK
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.
managed code does not work
y_makram
Contributor
6952 Points
1353 Posts
Re: AG_E_RUNTIME_MANAGED_ASSEMBLY_DOWNLOAD.
Jun 09, 2007 05:57 PM | LINK
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
Yasser Makram
Independent Consultant
http://www.silverlightrecipes.com
_____
Dont forget to click "Mark as Answer" on the post that helped you.
raguirre
Member
109 Points
56 Posts
Re: AG_E_RUNTIME_MANAGED_ASSEMBLY_DOWNLOAD.
Jun 12, 2007 03:10 AM | LINK
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
Contributor
6802 Points
1079 Posts
Microsoft
Moderator
Re: Re: AG_E_RUNTIME_MANAGED_ASSEMBLY_DOWNLOAD.
Jun 12, 2007 11:10 AM | LINK
.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
10rem.net - Pete Brown's site and blog | twitter: @pete_brown
I work for the Developer Guidance group in Microsoft. Opinions are my own.
raguirre
Member
109 Points
56 Posts
Re: Re: AG_E_RUNTIME_MANAGED_ASSEMBLY_DOWNLOAD.
Jun 12, 2007 11:40 AM | LINK
x:Class="HelloSilverlight.Page;assembly=HelloSilverlight.dll"
the DLL is in the same folder as the XAML file.
heuertk
Participant
1668 Points
524 Posts
Microsoft
Moderator
Re: AG_E_RUNTIME_MANAGED_ASSEMBLY_DOWNLOAD.
Jun 14, 2007 03:44 AM | LINK
i your root canvas, just for giggles, try adding:
xmlns:HelloSilverlight="clr-namespace:HelloSilverlight;assembly=HelloSilverlight.dll"
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
Member
109 Points
56 Posts
Re: AG E RUNTIME MANAGED ASSEMBLY DOWNLOAD.
Jun 14, 2007 08:21 AM | LINK
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
Member
351 Points
275 Posts
Re: Re: AG E RUNTIME MANAGED ASSEMBLY DOWNLOAD.
Jun 19, 2007 07:00 AM | LINK
adefwebserver
Participant
1183 Points
238 Posts
Re: Re: AG E RUNTIME MANAGED ASSEMBLY DOWNLOAD.
Jun 23, 2007 05:31 PM | LINK
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.
Open Light Group
View Model (MVVM) Series | ADefWebserver.com
raguirre
Member
109 Points
56 Posts
Re: Re: Re: AG E RUNTIME MANAGED ASSEMBLY DOWNLOAD.
Jun 25, 2007 02:29 AM | LINK
I'm still having the same error in mozilla.. though IE works fine now.