Loading a .dll file into silverlight (hosted with IIS7)
Posted
by Eanna
on Stack Overflow
See other posts from Stack Overflow
or by Eanna
Published on 2010-04-05T21:58:06Z
Indexed on
2010/04/05
22:03 UTC
Read the original article
Hit count: 356
I seem to have a problem loading .dll files into my silverlight application.
this.pluginDownloader = new WebClient();
this.pluginDownloader.OpenReadCompleted += new OpenReadCompletedEventHandler(pluginDownloader_OpenReadCompleted);
this.pluginDownloader.DownloadProgressChanged += new DownloadProgressChangedEventHandler(pluginDownloader_DownloadProgressChanged);
String path = String.Format("http://localhost/Resources/Plugins/{0}.dll", this.pluginDetails.AssemblyName); this.pluginDownloader.OpenReadAsync(new Uri(path, UriKind.Relative));
I can manually download the .dll assembly file by navigating to it (eg: http://localhost/Resources/Plugins/myAssembly.dll) but it just stalls the silverlight app when the above code is executed. This works when I launch the project in visual studio so it must be some setting in IIS7.
Anyone know how to fix this?
© Stack Overflow or respective owner