Do the XAML and Silverlight DLL have to go to _layouts?

Coordinator
Feb 29, 2008 at 3:55 AM
Edited Mar 4, 2008 at 8:50 PM
Luckily, the answer is a happy NO.

the first release does place both of those files into _layouts\ListActivity. The benefit of this is availability of those files everywhere; the down side is that they have to be deployed there by an admin as part of the solution (something that has to happen anyway to deploy the web part). Still, even now it is possible to move both the XAML and the DLL to a document library and get the web part to work.

To get it to work, the following needs to occur:

  1. rename agSPListActivityDisplayLib.dll to agSPListActivityDisplayLib.ial
  2. upload the *.ial file to Shared Documents (or another library)
  3. Modify the DisplayListActivity.XAML to change the "_layouts/ActivityList/agSPListActivityDisplayLib.dll" to the new location of the IAL file ("Shared Documents/agSPListActivityDisplayLib.ial", for example)
  4. Upload the DisplayListActivity.XAML to the Shared Documents library
  5. Add the List Activity Web Part to your page
  6. Edit List Activity Web Part properties
  7. Change location of the Silverlight XAML to the relative URL of the changed XAML ("Shared Documents/DisplayListActivity.xaml")
  8. Save property changes

...and it should all work!