Silverlight Error Loading dll at Runtime -
i've got silverlight application loads dll file located within clientbin folder @ run time via relative uri. works great on local machine, when deployed on server here, seems fail while trying load file:
private void onassemblyopened(object sender, openreadcompletedeventargs e) { assemblypart asmbpart = new assemblypart(); messagebox.show(e.tostring()); assembly asmb = asmbpart.load(e.result) // line causes exception ... }
of course silverlight doesn't give me useful error - usual notfound nonsense. there step i've missed in deploying this? permissions or something? dll file in clientbin folder btw - i've checked that! :)
another option compress dll zip file, download zip file. way need not play server config.
how download , unpack file zip file given in answer.
code in essence this:-
assemblypart asmbpart = new assemblypart(); var zipres = new streamresourceinfo(args.result, null) var assemres = application.getresourcestream(zipres, new uri("yourassembly.dll", urikind.relative)); assembly asmb = asmbpart.load(assemres.stream)
Comments
Post a Comment