Up Configuration and deployment code samples
DevForce 2010 Resource Center » Code samples » Configuration and deployment code samples » Walk through: Use Package/Publish with a DevForce Silverlight application

Walk through: Use Package/Publish with a DevForce Silverlight application

Last modified on August 15, 2012 17:22

Once you’re ready to deploy your Silverlight application to a web server, you can use the Package/Publish feature in Visual Studio to easily accomplish this. Microsoft has a thorough overview, which we encourage you to read. Here we’ll briefly discuss the steps and any DevForce-specific requirements.

Although this walk through is for a Silverlight application, most steps also apply to any IIS deployment of the EntityServier.


Step 1 - Settings

Access the Package/Publish Web settings tab from the project properties for the web application.

output_html_m108c18ec.png

Here we’re choosing to deploy “Only files needed to run this application”. This will include .dlls, .config, .svc, .asax, .aspx and other non-code files.

Step 2 – One-Click Publish Wizard

Once settings have been created you’re ready to publish.

output_html_m583cbbe4.png

output_html_55e6f778.png

Here we’re using a simple “one-click” Web deployment to the same computer on which Visual Studio is installed. We’ve also set the application name to "FirstApp" and asked IIS to mark the virtual directory created as an IIS application.

After hitting the Publish button we can check what’s been published.

An application folder has been created with the required files:

output_html_m54d6cecc.png

Assemblies are in bin:

output_html_2e899e40.png

The XAP is in ClientBin:

output_html_33d2d4bb.png

Step 3 – DevForce Changes

Log file

Note that a log subfolder was not automatically created by the wizard. Unless you’ve changed the logFile location in your web.config file DevForce will by default try to write its debugLog to the log folder. We can easily create a log folder manually and grant the appropriate permissions.

output_html_m44a03668.png

Write permissions are required since the log file will be created and appended to. Here the application runs under the identity of the application pool, DefaultAppPool, so we grant this account write permissions to the log folder.

output_html_504b7109.png

output_html_fd950da.png

See the security topic for information on securing the log file and folder.

Cleanup

You may have noticed the .xml files in the bin folder. These are Intellisense files for the DevForce assemblies and are not needed at run time. You can delete them.

You can also extend the web publishing pipeline to remove these files from the package. See the resources below for more information.

Next Steps

Creating a Deployment Package

You can also use Visual Studio to create a deployment package.

output_html_m567f8dca.png

Visual Studio will create a package, along with a sample script and other files:

output_html_m3a9cb1b5.png

The package can then be deployed via the command line with Web Deploy (MSDeploy) or imported directly into IIS Manager.

Resources

Created by DevForce on July 14, 2010 18:30

This wiki is licensed under a Creative Commons 2.0 license. XWiki Enterprise 3.2 - Documentation. Copyright © 2015 IdeaBlade