locked
VS Lightswitch 2012 - Unable to debug locally - application typ web RRS feed

  • Question

  • Since some weeks ago I can't debug locally my LightSwitch Application (application type web). Always this error occurred:

    unknown error 0x89710016

    The only Workaround is change the application type to Desktop. I've tried some things like running VS as Admin, reinstall Visual Studio completely -> No change!! I can't remember what event triggered, maybe any MS Windows Update...

    One user I've found has the same issue: http://social.msdn.microsoft.com/Forums/vstudio/en-US/0fa7f8f5-2eea-4d24-bda0-d0a6efa671f1/lightswitch-2011-unable-to-debug-locally-using-ie-for-web-project-setting

    But the solution to remove the "Windows Update patches to Internet Explorer 8" didn't work for me, cause I haven't IE8 installed.

    I'am using :

    Microsoft Visual Studio Premium 2012
    Version 11.0.60610.01 Update 3
    Microsoft .NET Framework
    Version 4.5.50709

    IE10 10.0.9200.16618
    Update Version 10.0.6

    Any idea?

    Thanks!

    Andreas

    Friday, June 28, 2013 7:37 AM

All replies

  • I got this error like this with VS2013. In that case I needed to right-click on the proper startup project and "set as Startup project".

    The Visual Studio LightSwitch Marketplace

    http://LightSwitchHelpWebsite.com

    Friday, June 28, 2013 5:02 PM
  • Thanks! But how can i do that in a LightSwitch Project in VS 2012? I've changed the view to "File View". What next?

    Andreas

    Monday, July 1, 2013 11:06 AM
  • Set the LightSwitch project (BBSCFG) as the startup project, not the Client project.

    Justin Anderson, LightSwitch Development Team

    Monday, July 1, 2013 11:27 AM
    Moderator
  • Ah thanks! Ok, set this. But it didn't work. After that the 0x89710016 error occured again.

    Andreas

    Monday, July 1, 2013 11:35 AM
  • Hi Andreas,

    Do you see a more detailed description of  error 0x89710016 in the output window of Visual Studio?

    As Justin mentioned above, you have to ensure that the Lightswitch project is set as start up Project. Could you try this?

    1. Close and reopen the project. Set the Lightswitch project as startup project. You would now see the Startup project in bold. Now hit Debug. What happens?

    2. Add another Client to this project and then hit Debug. You can select your startup client by switching to File view and then right click-> Set as Start up client for the client you want to be used as Start up client. Does it run with any of the two clients?

    Thanks,

    Raghuveer


    gr


    Monday, July 1, 2013 7:30 PM
    Moderator
  • Yes there are more details! As you can see there are some Exceptions about "Security":

    'vslshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_32\mscorlib\v4.0_4.0.0.0__b77a5c561934e089\mscorlib.dll'
    'vslshost.exe' (Managed (v4.0.30319)): Loaded 'D:\dev\begros\bi\maintenance\trunk\BBSCFG\Bin\Debug\VslsHost.exe'
    'vslshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.LightSwitch.Server.Host\v4.0_11.0.0.0__b03f5f7f11d50a3a\Microsoft.LightSwitch.Server.Host.dll'
    'vslshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Windows.Forms\v4.0_4.0.0.0__b77a5c561934e089\System.Windows.Forms.dll'
    'vslshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll'
    'vslshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll'
    'vslshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll'
    'vslshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.LightSwitch.CodeMarker\v4.0_11.0.0.0__31bf3856ad364e35\Microsoft.LightSwitch.CodeMarker.dll'
    'vslshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll'
    'vslshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll'
    'vslshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_32\System.Web\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.dll'
    'vslshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.resources\v4.0_4.0.0.0_de_b03f5f7f11d50a3a\System.Web.resources.dll'
    'vslshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.Caching\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Runtime.Caching.dll'
    'vslshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\mscorlib.resources\v4.0_4.0.0.0_de_b77a5c561934e089\mscorlib.resources.dll'
    A first chance exception of type 'System.UnauthorizedAccessException' occurred in mscorlib.dll
    A first chance exception of type 'System.Security.SecurityException' occurred in mscorlib.dll
    A first chance exception of type 'System.ArgumentNullException' occurred in System.Core.dll
    'vslshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.Build.Utilities.v4.0\v4.0_4.0.0.0__b03f5f7f11d50a3a\Microsoft.Build.Utilities.v4.0.dll'
    'vslshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.JScript\v4.0_10.0.0.0__b03f5f7f11d50a3a\Microsoft.JScript.dll'
    'vslshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.LightSwitch.Server.Host.resources\v4.0_11.0.0.0_de_b03f5f7f11d50a3a\Microsoft.LightSwitch.Server.Host.resources.dll'
    'vslshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.WebPages.Deployment\v4.0_2.0.0.0__31bf3856ad364e35\System.Web.WebPages.Deployment.dll'
    'vslshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.WebPages.Deployment\v4.0_1.0.0.0__31bf3856ad364e35\System.Web.WebPages.Deployment.dll'
    'vslshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.CSharp\v4.0_4.0.0.0__b03f5f7f11d50a3a\Microsoft.CSharp.dll'
    'vslshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_32\System.Data\v4.0_4.0.0.0__b77a5c561934e089\System.Data.dll'
    'vslshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.Services\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dll'
    'vslshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_32\System.EnterpriseServices\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll'
    'vslshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.IdentityModel\v4.0_4.0.0.0__b77a5c561934e089\System.IdentityModel.dll'
    'vslshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.Serialization\v4.0_4.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll'
    'vslshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel\v4.0_4.0.0.0__b77a5c561934e089\System.ServiceModel.dll'
    'vslshost.exe' (Managed (v4.0.30319)): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Activation\v4.0_4.0.0.0__31bf3856ad364e35\System.ServiceModel.Activation.dll'
    The program '[3876] vslshost.exe: Managed (v4.0.30319)' has exited with code 0 (0x0).
    VslsHost is using port 49895.

    I've checked the startup project (the name is written in bold) and restart -> no change!

    Than i added  the HTMLClient to my project. Because of that VS says that a project upgrade is needed. My Project is created with LS 2011. After finishing the uggrade the Project looks a little bit different:

    I reset the StartUp Project to the Silverlight Client, the error occured again, now with this output:

    Thanks,

    Andreas


    Tuesday, July 2, 2013 11:45 AM
  • These two exceptions:

    • A first chance exception of type 'System.UnauthorizedAccessException' occurred in mscorlib.dll
    • A first chance exception of type 'System.Security.SecurityException' occurred in mscorlib.dll

    may be related to the problem of not being able to debug. I don't see these exceptions while debugging on a working installation. Can you get a call stack for each of these exceptions and post them here?


    Justin Anderson, LightSwitch Development Team

    Tuesday, July 2, 2013 1:03 PM
    Moderator
  • Can you get a call stack for each of these exceptions and post them here?

    Yes of course but can you guide me how i can do that? The Output Window doesn't show more...

    And btw: After VS upgrade the project only logged a 'System.UnauthorizedAccessException'

    Andreas


    Tuesday, July 2, 2013 1:37 PM
  • Update: After upgrade, VS was unable to reopen my project. So I've restored an older version and restart. After that I execute "Upgrade Project" manually . After all the Exceptions in output window are gone! But the Silverlight Client didn't start as web app at all.

    I added a HTML Client and set this Client as start-up client... it works!

    Only the Silverlight Client as Web App makes trouble... Ideas?

    Thanks,

    Andreas

     
    Tuesday, July 2, 2013 2:00 PM
  • Just for info.

    I removed "Visual Studio LightSwitch 2011" on my client and now I can debug the Silverlight Client as Web App under Visual Studio 2012.

    yeapi! :-)

    Andreas

    Wednesday, July 24, 2013 12:32 PM