Answered Problem when deploying

  • Saturday, August 11, 2012 2:34 AM
     
     

    I'm getting an exception when deploying on IIS

    I have a Web, IIS deploy, it generates 3 files, I tryed with the cmd, but it sayd the Connection String was Empty.. so I tryed with the usual method.. Deploy Package, ite creates the database, but when it tryes to create the Role, it fails.. is this some kind of bug or something I did bad?

    Some parameter I must change?

    I have LightSwitch for Microsoft Visual Studio 2012 RC

    Please hekp me.

    Thanks


    SebaXOR

All Replies

  • Saturday, August 11, 2012 2:58 PM
    Moderator
     
     
    Are you publishing to a remote machine? Or to your dev machine? If not to a remote machine, have you tried publishing it locally? Or as even a desktop application, to see if it works there?

    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.

  • Saturday, August 11, 2012 6:37 PM
     
     

    Juste Local IIS, I will try desktop to wee what happends.. that was my plan B :P to deploy as desktop and use the database, then man ually config the web config and app in IIS.

    I will try and let you know :).. because in V1 it works perfect D: 

    Tnx


    SebaXOR

  • Saturday, August 11, 2012 7:52 PM
     
     

    The same :(

    Local machine dployment, Web and Desktop.. the same exception :(.

    I have some suspicios

    1. My project name has spaces
    2. A LS V2 Bug
    3. Some parameter of SQL Server that I must configure, at least to wait for an SQL Server excveption and get more information, becuase I think if the timeout is being reached, it's because some procces is too big or is going to trhow another exception. What parameter and where?

    Some other opinions?

    Thanks

     


    SebaXOR

  • Sunday, August 12, 2012 2:50 PM
    Moderator
     
     

    I'm afraid I can't hellp much with web applications, because I don't use them. Looking at your error message "EXEC sp_adrolemember" looks to be where the problem is originating, resulting in a timeout, but why it's happening I don't know, sorry.

    Have you followed Beth Massi's post on how to configure web servers for LightSwitch?


    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.

  • Sunday, August 12, 2012 6:43 PM
     
     

    But I tryed with Desktop deployment too.. it didn't work.. I have another LS Apps deployed with V1 in this server with no problems :( so the configurarion must be fine.. Why I always have weird problems that anyone else has :(?

    Tnx


    SebaXOR

  • Monday, August 13, 2012 1:21 AM
    Moderator
     
     

    "Why I always have weird problems that anyone (nobody) else has :(?"

    Without meaning to sound like a smart a$$, it has to be that you're doing something "different" to what everyone else is doing.


    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.

  • Monday, August 13, 2012 1:26 AM
     
     

    D: ... I'm an exception magnet... what could be? I'm a developer so I try to think and do all the options.. to see if I can reach my goal.. but sometimes I just can't.. and I think.. if this softwares has a lof of testing.. should not they be stupid-proof? (This time.. the stupid is me :/)

    By the Way.. I can deploy V1 apps... is there a way to turn a V2 project into a V1 project (downgrade) ??

    (Thanks for the correction :P I'm still learning ^^, those things helpe me)

    Thanks


    SebaXOR

  • Monday, August 13, 2012 1:47 AM
    Moderator
     
     

    I often find that it's people who have experience with previous technologies who have the most difficulties coming to grips with LS. LS often has it's own way of doing things, & if you try to do it the way you've been used to doing, it doesn't work so well. If you recognise that this is happening to you, you need to take a step back, & say to yourself "I must forget about how I would do this without LS, so what is the LS way to do what I want".

    It gets easier with time. But the more one resists, the longer it takes before getting the "aha" moment.

    I don't think that you're "stupid" at all, if anything you're probably too clever for your own good. Otther technologies often require complicated solutions to get things done. LS has been designed to make it "easy" for non-programmers to use, so when we "developers" come along, it can be hard to simplify what we're used to doing, so that it works well in LS.

    I see two different camps of complaints about LS:

    1. I'm not a programmer, & I don't know how to write the code I need
    2. I'm a developer, & LS won't use the techniques I know how to use elsewhere

    I'm glad to hear that I may have been able to be of some help to you. I hope that continues to be the case. :-)

    Oh, & no, unfortunately there isn't a way to turn a V2 application back into a V1 version, the two are just so different, internally. Just think about OData vs RIA services, & no ClientGenerated & ServerGenerated projects, just for starters.


    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.

  • Monday, August 13, 2012 3:16 AM
     
     

    Well.. my case is 2.. but I don't know if is an advantage.. I jump from WinForms and ASP.NET to LS, withouth knowing anything of SL.. and I have had to learn "in a bad way".. And of course sometimes I think.. how I can do this (That in WinForms is like this...)

    I will try to find out what I'm doing different..

    Tnx


    SebaXOR

  • Monday, August 13, 2012 3:40 AM
    Moderator
     
     

    I used to develop using MS Access, then Winforms, then WPF, with NO Silverlight experience at all, so I know what it's like. WPF did actually prepare me a bit for Silverlight, but the "web" aspects were a bit of a shock.

    I have always been, & may remain, a desktop-oriented developer. I only say "may remain" because MS is doing its damndest to make everything "online", whethere it's what we (or our customers) want or not.


    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.

  • Tuesday, August 14, 2012 3:17 AM
     
     

    After creating several deployments I finally have the database and the application deployed in my development computer.. but when I move it to the server, it gives me this exception:


    0x80070032
    The configuration section 'uri' cannot be read because it is missing a section declaration

    I google it and It talks about the ASP.NET 4 App Pool, but the app is now with that Pool.. so I don't know what is missing. Any ideas??
    I think this IIS exception is more "human" than the other one :P

    This guy had the same problem http://social.msdn.microsoft.com/Forums/sv-SE/LightSwitchDev11Beta/thread/7fa54935-56a8-4cf8-990e-9e9f5e183de8 but I can't solve it with his solution. I alredy re run the aspnet_regiss.exe -i .. and nothing..
    Thanks


    SebaXOR


    • Edited by sebaxor Tuesday, August 14, 2012 3:32 AM
    •  
  • Tuesday, August 14, 2012 3:53 AM
    Moderator
     
     
    Is the app pool set to use .NET 4?

    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.

  • Tuesday, August 14, 2012 3:54 AM
     
     
    Yep.. that's why I said that solution did not work for me :(

    SebaXOR

  • Tuesday, August 14, 2012 4:00 AM
    Moderator
     
     Answered
    Sorry, I wish I could help more. If it works locally, but not hosted in IIS, then it has to be an IIS configuration problem.

    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.

    • Proposed As Answer by Babloo1436 Tuesday, August 14, 2012 4:09 AM
    • Marked As Answer by sebaxor Tuesday, August 14, 2012 4:13 AM
    •  
  • Tuesday, August 14, 2012 4:07 AM
     
     

    Where can I post this question? I was looking for a forum category that fits.. but.. noone seems to be the correct.


    SebaXOR

  • Tuesday, August 14, 2012 7:34 AM
     
      Has Code


    Well I just fixed the Web.config problem.. but now I have another XD...

    I added this line to my web.config

    <section name="uri" type="System.Configuration.UriSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/> 

    The application is running, but it gives me this exception:

    An error occurred while running the screen. Error details: [Arg_TargetInvocationException] Arguments: Debugging resource strings are unavailable. Often the key and arguments provide sufficient information to diagnose the problem. See http://go.microsoft.com/fwlink/?linkid=106663&Version=4.0.60831.0&File=mscorlib.dll&Key=Arg_TargetInvocationException

    Only in Google Chrome D: ....


    SebaXOR

  • Thursday, August 16, 2012 2:40 AM
    Moderator
     
     
    I would suggest that you're posting in the right place. Normally one of the team would have replied, but I think you'll find that they're all a bit busy with VS 2012 being launched/made available for download etc.

    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.

  • Thursday, August 16, 2012 2:50 AM
     
     

    I see :/ .. so .. let´s wait.. to see if one of the guys can helpe D: 

    Tnx 4 always be available Yann ^^


    SebaXOR

  • Thursday, August 16, 2012 4:14 AM
    Moderator
     
     

    You're welcome!

    (I don't know about "always available", lol, but I try to help 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.

  • Thursday, August 16, 2012 1:30 PM
     
     
    I't because in all my posts you always have tryed to help me 

    SebaXOR