Thursday, October 7, 2010

One Click Deployment With Visual Studio 2008 and Windows Server

  • Following are the steps that I have followed to publish the one touch deployment on 2008 windows server.
    In VS 2008 right click on the project that we are trying to publish and select properties
    o Select the Application tab from the left navigation in the properties window
    o By default the Manifest option in the Resources group has been defaulted to “Embed manifest with default settings”. Change this option to “Create application without a manifest”
    o From the Signing tab click on “Create Test Certificate” button to sign the assembly with a strong name
    o From the Publish tab provide the Publishing Folder Location information (http:////),where the files need to be deployed.
    o From the “Install Mode and Settings” choose the appropriate online/offline availability option. Also, include the prerequisites if any for the application by clicking on the prerequisites button
    o Provide the publish version and check the automatically increment revision option if you would like to keep the previous version in the deployed location. Basically it maintains the folder by the publish version numbers
    o Click on “Publish” button to start the publish process.

BEFORE WE DO THE ABOVE STEPS:

1)We need to make sure the Windows 2008 server is installed with Front Page Server Extensions. Keep in mind, we need to install the FPSC and Extend the website with FPSC

2)We can't deploy a Click Once application using http to a machine running Windows Server unless the server has the Front Page Extensions installed.

3)Add the following MIME Types for Click Once deployment
o Here are the basic MIME types you need for every Click Once deployment:
 .application –> application/x-ms-application
 .manifest –> application/x-ms-manifest
 .deploy –> application/octet-stream
o If you are targeting .NET 3.5 or .NET 4.0, you need these as well:
 .msp –> application/octet-stream
 .msu –> application/octet-stream
 Click one of these links to see how to set MIME types in IIS 6 or
IIS 7.
 After successful FPSE installation on Windows Server. Follow the
below mentioned steps.
o Extending Web Sites with FPSE
o Using HTML Administration Pages to Extend a Web Site
a. Click Start, point to Programs, point to Administrative Tools, and then
click Microsoft SharePoint Administrator to open the Server
Administration page.
b. In the list of virtual servers, click Extend next to the virtual server
you want to extend.
c. In the Administrator box, type the user name for the administrator of
the virtual server.
d. Click Submit.

4)To overcome this issue “Web Server Does Not Appear to Have Any Authentication
Methods Enabled”
o Right-Click the server name from IIS and click Properties.
o Click the Directory Security tab on the server's properties dialog box.
o Under the Anonymous Access and Authentication Control section, click Edit.
o Choose either Basic Authentication (password sent in Clear Text) or Windows
NT Challenge/Response and click OK twice.
o Stop and restart the Web server.