i have started working with silverlight a week ago. Now i need to integrate to MOSS 2007 . I am not able to integrate the silverlight pages or the controls into the moss environment.
I am looking for help from any one. If you could send me the sample and the steps to integrate with MOSS it will be great help
try contacting Angus Logan. He did a presentation today at Remix in Melbourne on integrating silverlight and MOSS.Pretty cool presentation Here is his blog site
http://blogs.msdn.com/angus_logan/
Actually, the simple web page web part works amazingly well. Just point it to the url of a silverlight enabled web site, and voila, you have silverlight content running in your portal.
However, to integrate tightly into the MOSS environment, build silverlight specific web-parts, etc., is a little (or a lot) more work, depending on how much additional integration you want to the MOSS infrastructure; things like BDC, etc., could be really
interesting.
I had spend several hours to integrate the Silverlight page into MOSS.Now i have integrate the silverlight pages into MOSS . I have followed the following steps
AIM : Want to Integrate the Silverlight Page on the Masterpage ( Silverlight menu with small animation in the top of the page )
Steps :
1. create a simple animation menu controls using microsoft SDK
2. Create a Custom Master Page in MOSS
3. Add a Panel ( div ) element into the master page
4 copy the source code change according to your environment
<
div id="SilverLightTopPanel"><script
type="text/javascript">
Sys.Silverlight.createObjectEx({
source: "MasterPageTop.xaml", // Proper Path Ex. This file is uploaded into pages directory
6. Change your defalut.aspx file masterpage url to custom.master (
<%@
Page language="C#"
MasterPageFile="~masterurl/custom.master" ...... )
7 Upload the xaml file into document library Initally i had upload into pages directory ( But you can create a seprate folder and you can refer the path the masterpage )
8. Create ClientBin Direcotry in MOSS - under virtualdirectory for example C:\Inetpub\wwwroot\wss\VirtualDirectories\CgoSite
9. Open IIS and locate the clientBin directory, and select property window of the Clientbin
10. Change the execute permission to <
Script Only >
11. Copy the dll generated by orcas for silverlight project into ClientBin Directory ( MOSS )
Hi , In my previous post i have missed some steps to integrate the silverlight pages into MOSS. Now it is updated please follow this step
Here is the solution for silverlight MOSS integration.
Part 1 (Silverlight project
DLL to be copied into this ClientBin Directory)
Create ClientBin Directory under this folder
(C:\Inetpub\wwwroot\wss\VirtualDirectories\80)
Default web app
Open IIS Managerand locate the ClientBin Directory Created in step 1
Choose the property window of CilentBin4.Change theExecute Permissions: to Scripts Only
Part 2
Create a Project in Expression Blend
Build and Test the project.
Copy the DLL ( created under
ClientBin directory of the Silverlight project) into the Sharepoint applicationClientBin Directory (C:\Inetpub\wwwroot\wss\VirtualDirectories\80)
Part 3
Upload the
XAML file to sharepoint application
SiteAction ->View All Site content
Option 1
Create -> Documentment Library
Type
SilverlightPages ( anyname ) into Name Textbox and click create button
Upload the
XAML file into the Silverlightpages folder
Option
2
Click on pages
Upload the
XAML file into the Pages folder
Publish and Approve the file( if needed )
Add the following code into your sharepoint pageorcustom master page
Option 1
<divid="SilverLightTopPanel">// you can specify id
<scripttype="text/javascript">
Sys.Silverlight.createObjectEx({source: "MasterPageTop.xaml", // Specify your xaml file parentElement: document.getElementById("SilverLightTopPanel"),// specify your Div element IDid:
"SilverlightControl",properties: {width: "1024",height: "60",version: "0.95",enableHtmlAccess: true},events: {}});
</script>
</div>
Option 2
<divid="SilverLightTopPanel">// you can specify id
You can create function as a seprate (JS) file and upload into proper location For examplecreatesilverlghtobjects.js
function createsilverlightmenu()
{Sys.Silverlight.createObjectEx({source: "MasterPageTop.xaml", // Specify your xaml file parentElement: document.getElementById("SilverLightTopPanel"),// specify your Div element IDid: "SilverlightControl",properties:
{width: "1024",height:
"60",version: "0.95",enableHtmlAccess:
true},events: {}});}
Copy this (createsilverlghtobjects
.js) file into C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\LAYOUTS\1033 (Sharepoint sever)
3.You have to copy the silverlight.js file (from Microsoft ) into
C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\LAYOUTS\1033 (Sharepoint sever)
4.You have to specify the file location into your master page
( Add the blow code into your custom master page ( inside head tag)
I've tried both options but still the silverlight does not show up. I've developed just a simple title bar I want displayed at the top and have modified the master page. There is no error. It's just a blank space. I found that I did not have a ClientBin
as mentioned before within the silverlight project. Once I opened it within VS, a bin folder was created and I was able to take that dll, but it was not created when I created the project within Expression Blend. I also had 3 js files in the directory (silverlight.js,
default_html.js, and Page.xaml.js) Any other ideas?
Have you copied the All Js file in the proper location as i mentioned in my post. If you could not find add all js files are a embedded resource of the project and copy the dll into clientbin directory
I have copied the 3 js files into the c:\\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\LAYOUTS\1033. I then added a scriptlink for each of the js files
There was one dll in the bin directory of the project. I copied that file IS_Homepage_Header.dll to the ClientBin directory that I created. Does it make a difference that the dll wasn't in a bin directory and was only created when I opened the project within
Visual Studio? It also wasn't named Client Bin but was under bin\debug\? Do I also need the pdb file?
arulvivek
Member
26 Points
12 Posts
Silverlight and Sharepoint
Jun 22, 2007 01:37 PM | LINK
Hi !
i have started working with silverlight a week ago. Now i need to integrate to MOSS 2007 . I am not able to integrate the silverlight pages or the controls into the moss environment.
I am looking for help from any one. If you could send me the sample and the steps to integrate with MOSS it will be great help
arulvivek@gmail.com
Thanks
Arul
silverlight beta 1.0
Team Lead
Alamy Images India Pvt Ltd.
veeral
Member
6 Points
4 Posts
Re: Silverlight and Sharepoint
Jun 25, 2007 12:02 PM | LINK
try contacting Angus Logan. He did a presentation today at Remix in Melbourne on integrating silverlight and MOSS.Pretty cool presentation Here is his blog site
http://blogs.msdn.com/angus_logan/
He is a very helpful guy.
Kevgor
Member
224 Points
77 Posts
Re: Silverlight and Sharepoint
Jun 25, 2007 08:23 PM | LINK
Actually, the simple web page web part works amazingly well. Just point it to the url of a silverlight enabled web site, and voila, you have silverlight content running in your portal.
However, to integrate tightly into the MOSS environment, build silverlight specific web-parts, etc., is a little (or a lot) more work, depending on how much additional integration you want to the MOSS infrastructure; things like BDC, etc., could be really interesting.
Kevgor
arulvivek
Member
26 Points
12 Posts
Re: Silverlight and Sharepoint
Jul 10, 2007 10:13 AM | LINK
Hi
I had spend several hours to integrate the Silverlight page into MOSS.Now i have integrate the silverlight pages into MOSS . I have followed the following steps
AIM : Want to Integrate the Silverlight Page on the Masterpage ( Silverlight menu with small animation in the top of the page )
Steps :
1. create a simple animation menu controls using microsoft SDK
2. Create a Custom Master Page in MOSS
3. Add a Panel ( div ) element into the master page
4 copy the source code change according to your environment<
div id="SilverLightTopPanel"><script type="text/javascript">Sys.Silverlight.createObjectEx({
source: "MasterPageTop.xaml", // Proper Path Ex. This file is uploaded into pages directory
parentElement: document.getElementById("SilverLightTopPanel"),
id: "SilverlightControl",
properties: {
width: "1024",
height: "60",
version: "0.95",
enableHtmlAccess: true
},
events: {}
});
</script></div>5. Publish the master page and approve the same.
6. Change your defalut.aspx file masterpage url to custom.master ( <%@ Page language="C#" MasterPageFile="~masterurl/custom.master" ...... )
7 Upload the xaml file into document library Initally i had upload into pages directory ( But you can create a seprate folder and you can refer the path the masterpage )
8. Create ClientBin Direcotry in MOSS - under virtualdirectory for example C:\Inetpub\wwwroot\wss\VirtualDirectories\CgoSite
9. Open IIS and locate the clientBin directory, and select property window of the Clientbin
10. Change the execute permission to < Script Only >
11. Copy the dll generated by orcas for silverlight project into ClientBin Directory ( MOSS )
Thanks
Arul Vivekananth
Technical Consultant
CONCHANGO
arulvivek@gmail.com
Silverlight go-live silverlight XAML alpha blend XAML Control expression blen microsoft silverlight silverlight controls
Team Lead
Alamy Images India Pvt Ltd.
Kevgor
Member
224 Points
77 Posts
Re: Silverlight and Sharepoint
Jul 10, 2007 08:46 PM | LINK
Nice work, I'm going to give that a try.
arulvivek
Member
26 Points
12 Posts
Re: Silverlight and Sharepoint
Jul 11, 2007 07:12 AM | LINK
Thanks
Arul vivekananth
conchango ( India)
arulvivek@gmail.com
silverlight XAML Samples "silverlight streaming" .net framework web application XAML Control ASP.NET expression blen microsoft silverlight tutorials microsoft silverlight expression blend tutorials GettingStarted
Team Lead
Alamy Images India Pvt Ltd.
deaon5
Member
8 Points
4 Posts
Re: Silverlight and Sharepoint
Aug 20, 2007 09:53 PM | LINK
I've tried both options but still the silverlight does not show up. I've developed just a simple title bar I want displayed at the top and have modified the master page. There is no error. It's just a blank space. I found that I did not have a ClientBin as mentioned before within the silverlight project. Once I opened it within VS, a bin folder was created and I was able to take that dll, but it was not created when I created the project within Expression Blend. I also had 3 js files in the directory (silverlight.js, default_html.js, and Page.xaml.js) Any other ideas?
silverlight microsoft silverlight sharepoint
arulvivek
Member
26 Points
12 Posts
Re: Silverlight and Sharepoint
Aug 21, 2007 04:53 AM | LINK
Hi
Have you copied the All Js file in the proper location as i mentioned in my post. If you could not find add all js files are a embedded resource of the project and copy the dll into clientbin directory
Thanks
Silverlight go-live silverlight Silverlight IE6 .net framework C# orcas silverlight installation microsoft silverlight silverlight controls silverlight interview questions silverlight controls encoder sharepoint
Team Lead
Alamy Images India Pvt Ltd.
deaon5
Member
8 Points
4 Posts
Re: Silverlight and Sharepoint
Aug 21, 2007 03:33 PM | LINK
I have copied the 3 js files into the c:\\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\LAYOUTS\1033. I then added a scriptlink for each of the js files
<SharePoint:ScriptLink id="ScriptLink1" Language="javascript" Name="silverlight.js" runat="server"/>
<SharePoint:ScriptLink id="ScriptLink2" Language="javascript" Name="createsilverlight.js" runat="server"/>
<SharePoint:ScriptLink id="ScriptLink3" Language="javascript" Name="Page.xaml.js" runat="server"/>
I added the div tag
<div id="SilverlightControlHost" class="silverlightHost">
<script type="text/javascript">
createsilverlight()
</script>
</div>
There was one dll in the bin directory of the project. I copied that file IS_Homepage_Header.dll to the ClientBin directory that I created. Does it make a difference that the dll wasn't in a bin directory and was only created when I opened the project within Visual Studio? It also wasn't named Client Bin but was under bin\debug\? Do I also need the pdb file?
arulvivek
Member
26 Points
12 Posts
Re: Re: Silverlight and Sharepoint
Aug 21, 2007 04:37 PM | LINK
could you please send me the project to me i will check the what is the issue, and i will let you know
arulvivek@gmail.com
Team Lead
Alamy Images India Pvt Ltd.