GetAuthenticationInfo error appears on published web LS - VS2012

Yanıt GetAuthenticationInfo error appears on published web LS - VS2012

  • 24 Temmuz 2012 Salı 09:53
     
     

    My LS web app was working fine until I switched to Windows 8 and Visual Studio 2012.

    VS2012 required an upgrade on the LS project and I was able to get it to work locally (TargetFramework = v4)

    • Debug + Run works
    • Publish desktop app to local machine works
    • Publish desktop app to local machine - change connection to prod connection - works

    What doesn't work (and should work) is publishing it as a Web app. I get the loading screen but instead of the login page, I have the dreaded "Load operation failed for query 'GetAuthenticationInfo'. The remote server returned an error: NotFound".

    This link was recommended several times: http://blogs.msdn.com/b/lightswitch/archive/2011/09/20/diagnosing-problems-in-a-deployed-lightswitch-application-eric-erhardt.aspx So I got Fiddler and followed the steps but I don't get any "404" on Fiddler when the error appears. So that didn't help in my scenario.

    I also read that for some people "Repair .Net 4" worked but I don't know how to do that on Windows 8. I couldn't even install .Net 4 because it already has 4.5.

    Any help would be appreciated.

Tüm Yanıtlar

  • 25 Temmuz 2012 Çarşamba 01:45
     
     
    I still have no idea how to fix this problem but I found out that if I create a new project (on VS 2012 RC) and publish it, it works fine. What I want to do now is to import the original LS project/s into the new one. New thread: http://social.msdn.microsoft.com/Forums/en-US/lightswitch/thread/5e677dfc-869b-4c67-9fd9-ba879b24f7f3
  • 25 Temmuz 2012 Çarşamba 06:44
     
     

    Because I was advised to stick to trying to resolve my GetAuthenticationInfo error, I made several new discoveries:
    When I install the LS prerequisites on Windows 8 + Vs 2012 (has Vs 2010) -- and try to publish from VS 2010, I get this error on my IIS:

    Error from fiddler

    I don't really understand the error. Can anyone help?

  • 07 Ağustos 2012 Salı 18:09
     
     

    Please validate that the authentication on the web site is set to use Forms Authentication only if you are not using Windows Auth.  Many times by default the site's authentication has multiple authentication types such as Basic, or Windows Auth enabled.  This can cause the issue you are seeing.  You can only have 1 type of authentication (besides Annonymous).


    Derek

  • 07 Ağustos 2012 Salı 20:16
     
     

    Please validate that the authentication on the web site is set to use Forms Authentication only if you are not using Windows Auth.  Many times by default the site's authentication has multiple authentication types such as Basic, or Windows Auth enabled.  This can cause the issue you are seeing.  You can only have 1 type of authentication (besides Annonymous).


    Derek


    This was exactly the problem (and solution) that I faced. I was not able to see that it was the "multiple authentication types" until I looked at the Event Viewer on the web server. The only error I was able to see over the web was the "GetAuthenticationInfo error".

    The Visual Studio LightSwitch Marketplace

    http://LightSwitchHelpWebsite.com

  • 07 Eylül 2012 Cuma 06:44
     
     Yanıt

    It took me a couple of months but I now have a solution for this problem.

    1.) I now have Visual Studio Ultimate 2012 -- after resolving a lot of DLL reference issues. The error I encountered evolved from the terrible "GetAuthenticationInfo" to something more specific "Could not load file or assembly Microsoft.Lightswitch.Extensions.Client...."

    2.) I installed VS SDK (Only to successfully install #3)

    3.) I installed Microsoft.Lightswitch.Toolkit -- Because the missing DLL is about Lightswitch Extensions, I wanted to know if I could install and uninstall other Lightswitch Extensions and then I saw this toolkit.

    4.) Lastly, I had to resolve Microsoft.Lightswitch.Extensions.Client DLL reference and Microsoft.Lightswitch.Extensions.Server DLL reference (again, after #3 installed).

    After that, I only have a problem with one specific part of my code regarding querying Azure tables. I commented that out (I'll be asking a new question about it because that's a new puzzle) then published and it was working!

    Hope I save someone else's time with that information.



    • Yanıt Olarak İşaretleyen oyen 07 Eylül 2012 Cuma 06:44
    • Düzenleyen oyen 07 Eylül 2012 Cuma 06:46 Removed numbered list because it translates to bullet points. Hardcoded the numbers instead.
    •