Unable to publish LightSwitch OOB Appliactions after installing VS2012 RC

Locked Unable to publish LightSwitch OOB Appliactions after installing VS2012 RC

  • Tuesday, June 05, 2012 6:12 AM
     
     

    This is driving me crazy (well crayzier!).

    When I installed VS11 Beta, after a while I discovered that I could no longer publish an LS app. I really didn't like what had been done to the VS UI, so I uninstalled VS11 & went back to using VS2010.

    When the RC came out, I thought I'd give it a try again. Unfortunately, same result. I am absolutely unable to publish an app again (in both VS2012 & VS2010 which used to work). These apps are desktop apps.

    Has anyone else run into this?

    It look like I'm going to have to uninstall the RC & reinstall/repair VS 2010. Not looking forward to doing that again!

    Here's the error I'm currently getting:


    Yann - LightSwitch Central - Click here for FREE Themes, Controls, Types and Commands
     
    If you find a reply helpful, please click "Vote as Helpful", if a reply answers your question, please click "Mark as Answer"
     
    By doing this you'll help people find answers faster.


    • Edited by Yann Duran Tuesday, June 05, 2012 6:16 AM Added image
    •  

All Replies

  • Tuesday, June 05, 2012 1:53 PM
     
     

    I actually had no problems publishing from the Beta. But I am unable to publish from the RC.

    Differences are that I'm using a web app and I get no error whatsoever. My problem is that the Beta worked so well for me that I started using some of the new features. So I can't go back to 2010. :(

    There are several thread about people not being able to publish. And they broke the ability to work with the Chrome browser. Hopefully some patches or RC2 is forthcoming.

  • Wednesday, June 06, 2012 12:12 AM
     
     

    Hi Kyle,

    Thanks for letting me know that it's not just me. I'd love to make use of some of the new features (UI horrors not withstanding), but not being able to publish successfully means that I just can't use it.

    I haven't been around much lately (I've been really sick for several months), so I haven't seen any of the publishing posts (I did search before I posted, but didn't find any). It's a real bummer that when I do come back that I can't even make use of LS V2 (RC).

    I've now uninstalled the Visual Studio 2012 RC, repaired VS 2010, reinstalled SP1, repaired LS 2011.

    I got the following errors (which I remember from the uninstalling the Beta as well):

    I'm hoping that this just means that they're already installed, & that it won't cause me any further errors.

    I have to say though, that I'm MUCH more comfortable using VS 2010. It was so hard to find things in VS2012 & it just looked so bland (even with the tiny bit of color that was reintroduced).

    Well, at least I can publish again now (I just tested it at the client). It was quite embarassing to tell them I had installed an update (yesterday), only to find that nobody could log on any more.

    Just to be clear, the publising process itself doesn't show any error, you just can't log into the application any more.

    When I experimented with a fresh intrinsic database, there seems to be no application record & the administrator account doesn't get added, in fact none of the asp table records seem to get created, even if you select the "yes" authentication option, & provide the administrator details.

    Using a previous copy of the intrinsic database, where I checked that the required records were there (which work again when publishing from VS 2010) give the same error.

    I certainly hope they fix whatever the problem is, but I won't be installing VS 2012 on my development laptop again any time soon, "go live license" or not. You'd think that with a "go live license" that it would actually "work". VS 2012 & VS  2010 may be fine, side by side, for normal development work, but it doesn't seem to work that way for LightSwitch, apparently.

    I haven't tried publishing with a new app though, just existing apps, if that helps the team figure out what's wrong.

    Edit: The reason I had to uninstall VS 2012, & reinstall VS 2010 was because my app was no longer publishing correctly in VS 2010 (exactly the same errors logging in).


    Yann - LightSwitch Central - Click here for FREE Themes, Controls, Types and Commands
     
    If you find a reply helpful, please click "Vote as Helpful", if a reply answers your question, please click "Mark as Answer"
     
    By doing this you'll help people find answers faster.


    • Edited by Yann Duran Wednesday, June 06, 2012 12:23 AM Added reason for uninstalling/reinstalling
    •  
  • Wednesday, June 06, 2012 2:38 AM
     
     

    Hi Yann,

    In my case I could not go backward to LS2010.

    So with VS11 I recreated an empty Lightswtich project and copied the physical files checking one by one hoping to find an answer. But no luck.

    I ended up removing dependency on MS Office/Word which made me to use desktop app.

    Then recreating online document editing/publishing capability (with different kind of hardships) I could make it as a web app. So it is ok now.

    Even with such a pain, I have to say that LightSwitch is the absolute best thing. So productive and painless.

    Thanks to each of the LightSwitch team members. Keep going!!!

    Young

  • Wednesday, June 06, 2012 1:00 PM
     
     

    Since you seem to have issues with the login, I figured I'd mention this. I know you uninstalled 2012 so you probably won't be able to test this unless you set up a test machine. But something to keep an eye out for when you upgrade.

    After you import and upgrade a project into 2012, go to your Data Sources and click Update Datasource. You'll see that all of the ASP tables, users, roles, etc., are no longer intrinsic. They are in the SQL Database. You can open up SQL Server Management Studio and verify this.

    But, the ASP tables are not connected and Lightswitch creates new intrinsic tables to hold the user data. So it's as if your user data is no longer there. I've read up on and experimented with exporting the ASP tables to SQL and reconnecting them previously in 2010 but was never able to get it to work properly so I abandoned the idea.

    Just something to keep an eye out for.

  • Thursday, June 21, 2012 5:26 AM
     
     

    Ahh! That expains something that I had noticed, but didn't really take note of fully. I *did* find that the ASP tables had unexpectedly appeared in my database, but I just figured that it was something that I had accidentally done myself. Because I had to uninstall to be able to move on, I never realised what had actually happened.

    Thanks so much for pointing that out!


    Yann - LightSwitch Central - Click here for FREE Themes, Controls, Types and Commands
     
    If you find a reply helpful, please click "Vote as Helpful", if a reply answers your question, please click "Mark as Answer"
     
    By doing this you'll help people find answers faster.