How to Get a Stack Trace in LightSwitch

A lot of times LightSwitch customers will run into an error in the product and post a question on the forums but the LightSwitch development team needs more information about the error.  This blog post describes how you can help the LightSwitch development team determine the source of those kinds of errors you may encounter. …


Customizing LightSwitch User Management

When you enable Windows or Forms authentication in a LightSwitch app, a set of SQL tables are used to store the user and role data.  But did you know that you can customize how and where LightSwitch gets the user and role data?  You don’t have to use the default set of SQL tables that…


Using the SecurityData service in LightSwitch

In this blog post, I’m going to describe how LightSwitch developers can programmatically access the security data contained in a LightSwitch application.  Having access to this data is useful for any number of reasons.  For example, you can use this API to programmatically add new users to the application. This data is exposed in code…


Controlling App Capabilities when Using Shared Libraries in Windows Phone Apps

The Problem: The other day I published an updated version of my Windows Phone app CalcuFitness after some major code refactoring.  Much to my surprise, I discovered that the app certification process determined that my app required the location services capability when it in fact does not make use of location services.  It wasn’t long…


LightSwitch Trick: Display Loading Message while a Screen is Loading

In the LightSwitch apps that I create, I have a common pattern where I display a “Loading” message in the title bar of a screen while it is loading and then set it to its actual screen name once it’s finished.  In particular, this is useful for screens whose title is dependent on the data…


Creating a Custom Login Page for a LightSwitch Application

When configuring a Visual Studio LightSwitch application to use Forms authentication, the application user is prompted with the following login UI when they open the application: Many LightSwitch customers have asked about creating their own custom UI in place of this default login experience.  Maybe you’d like to display the company logo, for example.  This…


LightSwitch Star Contest

Think you’ve got what it takes to be a LightSwitch star?  Check out the new LightSwitch application contest at


Visual Studio LightSwitch V1 is Released

Today is an exciting day.  After years of hard work, Visual Studio LightSwitch V1 has been released.  This is my first shipped product while working in the Server & Tools Division at Microsoft and I couldn’t be happier (my previous shipped products were in the Business Division).  Feedback from the first two beta versions has…


Invoking Tier-Specific Logic from Common Code in LightSwitch

Visual Studio LightSwitch makes use of .NET portable assemblies to allow developers to write business logic that can be executed on both the client (Silverlight) and server (.NET 4) tiers.  In LightSwitch terminology, we refer to the assembly that contains this shared logic as the Common assembly.  In this post, I’m going to describe a…


Visual Studio LightSwitch Beta 2

I’m very excited to say that we’ve released Beta 2 of Visual Studio LightSwitch to MSDN subscribers.  It will be available publicly on Thursday, Mar. 17.  So go out there and start downloading.  Let us know what you think.