Problem: domainServiceContext.User.Identity.IsAuthenticated always returns false and therefore domainServiceContext.User.Identity.Name returns and empty string (“”)

Solution: Enable WindowsAuthentication and disable AnonymousAuthentication on IIS Express using the Web project’s properties page.


I have a Silverlight 5 application, that was created in Visual Studio 2010, using Windows authentication, but when I open the application in visual Studio 2013 a call to domainServiceContext.User.Identity.IsAuthenticated always returns false and therefore domainServiceContext.User.Identity.Name returns and empty string (“”)

Note: domainServiceContext is an instance of the DomainServiceContext class in the System.ServiceModel.DomainServices.Server dll and namespace.

In my particular case the problem was that on Visual Studio 2010 the application was running under the Visual Studio Development Server but in Visual Studio 2013 it was running on IIS Express, since the Visual Studio Development Server was replaced with IIS Express.

IIS Express by default, seems to have AnonymousAuthentication enabled and WindowsAuthentication disabled, as you can see on the <authentication> section of the IIS Express’ configuration file which is located in %USERPROFILE%\Documents\IISExpress\Config\applicationhost.config as shown below:

<anonymousAuthentication enabled=”true” userName=”" />
<basicAuthentication enabled=”false” />
<clientCertificateMappingAuthentication enabled=”false” />
<digestAuthentication enabled=”false” />
<iisClientCertificateMappingAuthentication enabled=”false”>
<windowsAuthentication enabled=”false”>
<add value=”Negotiate” />
<add value=”NTLM” />

The solution was to enable Windows Authentication and disable Anonymous Authentication, which you can do by changing the defaults settings in the applicationhost.config file, or better yet by changing these settings at the project level, by going to the web project hosting the Silverlight application’s properties page by clicking on the project name and press F4, as shown below:



Note: If you previously converted the application to Visual Studio 2013 and created a Virtual Directory by clicking the Create Virtual Directory button in the Properties dialog from the Web tab as shown below, and changed the settings as explained above:


You will get a dialog screen saying the settings will be change, if you try to convert the project again from Visual Studio 2010 to 2013 (from a backup for example) as shown here:


That’s because creating the Virtual Directory will create a location entry in the same applicationhost.config configuration file, specifying those values as shown here:

<location path=”SilverlightApplication1.Web”>
<windowsAuthentication enabled=”true” />
<anonymousAuthentication enabled=”false” />

For stock, royalty free, videos, sound effects, production music and AE (After Effects) templates for free, I recommend you Video Blocks, they have a 7-day free trial, and you can download up to 20 files per day. If you like the content you can subscribe after the trial period, otherwise don’t forget to cancel after the trial period or before, or you will get renewed automatically.

You can get a 90% discount using the link below:

Download from over 100,000 Stock Videos, Production Music, AE Templates & more! Here’s a coupon for a 90% discount:

For free sound effects without paying a membership I recommend you this site Check the license on the individual files you download, some may require attribution.

Do you know any other good sites with free content? Please send us the links on the comment area below.

Thank you,

Try the Troubleshooting the Windows Phone 8 Emulator:

You will find the following topics:

Problem:  How to open the Settings screen programmatically in Windows Phone?

Solution: Use the ConnectionSettingsTask from the Microsoft.Phone.Tasks namespace.


using Microsoft.Phone.Tasks; ConnectionSettingsTask task = new ConnectionSettingsTask(); task.ConnectionSettingsType = ConnectionSettingsType.WiFi;


Imports Microsoft.Phone.TasksDim task as ConnectionSettingsTask = new ConnectionSettingsTask()
task.ConnectionSettingsType =

  • Available Connection Types:
  • AirplaneMode
  • Bluetooth
  • Cellular
  • WiFi

For a complete list of Choosers and Launchers go here:



When I deploy a Windows Store application to the Simulator, Visual Studio Output shows “Deployment complete.” however the application never launches and the Simulator hangs forever showing the loading screen.







While Visual Studio displays “Starting the Simulator”




Then if I close the Simulator I get in Visual Studio this error: “Unable to start the Simulator. Cannot process request because the process (####) has exited.”





Or “Unable to start the Simulator. Simulator closed or crashed.”





I also noticed that even if I don’t deploy an application, but I launch the simulator directly from “C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Simulator\11.0\Microsoft.Windows.Simulator.exe” the issue still happens.

And finally, if I deploy the application to the  Local Machine, the application runs just fine.


Possible Solutions:

I found in forums the following 2 solutions:

  • Changing the following key in the registry to 1  HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\fDenyChildConnections
  • Updating NVIDIA drivers.

However none of the above worked for me.

Then I figured out what was causing the issue in my case.



  • I realized that having an open VPN connection to another network was causing the problem. So, just by closing the connection the problem got solved.

The issue and fix happens every time I open and close the VPN connection. However, I still would like to have a permanent solution without having to close the connection, so if anybody finds it please let me know.


Begin your 30-day journey to create a great Windows 8 app. Get started here and receive:

  • Insider tips and tricks on Windows 8 application development.
  • Personal on-the-phone access to a Windows 8 architect*.
  • An exclusive one-on-one design consultation*.
  • An opportunity to get expert help from a Microsoft Services Engineer at an App Excellence Lab.

Your new Windows 8 app could be mere days away.

Click the image below to get started.

Carpe Diem Windows 8

* Offer good only to legal residents in the 50 United States & D.C., age 18 or older to hobbyists, professionals or developers in the field of software tech who sign up for building a Windows 8 application on Offer limited to 250 design consultations per month and 500 technical review consultations per month, on a first come first served basis. Limit of one session of each offer type per person. This offer is non-transferable and cannot be combined with any other offer. This offer ends when supplies are exhausted, and is not redeemable for cash.


I have the following line: ShellTile TileToFind = ShellTile .ActiveTiles.First(); to get the first application tile of my Windows Phone 7 application, but First() doesn’t get recognized and I get this error:

Error 2 ‘System.Collections.Generic.IEnumerable<Microsoft.Phone.Shell.ShellTile>’ does not contain a definition for ‘First’ and no extension method ‘First’ accepting a first argument of type ‘System.Collections.Generic.IEnumerable<Microsoft.Phone.Shell.ShellTile>’ could be found (are you missing a using directive or an assembly reference?)


Add the following using statement at the top of your .cs file.

using System.Linq;

The following languages are supported:

Culture name

Code WP7 7.0

WP7 7.1

Chinese Simplified (PRC) zh-CN No Yes
Chinese Traditional (Taiwan) zh-TW No Yes
Czech (Czech Republic) cs-CZ No Yes
Danish (Denmark) da-DK No Yes
Dutch (Netherlands) nl-NL No Yes
English (United States) en-US Yes Yes
English (United Kingdom) en-GB Yes Yes
Finnish (Finland) fi-FI No Yes
French (France) fr-FR Yes Yes
German (Germany) de-DE Yes Yes
Greek (Greece) el-GR No Yes
Hungarian (Hungary) hu-HU No Yes
Italian (Italy) it-IT Yes Yes
Japanese (Japan) ja-JP No Yes
Korean (Korea) ko-KR No Yes
Norwegian (Norway) nb-NO No Yes
Polish (Poland) pl-PL No Yes
Portuguese (Brazil) pt-BR No Yes
Portuguese (Portugal) pt-PT No Yes
Russian (Russia) ru-RU No Yes
Spanish (Spain) es-ES Yes Yes
Swedish (Sweden) sv-SE No Yes
For the official documentation click this link: Culture and Language Support for Windows Phone.