My First App – Sports MTL

MPLargeApplicationIcon

After a few months of experimenting with programming for Windows Phone 7, but without really publishing the application, I decided to try to launch an application that would be published: Sports MTL. An application that allows you to know the status of various recreational/sports venues such as ice rinks, slides, and cross-country ski trails.

This application is available in French and English, in trial or paid version. If you have any suggestions or comments about this application, please visit the UserVoice site for Sports MTL.

[Read More]

SharePoint 2010: bug with WebConfigModification

When you want to make changes to the web.config file of your SharePoint 2010 application, you can use two methods:

  • Create a webconfig.<your_name>.xml file that you add to the \CONFIG directory (Source on MSDN)
  • Do it programmatically and use the SPWebConfigModification and SPWebApplication.WebConfigApplication objects (Source on MSDN).

However, when you use the second method and remove the changes from the file using Remove(), the changes are not removed. Even if you use .Update() and .ApplyWebConfigModifications(). This may only result in your modification appearing multiple times in the web.config file, but if you insert more sensitive modifications to uniqueness, such as for an HttpModule, it creates an error that prevents the site from functioning (Error 500).

[Read More]

Microsoft Gadgeteer, the beginning

At the end of last year, I had published that Microsoft Research was working on a prototype electronic platform running on NETMF named Gadgeteer. Well, it now seems that it has moved out of the research phase to “commercialize” this platform: Microsoft .NET Gadgeteer.

GHI Electronics has released the first Gadgeteer kit named GHI FEZ Spider Starter Kit. This kit allows you to code your own electronic module using your favorite language (and I am talking about C# ;) ) without knowing the basics of electronics. In fact, it is a hardware abstraction to allow budding hobbyists to start without learning how to solder or connect various electronic components.

[Read More]

A Substitute for Red Gate's .Net Reflector

If you are like me, you have already used .Net Reflector to decompile some .Net classes. The product has been owned by Red Gate for a few years now, and they have kindly eliminated the free version to make it paid. I came across this article by Corey Roth where he mentions that even the latest version of Reflector contains a Time Bomb, meaning you would be forced to upgrade to the paid version starting June 1st.

[Read More]
Categories: .NET  C#  Tools  Tags: .NET  .Net Reflector  Red Gate  Corey Roth  ILSpy 

I received my Fez Panda II and an LCD

I finally received my Fez Panda II, running on NETMF of course, from Ghi Electronics after spending a gift certificate I had won on TinyClr.com! Fez Panda II

I also ordered a 128x64 pixel backlit LCD screen, connected here via my Fez Panda II: Fez Panda II + LCD

Well, I’m going back to play with my toys.

Happy coding!

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]

C# 5.0: Asynchronous Programming

For those who are not aware, you can download the Visual Studio Async CTP to get a preview of what is coming in the asynchronous world! This is just the CTP version, so there may be changes between this version and the official release.

Also, visit Eric Lippert’s blog to learn more about the topic.

Categories: .NET  C#  MSDN  Tags: C#  Async  Visual Studio 2010  Eric Lippert  MSDN 

[VS2010 Tips] Multi-line Insertion

While reading the MSDN article on converting VBA applications to C# 4.0, I remembered the famous ALT+[Selection] function that allows you to insert the same text/code on multiple lines at once. So, here is the English version of that part of the article:

Press ALT and select where you want to insert your code (selection in light blue in the image below):
image
Type your code and boom! All the selected lines have been filled with your code:

[Read More]
Categories: .NET  C#  Tools  Tags: VBA  MSDN  VS2010  Tips  Visual Studio 2010  C#