<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Diagnosing Problems in a Deployed 3-Tier LightSwitch Application (Eric Erhardt)</title><link>http://blogs.msdn.com/b/lightswitch/archive/2011/09/20/diagnosing-problems-in-a-deployed-lightswitch-application-eric-erhardt.aspx</link><description>There are a number of times when a LightSwitch application works perfectly on a developer’s machine, but as soon as it has been deployed to an Internet Information Services (IIS) machine, it no longer works.&amp;#160; Problems can range from IIS not being</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Diagnosing Problems in a Deployed 3-Tier LightSwitch Application (Eric Erhardt)</title><link>http://blogs.msdn.com/b/lightswitch/archive/2011/09/20/diagnosing-problems-in-a-deployed-lightswitch-application-eric-erhardt.aspx#10358876</link><pubDate>Thu, 11 Oct 2012 19:21:37 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10358876</guid><dc:creator>Beth Massi</dc:creator><description>&lt;p&gt;Hi Brian,&lt;/p&gt;
&lt;p&gt;I see you&amp;#39;ve asked the question in the forums&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://social.msdn.microsoft.com/Forums/en-US/lightswitch/thread/4f4f8c38-13de-4820-99d4-5e6cf8aa28c5"&gt;social.msdn.microsoft.com/.../4f4f8c38-13de-4820-99d4-5e6cf8aa28c5&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve replied to you there. Hope that helps. &lt;/p&gt;
&lt;p&gt;-Beth&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10358876" width="1" height="1"&gt;</description></item><item><title>re: Diagnosing Problems in a Deployed 3-Tier LightSwitch Application (Eric Erhardt)</title><link>http://blogs.msdn.com/b/lightswitch/archive/2011/09/20/diagnosing-problems-in-a-deployed-lightswitch-application-eric-erhardt.aspx#10358273</link><pubDate>Wed, 10 Oct 2012 13:45:53 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10358273</guid><dc:creator>Brian Wolters</dc:creator><description>&lt;p&gt;I am getting the dreaded: HRESULT E_FAIL HAS BEEN RETURNED TO FROM A CALL TO A COM COMPONENT when I start a LightSwitch app. Any suggestions?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10358273" width="1" height="1"&gt;</description></item><item><title>re: Diagnosing Problems in a Deployed 3-Tier LightSwitch Application (Eric Erhardt)</title><link>http://blogs.msdn.com/b/lightswitch/archive/2011/09/20/diagnosing-problems-in-a-deployed-lightswitch-application-eric-erhardt.aspx#10358267</link><pubDate>Wed, 10 Oct 2012 13:34:40 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10358267</guid><dc:creator>Brian</dc:creator><description>&lt;p&gt;I am getting the dreaded: HRESULT E_FAIL HAS BEEN RETURNED TO FROM A CALL TO A COM COMPONENT when I start a LightSwitch app. Any suggestions?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10358267" width="1" height="1"&gt;</description></item><item><title>re: Diagnosing Problems in a Deployed 3-Tier LightSwitch Application (Eric Erhardt)</title><link>http://blogs.msdn.com/b/lightswitch/archive/2011/09/20/diagnosing-problems-in-a-deployed-lightswitch-application-eric-erhardt.aspx#10357008</link><pubDate>Sat, 06 Oct 2012 19:38:48 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10357008</guid><dc:creator>NGCBSiegel</dc:creator><description>&lt;p&gt;For those seeing the error: Load operation failed for query &amp;#39;GetAuthenticationInfo&amp;#39;. The remote server returned an error: NotFound. &lt;/p&gt;
&lt;p&gt;I was recently testing deployment scenarios under IIS and ran into this error. I thought I would post my findings and eventual solution in case you find yourself in the same position…&lt;/p&gt;
&lt;p&gt;As of 10/6/2012, my test server was Windows 2008R2 (latest service pack) with SQL Server 2012 Standard. The IIS role was not installed.&lt;/p&gt;
&lt;p&gt;I downloaded and ran WebDeploy 4 for the LightSwitch 2012 provisioning without SQL Express (since SQL Server was already installed on the same server). This obviously enables the IIS role.&lt;/p&gt;
&lt;p&gt;I had no problem publishing my LightSwitch 2012 Web application along with the database.&lt;/p&gt;
&lt;p&gt;However, when I attempted to run it, I received the error:&lt;/p&gt;
&lt;p&gt;Load operation failed for query &amp;#39;GetAuthenticationInfo&amp;#39;. The remote server returned an error: NotFound.&lt;/p&gt;
&lt;p&gt;Same thing happened when attempting to browser to the web app from the server locally. After taking a quick look with Fiddler, I noticed that the failure appeared to be related to a missing Authentication request ending with &amp;quot;.svc&amp;quot;. I took a quick look into the IIS script mappings and noticed that there was no mapping for anything with the extension &amp;quot;.svc&amp;quot;.&lt;/p&gt;
&lt;p&gt;Apparently, this is all realted to the ASP.net 4 dll mappings required to run the LightSwitch application. The solution (for me) was to simply go into Add/Remove programs and repair the .Net 4 extensions and .NEt 4 Client installs. &lt;/p&gt;
&lt;p&gt;Afterwards, I noticed a whole bunch of new IIS script mappings created - including one ending in .svc.&lt;/p&gt;
&lt;p&gt;Problem solved. After this, the LightSwitch app loaded and ran with no errors. Perhaps the order by which I enabled these components on a new Windows 2008R2 server (ie. SQL Server 2012, WebDeploy for LS 2012 – no SQL express) causes an issue with the .Net 4 IIS mappings required to support the LS application.&lt;/p&gt;
&lt;p&gt;I hope this helps anyone running into a similar situation.&lt;/p&gt;
&lt;p&gt;Benjamin&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10357008" width="1" height="1"&gt;</description></item><item><title>re: Diagnosing Problems in a Deployed 3-Tier LightSwitch Application (Eric Erhardt)</title><link>http://blogs.msdn.com/b/lightswitch/archive/2011/09/20/diagnosing-problems-in-a-deployed-lightswitch-application-eric-erhardt.aspx#10350872</link><pubDate>Wed, 19 Sep 2012 15:59:07 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10350872</guid><dc:creator>Kellylee</dc:creator><description>&lt;p&gt;Excellent post! &amp;nbsp;This helped me a lot. &amp;nbsp;I had to change my targetframework to ASP.NET v4.0.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10350872" width="1" height="1"&gt;</description></item><item><title>re: Diagnosing Problems in a Deployed 3-Tier LightSwitch Application (Eric Erhardt)</title><link>http://blogs.msdn.com/b/lightswitch/archive/2011/09/20/diagnosing-problems-in-a-deployed-lightswitch-application-eric-erhardt.aspx#10331002</link><pubDate>Wed, 18 Jul 2012 06:49:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10331002</guid><dc:creator>SydneyWaterBoy</dc:creator><description>&lt;p&gt;Really helpful, thanks...it takes us one step closer to the solution whereas before I was on a slide going backwards!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10331002" width="1" height="1"&gt;</description></item><item><title>re: Diagnosing Problems in a Deployed 3-Tier LightSwitch Application (Eric Erhardt)</title><link>http://blogs.msdn.com/b/lightswitch/archive/2011/09/20/diagnosing-problems-in-a-deployed-lightswitch-application-eric-erhardt.aspx#10316325</link><pubDate>Wed, 06 Jun 2012 22:21:30 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10316325</guid><dc:creator>Eric Erhardt</dc:creator><description>&lt;p&gt;@Yann - Some of these tips and tricks work for 2-tier deployed apps as well. &amp;nbsp;The diagnostics with &amp;quot;trace.axd&amp;quot; works but the trick is to find the port number the vslshost.exe process is listening to. &amp;nbsp;I usually find the port number by going to the Task Manager -&amp;gt; Resource Manager -&amp;gt; Network tab and look under &amp;quot;Listening Ports&amp;quot; for VslsHost.exe. &amp;nbsp;Once you have the port number, open a browser and navigate to &amp;quot;http://localhost:&amp;lt;port&amp;gt;/trace.axd&amp;quot;.&lt;/p&gt;
&lt;p&gt;Along those same lines, you can open your browser and just navigate to &amp;quot;http://localhost:&amp;lt;port&amp;gt;&amp;quot; and your LightSwitch app should load in the browser. &amp;nbsp;Now you can use Fiddler in the same ways I described above. &amp;nbsp;(Sometimes to get Fiddler to recognize localhost requests I need to say &amp;quot;http://localhost.:&amp;lt;port&amp;gt;&amp;quot; [note the period after localhost].) &amp;nbsp;In order to get customErrors=&amp;quot;off&amp;quot;, you need to edit your web.config.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10316325" width="1" height="1"&gt;</description></item><item><title>re: Diagnosing Problems in a Deployed 3-Tier LightSwitch Application (Eric Erhardt)</title><link>http://blogs.msdn.com/b/lightswitch/archive/2011/09/20/diagnosing-problems-in-a-deployed-lightswitch-application-eric-erhardt.aspx#10315607</link><pubDate>Wed, 06 Jun 2012 00:39:18 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10315607</guid><dc:creator>Yann Duran</dc:creator><description>&lt;p&gt;Hi Eric,&lt;/p&gt;
&lt;p&gt;This is a really good, well-detailed article, but it&amp;#39;s all about LS web applications. What would you suggest for desktop (so-called 2-tier apps, even though I know that they&amp;#39;re really still 3-tier), other than make it a web app?&lt;/p&gt;
&lt;p&gt;Where can we look for these problems that you decribed when the app is not a web app.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Yann&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10315607" width="1" height="1"&gt;</description></item><item><title>re: Diagnosing Problems in a Deployed 3-Tier LightSwitch Application (Eric Erhardt)</title><link>http://blogs.msdn.com/b/lightswitch/archive/2011/09/20/diagnosing-problems-in-a-deployed-lightswitch-application-eric-erhardt.aspx#10252112</link><pubDate>Fri, 30 Dec 2011 18:49:37 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10252112</guid><dc:creator>ADefwebserver</dc:creator><description>&lt;p&gt;When I take a LightSwitch application that is working on one computer and then try to run the Visual Studio project on another, and I get the &amp;quot;red X&amp;quot;, I can fix it by opening up one of the Entities under Data sources, making a small changes, saving, then changing it back.&lt;/p&gt;
&lt;p&gt;This will dump any sample data you may have had but it fixes the problem.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10252112" width="1" height="1"&gt;</description></item><item><title>re: Diagnosing Problems in a Deployed 3-Tier LightSwitch Application (Eric Erhardt)</title><link>http://blogs.msdn.com/b/lightswitch/archive/2011/09/20/diagnosing-problems-in-a-deployed-lightswitch-application-eric-erhardt.aspx#10242029</link><pubDate>Mon, 28 Nov 2011 15:47:20 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:10242029</guid><dc:creator>LightSwitch Team</dc:creator><description>&lt;p&gt;@Spoonstomper - LightSwitch uses WCF Ria Services underneath the covers. &amp;nbsp;WCF Ria Services will return a 404 whenever an exception occurs while trying to initialize the service. &amp;nbsp;Here is some information on how to diagnose Ria Services - &lt;a rel="nofollow" target="_new" href="http://msdn.microsoft.com/en-us/library/ff426913(VS.91).aspx"&gt;msdn.microsoft.com/.../ff426913(VS.91).aspx&lt;/a&gt;. &amp;nbsp;Also, maybe enabling WCF tracing might lead you to some more information - &lt;a rel="nofollow" target="_new" href="http://msdn.microsoft.com/en-us/library/aa702726.aspx"&gt;msdn.microsoft.com/.../aa702726.aspx&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;If all else fails, attaching a debugger to the w3wp.exe process and breaking on exceptions is usually my last resort to figuring out what is going wrong.&lt;/p&gt;
&lt;p&gt;- Eric&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=10242029" width="1" height="1"&gt;</description></item></channel></rss>