Use the ASP.NET Authentication Service with Windows Phone 7

Posted by on Comments (0)

If you want to use the ASP.NET Authentication Service with your Windows Phone 7 (this is quite similar if you want to use it with Silverlight), just create a standard Windows Phone project in Visual Studio 2010 :

Once this is done, add an empty web test project :

Create a new WCF service in this Web Application :

Name it AuthenticationService.

Remove the auto-generated Code-Behind file and Interface.

Edit the .svc to rely on the AuthenticationService (more info) provided by Microsoft :

Edit the Web.config or use the WAT (Web Site Administration Tool Security Tab) to enable the Authentication Service and to create some users. Here is how my Web.config file looks like :


Once this is made, you can reference this service in your WP7 application and start to use the authentication mechanism :

And the result is :

Or :

You can download the sample here

I created a user Spiderman with a password Spiderm@n

Sharepoint 2010 SilverXplorer V 0.1

Posted by on Comments (0)

Recently I've worked on a small Silverlight application that targets Sharepoint 2010 file operations (copy, move, delete, …).

Sharepoint 2010 has a lot of great enhancements compare to Sharepoint 2007 but still lacks of basic file operations facilities (e.g. if you want to copy a file from a doclib to another doclib, you must give the URL of the destination doclib).

This V 0.1 of Sharepoint 2010 SilverXplorer currently only offers files & folders browsing.

Here is how the application looks like inside of Sharepoint :

Here is how the loading progress looks:

To change the Sharepoint site, click the button and choose a new site URL:

To go inside a folder, just click it!

To go up, click the button.


You can also use it in an out of browser way (with elevated trust).


On the Silverlight side, the new Sharepoint 2010 Client Object Model has been used.

If you take a look at the code, you'll also note that I've used a Resource Dictionary & Merged Dictionaries for styles and states and that I'm playing a lot with states (I like them!).

Sharepoint queries were optimized by Mathieu Gretry who joined the project!


To download the V 0.1 of the XAP or to access the source code, just go to :

Silverlight debugging with Firefox 3.6.4 or above

Posted by on Comments (1)

If you've Firefox 3.6.4 or above installed on your computer and if you use it as your default browser, you'll probably meet some problems while trying to debug a Silverlight application in Visual Studio.

The Mozilla team has changed security settings for plugins.

I found the solution in the Silverlight forum (Thanks to MisterGoodcat!).

Here is what you to do :

  • Type "about:config" into Firefox address bar
  • Accept the warning (if applicable)
  • Search for the entry "dom.ipc.plugins.enabled.npctrl.dll"
  • Change its value from "true" to "false" (by double-clicking it)
  • Restart the browser

Office 2010 : Outlook 2010 64 bits & CRM 4.0

Posted by on Comments (0)

A short post to prevent you installing an edition of Office/Outlook 2010 64 bits and better go to setup a 32 bits version.

A few days ago on my twitter, I shared this link : "Microsoft warns: Don't use 64-bit Office 2010"

Here is one good illustration of that…

I just tried to install the Microsoft Dynamics CRM 4.0 for Microsoft Office Outlook on a computer with Outlook 2010 64 bits and here is the message I get :

Time to uninstall Office 2010 64 bits and install Office 2010 32 bits on this computer!

Edit : Here is the official message from the CRM Team.

Enterprise Library 5.0 Logging Application Block Database Trace Listener and .NET 4 Client Profile

Posted by on Comments (6)

The new Enterprise Library 5.0 was launched a few days before and I decided to use this new version in my projects. One of the main application block I'm using is the Logging Application Block.

I went to use it in a WCF Service Library into Visual Studio 2010. Everything was fine until I decided to use a Database Trace Listener. Of course, I referenced the Microsoft.Practices.EnterpriseLibrary.Logging.Database in my project. But it always failed to run with this message:

"Invalid TraceListenerData type in configuration 'listenerDataType=\"Microsoft.Practices.EnterpriseLibrary.Logging.Database.Configuration.FormattedDatabaseTraceListenerData, Microsoft.Practices.EnterpriseLibrary.Logging.Database, Version=5.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35\"'."

Finally, I found that you need to work with the .NET 4.0 Full Framework and not only the Client Profile. Some assemblies are needed by the Database Trace Listener that are not present in the Client Profile (to learn more about the differences between the Full Framework and the Client profile, go here).

So, just target your project to the .NET Framework 4 and everything will be fine.