title: Database Connection Problem when deploying Silverlight 4 application on IIS 5.1
body: <p>I'm new to developing Silverlight application and I got an issue with the database connection after deploying the application (I can access the application just fine, but I can't login due to the database problem).</p>
  
  <p>Below is my error message</p>
  
  <pre>
  Unhandled Error in Silverlight Application Load operation failed for query 'Login'. The remote server returned an error: NotFound.
     at System.ServiceModel.DomainServices.Client.OperationBase.Complete(Exception error)
     at System.ServiceModel.DomainServices.Client.ApplicationServices.AuthenticationOperation.End(IAsyncResult result)
     at System.ServiceModel.DomainServices.Client.ApplicationServices.AuthenticationOperation.c__DisplayClass1.b__0(Object state)
     at System.ServiceModel.DomainServices.Client.ApplicationServices.AuthenticationOperation.RunInSynchronizationContext(SendOrPostCallback callback, Object state)
     at System.ServiceModel.DomainServices.Client.ApplicationServices.AuthenticationOperation.HandleAsyncCompleted(IAsyncResult asyncResult)
     at System.ServiceModel.DomainServices.Client.AsyncResultBase.Complete()
     at System.ServiceModel.DomainServices.Client.ApplicationServices.WebAuthenticationService.HandleOperationComplete(OperationBase operation)
     at System.ServiceModel.DomainServices.Client.LoadOperation.c__DisplayClass4`1.b__0(LoadOperation`1 arg)
     at System.ServiceModel.DomainServices.Client.LoadOperation`1.InvokeCompleteAction()
     at System.ServiceModel.DomainServices.Client.OperationBase.Complete(Exception error)
     at System.ServiceModel.DomainServices.Client.LoadOperation.Complete(Exception error)
     at System.ServiceModel.DomainServices.Client.DomainContext.CompleteLoad(IAsyncResult asyncResult)
     at System.ServiceModel.DomainServices.Client.DomainContext.c__DisplayClass1b.b__17(Object )
  </pre>
  
  <p>and this is my connection string</p>
  
  <pre><code>&lt;connectionStrings&gt;  
    &lt;remove name="LocalSqlServer" /&gt;
    &lt;add name="LocalSqlServer" connectionString="server=.;data source=PC15\SQLEXPRESS;Initial Catalog=LodeSuiteDB;Integrated Security=True;" /&gt;
    &lt;add name="LodeSuiteDB1Entities" connectionString="metadata=res://*/Model1.csdl|res://*/Model1.ssdl|res://*/Model1.msl;provider=System.Data.SqlClient;provider connection string=&amp;quot;data source=PC15\SQLEXPRESS;initial catalog=LodeSuiteDB;integrated security=True;multipleactiveresultsets=True;App=EntityFramework&amp;quot;" providerName="System.Data.EntityClient" /&gt;
  &lt;/connectionStrings&gt;
  </code></pre>
  
  <p>Does anyone have the same problem? I'm using Visual Studio 2010 Ultimate Edition and SQL Server 2008 for my development (both running on Windows 7) whereas my IIS server (IIS 5.1) is running on Windows XP Professional</p>
  
  <p>I've been trying to solve this problem for days with no avail. Your help is greatly appreciated!</p>