Print Page | Close Window

DevForce 2010 & Sharepoint 2010

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce 2010
Forum Discription: For .NET 4.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=2095
Printed Date: 29-Jul-2026 at 8:55am


Topic: DevForce 2010 & Sharepoint 2010
Posted By: btitular
Subject: DevForce 2010 & Sharepoint 2010
Date Posted: 25-Aug-2010 at 2:15pm

I have a SL4 app using DevForce 2010. We've been experimenting with Sharepoint 2010 and was wondering if I could package my SL4 app as a web part for a Sharepoint solution. My understanding is that it would have to be a farm solution and not a sandbox solution due to the file access requirements. Has anyone tried this?




Replies:
Posted By: WardBell
Date Posted: 27-Aug-2010 at 2:51am
I have not tried it.
 
I am THRILLED that YOU are trying it.
 
I don't understand why you need file access. That's not intrinisic to DevForce. Personally, I would fight like a cornered rat to be in the sandbox and not on the farm where you are at the mercy of distant administrators.
 
Please do keep us informed!


Posted By: btitular
Date Posted: 27-Aug-2010 at 4:36pm
I mis-spoke - I'll be making database calls via DevForce.
 
I decided to give myself one day to see what I could accomplish.
 
There's no web project to host the SL application - you create an empty sharepoint project that will be used to deploy the SL app to the Sharepoint server. A module item (in my case Module1) is created so that it can tell Sharepoint how/where to upload the application.
 
I copied the server side IdealBlade*.dll files to the bin folder.
 
At my breakpoint on the ExecuteAsync callback gave me a error:
 
"There is no endpoint listening on http://btitular4-w7/Module1/EntityService.svc/sl - http://btitular4-w7/Module1/EntityService.svc/sl that could accept calls from this application. If running in Visual Studio, make sure CopyLocal=true is set for all IdeaBlade assembly references in the web project to ensure that these assemblies are copied to the bin folder. To check if the service is running, open your internet browser and navigate to 'http://btitular4-w7/Module1/EntityService.svc'. If the service page shows errors, these should help diagnose the problem with the service. If the service is running, then also make sure that the endpoint bindings match between client and server, and that the server's ClientApplicationType is either 'Silverlight' or 'Both'.  Check the server's debug log file for more information."
 
I'm not sure how the url is being generated. The Module1 folder doesn't even exist in my web site.
 
I reviewed the following thread:
http://www.ideablade.com/forum/forum_posts.asp?TID=2083&title=devforce-6040-and-how-to-specify-url-of-entityservice - http://www.ideablade.com/forum/forum_posts.asp?TID=2083&title=devforce-6040-and-how-to-specify-url-of-entityservice
 
I'll try a few of kimj's responses to see where that leads me.
 
I think on the problems is that the xap files are not "exposed" as in a traditional web site. I believe they're stored in the SQL databases that Sharepoint manages.
 
I also came across some interesting posts related to Sharepoint 2010 and the .net 4 Framework  - Sharepoint 2010 doesn't current support the .net 4 framework.
 
http://mossblogger.blogspot.com/2010/06/sharepoint-2010-and-net-4-confused.html - http://mossblogger.blogspot.com/2010/06/sharepoint-2010-and-net-4-confused.html
 
http://social.technet.microsoft.com/forums/en-us/sharepoint2010programming/thread/FFAE30E0-2722-4A70-8612-F91CD449E797 - http://social.technet.microsoft.com/forums/en-us/sharepoint2010programming/thread/FFAE30E0-2722-4A70-8612-F91CD449E797
 
http://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/61ce2c6a-2f78-47ec-95e9-e7150374e338/#3c2aad6d-41b5-43c4-ba29-3dc86c9c3da6 - http://social.msdn.microsoft.com/Forums/en-US/sharepointdevelopment/thread/61ce2c6a-2f78-47ec-95e9-e7150374e338/#3c2aad6d-41b5-43c4-ba29-3dc86c9c3da6
 
http://social.msdn.microsoft.com/forums/en-us/sharepoint2010general/thread/256C3F08-2019-40D8-B384-7EEC3BE16F2B - http://social.msdn.microsoft.com/forums/en-us/sharepoint2010general/thread/256C3F08-2019-40D8-B384-7EEC3BE16F2B
 
Entity Framework 4.0 requires the .net 4 framework - doesn't it?
 
So for today - it looks like I'll be creating the SL4 apps hosted in a "traditional" web site. I'll keep an eye out to see if/when Sharepoint 2010 supports the .net 4 framework.


Posted By: ting
Date Posted: 27-Aug-2010 at 4:51pm

Yes .NET 4 is required.  Bummer that they haven't supported it yet.



Posted By: ting
Date Posted: 22-Nov-2010 at 5:27pm
Update - It looks like you can get this to work by running the DevForce server from a virtual directory that is in a different application pool (for .NET 4).


Posted By: btitular
Date Posted: 22-Nov-2010 at 5:36pm
Ting,
 
I've been meaning to update this thread. Hardware issues have derailed my development efforts the last two weeks!
 
I spoke with Paul Stubbs from Microsoft (Tech Evangelist for Sharepoint) at the PDC10 in Seattle a few weeks ago. He informed me that the key to get to an SL4 app to work with Sharepoint 2010 is to have them run on separate servers - exactly what you you pointed out.
 
Sharepoint 2010 needs to run on the .NET 3.5 framework which is on ServerA. DevForce is hosted on ServerB running .NET 4.0. I have a proof of concept project that I'm going to try after the Thanksgiving weekend.
 
Thanks for the update! I'll let you know how it turns out.
 
BOb
 
 
 


Posted By: WardBell
Date Posted: 22-Nov-2010 at 5:57pm
Exactly!
 
You can deploy the DevForce server (BOS) portion of your application to a virtual directory (or a server) that runs with .NET 4. Obviously this is not the same as your SharePoint environment (app pool). But SharePoint shouldn't have trouble running a web part that talks to a non-SharePoint URI. The Silverlight application can reach out to any network resource it can reach and SharePoint should neither know nor care.
 
You could still serve the Silverlight XAP out of your SharePoint farm; it's just a file. You would have to consider CrossDomain Policy file issue. Probably easier during development to keep the XAP and the BOS on the same server/directory and same domain address. I don't think SharePoint will mind filling its web part with a resource (the Silverlight application xap) that comes from outside SharePoint itself.
 
Were you intending to access both SharePoint tables and SQL database data by way of the BOS? Not sure how a server running on .NET 4 could reach back to the SharePoint world running in .NET 3.5. 
 
You might get some ideas from Steve Fox's November MSDN Magazine article, " http://msdn.microsoft.com/en-us/magazine/gg309179.aspx - Connecting SharePoint to WIndos Azure with Sivlerlight Web Parts ". He doesn't use EF in his example. But if he's connecting these farflung dots, you ought to be able to connect yours :-)
 
Would be nice to do without these complications, we must hope they move to .NET 4 soon.


Posted By: WardBell
Date Posted: 23-Nov-2010 at 1:03am
@btitular - I didn't see your post when I wrote mine. Two ships passing in the night I guess. It seems we are all on the same page.
 
Looking forward to your post Thanksgiving report. Very exciting!



Print Page | Close Window