Powered by MSDN

US - English
NEW! Silverlight 5 is available Learn More

  • Psychlist1972

    Psychlist1972

    Contributor

    6802 Points

    1079 Posts

    Microsoft

    Moderator

    Re: Re: Using Downloader to load a packaged XAML

    Nov 16, 2007 07:13 PM | LINK

    bayahi

     May be i am wrong but i think that you do not need to Download the assembly with a downloader before loading it with Assembly.Load. Well, when i noticed that the assembly must be in the project folder, i had some doubt that the loader is getting the assembly directly from the project directory and not because it was downloaded. I tried to test that in a new project where i putted my DLL in the project directory then i tried to load it directly with Assembly.Load and i added it to the main Canvas and this work fine.

    I'm affraid that what i said is wrong because in all the article and codes (including Pete and Damoxc codes) i found that the loading is done after downloading the DLL, so could you check out please.

     

    I'm not quite sure I understand what you're saying.

    If you mean that an assembly can be downloaded and used without using the downloader object, I assume in that instance, you had a reference to it at compile time and/or you didn't clear your browser cache. If not, I will test this in my own code and see what happens, however I don't believe anything useful happens without using the downloader to first snag the DLL.

    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.