Publishing a Web Application in Light Switch Visual Studio 2012

Publishing a Web Application in Light Switch Visual Studio 2012

In this article I describe how to perform hosting in IIS Server by developing a Web Application using LightSwitch in Visual Studio 2012.

Procedure for publishing a Desktop Application

Step 1

  • Open the Visual Studio 2012.
  • Go to "File" => "New" => "Project..."
  • In "New Project" => "Installed" => "Template"
  • In "Template" => "LightSwitch"
  • Select "LightSwitch Application (Visual C#)".
  • Enter the Name and choose the location.
  • Click "OK".

nw pro.jpg

Step 2

Go to the Solution Explorer, right-click on the Data Source and select "Add Table".

add table.jpg

Step 3

Insert the Data in the following Table and rename it.

table.jpg

Step 4

Go to the Solution Explorer and right-click on the Screens and select "Add Screen".

add screen.jpg

Step 5

The Screen Designer appears. Select the Screen Template and provide the screen information and click the "OK" button.

ad screen.jpg

Step 6

Go to the Build Tab and choose the Configuration Manager.

build.jpg

Step 7

The Configuration Manager Designer window appears.

confi manager.jpg

Step 8

Select "Release" from the Active solution dropdown and after that click on the "Close" button.

release.jpg

Step 9

Now, again go to the Build Tab and select the Publish (Application Name) option. Note that here our application name is Application6.

publish.jpg

Step 10

Note that the LightSwitch Application Wizard appears and in the Application Type section we will select the "Web" option and click on the "Next" button.

web.jpg

Step 11

In the Application Server Configuration section, under the "Where will the application be hosted?" we will select "IIS Server" and click on the "Next" button.

iis server.jpg

Step 12

In the Publish Output section, under "How do you want to create the website?" we will select "Remotely publish to a server now" and click on the "Next" button.

remotely publish.jpg

Step 13

In the Security Settings, under the Require Secure Connection (HTTPS) select the next option and click on the "Next" button.

on.jpg

Step 14

In the Database Connections,we need to specify user as well as administrator database connections and and after specifying those click on the "Next" button.

connection.jpg

Step 15

In the Specify a certificate section, we are not specifying any certificates; click on the "Next" button.

specify.jpg

Step 16

In the summary section, we will see the basic summary of our application; click on the "Publish" button.

summery new.jpg

Step 17

Now we publish the application.

successful.jpg

Up Next
    Ebook Download
    View all
    Learn
    View all