SP2010 and SL: ClientContext.Current is null

When using Silverlight to develop web parts for SharePoint 2010, you might use the Silverlight Client Object Model to access SharePoint data. But what happens if you try to move out of the Silverlight web part and, for example, put Silverlight in a SharePoint dialog box? Answer: Unhandled Error in Silverlight Application Object reference not set to an instance of an object at ClientContext.Current.

The problem arises because the Silverlight web part injects the SharePoint context into the HTML object parameter for the proper functioning of the Client Object Model. Therefore, you need to inject the SharePoint site URLs where the Silverlight is currently displayed into the initParams (MS.SP.url):

[Read More]

Version 1.0 of Orchard

The Orchard project recently released version 1.0 of their product. I had talked about it previously here, and I decided to install it again.

Installation

The installation is done via the Web Platform Installer and I also used Web Matrix on a virtual machine to do my tests. The installation is almost automatic and very pleasant. No need for obscure configuration.

Once installed, you just need to start the Orchard site with the Web Matrix interface to see the initial site configuration page (Site name, admin user, password, database). Again, it is very simple and intuitive.

[Read More]

Microsoft MVP 2011

microsoft_mvp_logo\[1\]For the fourth consecutive year, I have received the Microsoft Most Valuable Professional Award in the Visual C# category.

I congratulate all the MVPs who have also been renewed for 2011 and the new MVPs!

I received a Windows Phone 7

Well, it may not be connected to a cellular network and it may be second-hand, but yesterday I received a Samsung Taylor for Windows Phone 7 (WP7) development!

I had fun with it last night and I am very satisfied with the device. Obviously, since it is a pre-production development device, it does not have all the features of a production phone. But all in all, it has all the functionalities of WP7.

[Read More]

Microsoft Gadgeteer

I just came across the Microsoft Gadgeteer website while doing some research for La Machine.

Gadgeteer allows you to quickly create prototypes without necessarily knowing electronics, just plug in, write a few lines (in NETMF of course) and you’re done. You can see a full demonstration on the Channel 9 website (Included below).

<object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="512" height="288"> <param name="source" value="http://channel9.msdn.com/scripts/VideoPlayer.xap?v=3.2"> <param name="initParams" value="deferredLoad=true,duration=0,m=http://ecn.channel9.msdn.com/o9/ch9/6d32/4015d252-f215-4945-9d48-9e0901306d32/dotNetGadgeteer_ch9.wmv,autostart=false,autohide=true,showembed=true, thumbnail=http://ecn.channel9.msdn.com/o9/ch9/6d32/4015d252-f215-4945-9d48-9e0901306d32/dotNetGadgeteer_512_ch9.jpg, postid=0"> <param name="background" value="#00FFFFFF"> <a href="http://go.microsoft.com/fwlink/?LinkID=124807" style="text-decoration: none;"> <img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight" style="border-style: none"> </a> </object>

For now, this product is still within Microsoft Research, but we could hope to see it commercialized by spring or summer 2011.

[Read More]