What you want to see on DotNetFunda.com ?
Go to DotNetFunda.com
Twitter TwitterLinkedIn
YouTubeGoogle
 Online : 8562 |  Welcome, Guest!   Register  Login
Home > Articles > LightSwitch > Part 10/11: Publish LightSwitch Application as Desktop application and host in local system

Part 10/11: Publish LightSwitch Application as Desktop application and host in local system

Article posted by Niladri.biswas on 9/11/2011 | Views: 5628 | Category: LightSwitch | Level: Beginner | Points: 250 red flag


This is the tenth part of the 11 series LightSwitch tutorial. In this part we will learn about how to Publish LightSwitch Application as Desktop Application

Table of Content

  1. Introduction
  2. Aim of the article
  3. Steps to Publish LightSwitch Application as Desktop Application
  4. Conclusion

Introduction

Rapid business application development is a need of today’s business and keeping that in focus software stewards wants to build the 3 tire applications at a lightning speed where there will be less code, less time will be spent on designing the UI screens , the BAL layer and DAL layer. By keeping all these into focus, on 26th July, 2011, Microsoft has released their new product – LightSwitch.

It is the simplest way for developers of all skill levels to develop business applications for the desktop as well as for cloud. This is the tenth part of the series of 12 LightSwitch tutorials where we will look into how to Publish LightSwitch Application as Desktop Application.

You can read the other parts of the LightSwitch tutorial as under

  1. Part 1: Introduction to Light Switch
  2. Part 2: Rapport with New Data Screen
  3. Part 3: Rapport with Search Data Screen
  4. Part 4: Rapport with Editable Grid Screen
  5. Part 5: Rapport with List and Details Screen
  6. Part 6: Rapport with Details Screen
  7. Part 7: Rapport with External Data Source – Database
  8. Part 8: Rapport with External Data Source – WCF RIA Service
  9. Part 9:Using a custom control in LightSwitch
  10. Part 10: Publish LightSwitch Application as Desktop application and host in local system
  11. Part 11: Publish LightSwitch Application as Web application

Assumption

The article assumes that, we have LightSwitch 2011 installed in our system

Steps to Publish LightSwitch Application as Desktop Application

Now that we have seen how to build the various screens, using user control in our LightSwitch application, now we can go ahead for the deployment operations.We can host on the LightSwitch applications on the desktop, on a remote IIS Server or in Azure.In this article we will look into how to perform the hosting in a desktop.

Step1:From Visual Studio, first choose Configuration Manager from Build tab

Step 2: The Configuration Manager window appears.From the "Active solution configuration" dropdown, choose "Release". And then click on "Close" button.

Step 3: Next, again go to the Build tab and choose Publish <Project Name>. Note that our LightSwitch Project name is Application1.So we are choosing Publish Application1

Step 4: The LightSwitch Publish Application Wizard will appear with 8 steps.

  1. Client Configuration
  2. Application Server Configuration
  3. Publish Output
  4. Database Connections
  5. Prerequisite
  6. Other Connections
  7. Specify a certificate
  8. Summary

In the Client Configuration, we have to option to choose as how the LightSwitch Application will be deployed viz. Desktop or Web.We will choose the Desktop option and click on "Next" button.

Step 5: Now we are in the Application Server Configuration section. In this section, we will be asked as where the application will be hosted viz. Local, IIS or Windows Azure. We will choose Local and click "Next" button to proceed further.

Step 6: Now we are in the Publish Output section. In this section, we need to specify the path where our deployment files will be placed. Also we need to select as how to publish the database scripts/objects etc. We will go with the default one i.e. "Publish directly to the database now".Click "Next" button to proceed further.

Step 7: Now we are in the Database Connections section. In this section,we need to speficy the administrator and user database connections and click on "Next" button.

Step 8: Now we are in the Prerequisite section. In this section, we need to specify if the application needs any addition resource at the time of installation. We will choose the default option "No, only install the prerequisites" and click "Next" button for the next screen.

Step 9: Now we are in the Other Connections section. In this section, we need to speficy if our data comes from any other sources or not. Then click "Next" button.

Step 10: We are now in the "Specify a certificate" screen. If we need to add any certificate for adding a Xap file, we need to do so here. In our case, we can leave it as default and click on the "Next" button to proceed further

Step 11: Now we are in the "Summary" screen which gives a basic summary of our application.Next click on the "Publish" button

If every thing goes smooth, we will get "Publish succeed" message

We can find the application deployed in the specified folder

Click on the "setup.exe" and run in the Administrator mode

The application install screen will will appear and click on the "Install" button

The application will be installed in our local system.

Conclusion

So in this part we have learn about how to Publish LightSwitch Application as Desktop Application and host the same in local system.In the next article we will look into how to host LightSwitch Application in IIS.

Thanks for reading the article.Happy lightning with LightSwitch.

If you like this article, subscribe to our RSS Feed. You can also subscribe via email to our Interview Questions, Codes and Forums section.

Page copy protected against web site content infringement by Copyscape
Found interesting? Add this to:



Please Sign In to vote for this post.

Experience:6 year(s)
Home page:http://www.dotnetfunda.com
Member since:Monday, October 25, 2010
Level:Diamond
Status: [Member]
Biography:Lead Engineer at HCL Technologies Ltd., having 6 years of experience in IT field.
I love to explore new technologies and love challenges and try to help others as much as possible not only by coding but also by all possible means.
>> Write Response - Respond to this post and get points
Related Posts

This is the fourth part of the 11 series LightSwitch tutorial. In this part we will learn about what how to work with the Editable Grid Screen for adding, updating and deleting the records .

This is the eleventh part of the 11 series LightSwitch tutorial. In this part we will learn about how to Publish LightSwitch Application as Web Application and host in IIS.

This is the ninth part of the 11 series LightSwitch tutorial. In this part we will learn about how to use custom control in LightSwitch Application

This is the sixth part of the 11 series LightSwitch tutorial. In this part we will learn about how to work with the Details screen for viewing the Master-Child records

This is the first part of the 11 series LightSwitch tutorial . In this part we will learn about what LightSwitch technology is, what are its core components, it’s benefits.

More ...
About Us | Contact Us | The Team | Advertise | Software Development | Write for us | Testimonials | Privacy Policy | Terms of Use | Link Exchange | Members | Go Top
General Notice: If you find plagiarised (copied) contents on this page, please let us know the original source along with your correct email id (to communicate) for further action.
Copyright © DotNetFunda.Com. All Rights Reserved. Copying or mimicking the site design and layout is prohibited. Logos, company names used here if any are only for reference purposes and they may be respective owner's right or trademarks. | 5/22/2013 5:31:00 PM