My LightSwitch Desktop Application Won't Run on Windows XP SP3

Locked My LightSwitch Desktop Application Won't Run on Windows XP SP3

  • domenica 24 luglio 2011 09:48
     
     

    I made a tiny sample LightSwitch desktop application and published it. I copied the Publish folder to my XP SP3 machine and run the Setup.exe and the application installed successfully and then I get the error:

    MessageBox Title: LightSwitch Server

    Could not start the client process. Erro Code:.... (The error code seems to change randomly every time I try to run the application)

    I checked all the similar posts in the forum but none of the solutions like installing the distributed Silverlight_Developer.exe and Silverlight_SDK.exe didn't work.

    My application uses Sharepoint DataSource and it doesn't need any local SQLExpress instance, but SQLExpress is installed on my client machine any way.

    Any Help? This does not work on any of my XP machines. Do we have any particular issue with XP machines?

Tutte le risposte

  • domenica 24 luglio 2011 12:34
     
     

    Without seeing the actual app code, I still believe that you will need an SQL server to service portions of your LightSwitch app. Are you saying that your app will run on say a Windows 7 client? Within the development environment all the hosting IIS and SQL is run locally. At deployment even as a ".exe" you'll need an SQL server instance and an IIS.

    Thanks, Keith


  • domenica 24 luglio 2011 12:40
     
     
    I suspect that your problem has something to do with using a SharePoint data source. Are you sure that the account running your LS app has the appropriate permission on SharePoint?

    Yann

    (plus ça change, plus c'est la même chose!)

  • domenica 24 luglio 2011 14:59
     
     

    Keith,

    I have SQLExpress installed on the XP SP3 machine and changed the web.config to locate the SQLExpress server but there's not database to point, right? About the IIS on XP SP3 what are my options? What can I install there?

    And about the question about other clients, yes I successfully installed and run the app on different Windows 7 clients.

     

    Thanks, Asad

  • domenica 24 luglio 2011 15:19
     
     

    Yann,

    I just created a simple application without Sharepoint data source (an internal database with on table) and published that. Still getting the same error. Seems the situation is related to LightSwitch Server which I don't know where it's located. Is there any log for that?

  • domenica 24 luglio 2011 23:32
     
     

    Asad,

    I'll do a Two-Tier deploy of V1 onto an XP machine as an early part of my evals next week. You're in good hands with Yann. He has helped me and others and usually cracks the problem.

    Be in touch next week, Keith


  • lunedì 25 luglio 2011 00:21
    Moderatore
     
     

    Asad,

    Did you run Sqlcmd.exe on the client machine? You can find the instructions in the Install.htm file in the Publish folder for your app.

    Hope this helps,


    Steve Hoag Microsoft aka the V-Bee
  • lunedì 25 luglio 2011 00:26
     
     

    @Keith - thanks for the kind comments, but I'm not entirely sure that I can live up to them, lol

    @Asad - I was just able to deploy my app to an XP SP3 machine (it's a virtual machine, but that should make no difference)

    When you work through the steps of the publish wizard, what instance/database do you supply it with? Although your SQL Express instance is on your development machine, & is used when you're debugging, when you publish an app you're normally publishing to a SQL instance that's on the network somewhere (can still be SQL Express though).

    So you're publishing to the same machine that you're developing on? Is this an app that only you are going to use? That shouldn't be a problem if you give the publishing wizard the correct information.

    If you're publishing the app for multiple people to use, you'll need a SQL Server instance on the network somewhere that everyone can access from their machine, & you give *that* information to the publishing wizard as you publish.

    There should be no need to edit the web.config file. If you give the wizard the correct information, it should do it all for you.


    Yann

    (plus ça change, plus c'est la même chose!)

  • lunedì 25 luglio 2011 16:13
     
     

    I just started having similar problems and am receiving the same error message as Asad.1.

    MessageBox Title: "LightSwitch Server"

    Error Message: "Could not start the client process."

    I am connecting to a SQL Express database.  The LightSwitch project builds successfully and when I try to run via the IDE (VS 2010), nothing happens!  When I explicitly run the project's vslshost.exe file, I get the same error as above.  Also, when I publish the application and then run the setup.exe I get the error.

    This started happening last Thursday (7/21/2011) - prior to that time everything worked fine.  Also, this only occurs on my machine.  Other developers on my team can get the project from TFS and run without error.  Also, it occurs for all LS applications on my machine!  I've uninstalled/reinstalled LightSwitch.  I've run the "repair" via the LS .iso file. I don't know what else to do.  Can someone please help?

    Chad

  • lunedì 25 luglio 2011 16:13
     
     

    I just started having similar problems and am receiving the same error message as Asad.1.

    MessageBox Title: "LightSwitch Server"

    Error Message: "Could not start the client process."

    I am connecting to a SQL Express database.  The LightSwitch project builds successfully and when I try to run via the IDE (VS 2010), nothing happens!  When I explicitly run the project's vslshost.exe file, I get the same error as above.  Also, when I publish the application and then run the setup.exe I get the error.

    This started happening last Thursday (7/21/2011) - prior to that time everything worked fine.  Also, this only occurs on my machine.  Other developers on my team can get the project from TFS and run without error.  Also, it occurs for all LS applications on my machine!  I've uninstalled/reinstalled LightSwitch.  I've run the "repair" via the LS .iso file. I don't know what else to do.  Can someone please help?

    Chad

  • lunedì 25 luglio 2011 19:31
     
     
    You didn't happen to have accepted a Silverlight update on that day, did you?

    Yann

    (plus ça change, plus c'est la même chose!)

  • lunedì 25 luglio 2011 20:43
     
     

    Yann,

    Not that I'm aware of.  My company actually regulates Windows Updates so I don't have control over them.  When I look in Add/Remove Programs I don't see any Silverlight updates.  The version of Silverlight I have installed is 4.0.60531.0.  I would like to Uninstall / Reinstall Silverlight just to see if that corrects the issue but when I click on Microsoft Silverlight in Add/Remove Programs there is no "Remove" button (and yes, I'm signed in as Administrator).  Any idea why this is?  How can I uninstall Silverlight 4?

    Thanks,

    Chad

  • lunedì 25 luglio 2011 21:41
     
     

    Chad,

    Sounds like a Group / Local Policy - Perhaps a chat with your friendly Network/Domain Administrator?

    Butting in, in case Yann is zzzzzz.

    Keith


    PS Version looks right but a reinstall may help?

    Yann - Just a thought. Have we a "Policies" issue here?


    Chad/ Asad - Can you throw any light after checking your Local / Group Policies from Control Panel - Administrative Tools - Software Restrictions etc.....

     

    Thanks, Keith

  • martedì 26 luglio 2011 04:36
     
     

    I think that could well be your problem, the "correct" version is 4.0.60310.0

    If you wait a few hours & install the RTM, I believe the earlier version will no longer be required, from what I remember.


    Yann

    (plus ça change, plus c'est la même chose!)