Click to Rate and Give Feedback
Collapse All/Expand All Collapse All
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
Deployment in Visual Studio
How to: Publish a ClickOnce Application

To make a ClickOnce application available to users, you must publish it to a Web server, file share, or removable media. You can publish the application by using the Publish Wizard; additional properties related to publishing are available on the Publish page of the Project Designer. For more information, see Publishing ClickOnce Applications.

Before you run the Publish Wizard, you should set the publishing properties appropriately. For example, if you want to designate a key to sign your ClickOnce application, you can do so on the Signing page of the Project Designer. For more information, see Signing ClickOnce Manifests.

NoteNote:

When you install more than one version of an application by using ClickOnce, the installation moves earlier versions of the application into a folder named Archive, in the publish location that you specify. Archiving earlier versions in this manner keeps the installation directory clear of folders from the earlier version.

NoteNote:

The dialog boxes and menu commands you see might differ from those described in Help, depending on your active settings or edition. To change your settings, click Import and Export Settings on the Tools menu. For more information, see Visual Studio Settings.

To publish to the Web

  1. In Solution Explorer, select the application project.

  2. Right-click the project node and click Publish.

    The Publish Wizard appears.

  3. On the Where do you want to publish the application? page, enter a valid URL using the format http://www.microsoft.com/foldername, and then click Next.

  4. In the Will the application be available offline? page, click the appropriate option:

    • If you want to enable the application to be run when the user is disconnected from the network, click Yes, this application will be available online or offline. A shortcut on the Start menu will be created for the application.

    • If you want to run the application directly from the publish location, click No, this application is only available online. A shortcut on the Start menu will not be created.

    Click Next to continue.

  5. Click Finish to publish the application.

    Publishing status is displayed in the status notification area.

To publish to a file share

  1. In Solution Explorer, select the application project.

  2. On the Build menu, click Publish Projectname.

    The Publish Wizard appears.

  3. In the Where do you want to publish the application? page, enter a valid file path using the format \\computername\applicationname, and then click Next.

    NoteNote:

    If users will install the application from the Web, this file path must correspond to the URL that the users will access. For example, if the users will install from http:\\www.microsoft.com\myapplication\publish.htm, you would enter the path c:\inetpub\wwwroot\myapplication.

  4. In the How will users install the application? page, select the location where users will go to install the application:

    • If users will install from a Web site, click From a Web site and enter a URL that corresponds to the file path entered in the previous step. Click Next. (This option is typically used when you specify an FTP address as the publishing location. Direct download from FTP is not supported. Therefore, you have to enter a URL here.)

    • If users will install the application directly from the file share, click From a UNC path or file share, and then click Next. (This is for publishing locations of the form c:\deploy\myapp or \\server\myapp.)

    • If users will install from removable media, click From a CD-ROM or DVD-ROM, and then click Next.

    NoteNote:

    This page does not appear if you enter a URL (HTTP address) in the Where do you want to publish the application? page.

  5. On the Will the application be available offline? page, click the appropriate option:

    • If you want to enable the application to be run when the user is disconnected from the network, click Yes, this application will be available online or offline. A shortcut on the Start menu will be created for the application.

    • If you want to run the application directly from the publish location, click No, this application is only available online. A shortcut on the Start menu will not be created.

    Click Next to continue.

  6. Click Finish to publish the application.

    Publishing status is displayed in the status notification area.

To publish to a CD-ROM or DVD-ROM

  1. In Solution Explorer, right-click the application project and click Properties.

    The Project Designer appears.

  2. Click the Publish tab to open the Publish page in the Project Designer, and click the Publish Wizard button.

    The Publish Wizard appears.

  3. In the Where do you want to publish the application? page, enter the file path or FTP location where the application will be published, for example d:\deploy. Then click Next to continue.

  4. On the How will users install the application? page, click From a CD-ROM or DVD-ROM, and then click Next.

    NoteNote:

    If you want the installation to run automatically when the CD-ROM is inserted into the drive, open the Publish page in the Project Designer and click the Options button, and then, in the Publish Options wizard, select For CD installations, automatically start Setup when CD is inserted.

  5. If you distribute your application on CD-ROM, you might want to provide updates from a Web site. In the Where will the application check for updates? page, choose an update option:

    • If the application will check for updates, click The application will check for updates from the following location and enter the location where updates will be posted. This can be a file location, Web site, or FTP server.

    • If the application will not check for updates, click The application will not check for updates.

    Click Next to continue.

  6. Click Finish to publish the application.

    Publishing status is displayed in the status notification area.

    NoteNote:

    After publishing is complete, you will have to use a CD-Rewriter or DVD-Rewriter to copy the files from the location specified in step 3 to the CD-ROM or DVD-ROM media.

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Translation to Korean      SM Kang ... Thomas Lee   |   Edit   |   Show History

웹에 퍼블리시하려면

  1. <솔루션 탐색기>에서 게시하려는 응용 프로그램 프로젝트를 선택합니다.

  2. 프로젝트 노드를 마우스 오른쪽 단추로 클릭하고 <게시>를 클릭합니다.

    <게시 마법사>가 나타납니다.

  3. <응용 프로그램을 게시할 위치> 페이지에서, http://www.microsoft.com/foldername 형식으로 유효한 URL을 입력한 다음, <다음>을 클릭합니다.

  4. <응용 프로그램을 오프라인으로 사용할 수 있는지 여부> 페이지에서, 응용 프로그램 옵션을 클릭합니다:

    • 네트워크와의 연결이 끊어진 상태에서도 사용자가 응용 프로그램을 실행할 수 있도록 하려면, <예, 이 응용 프로그램을 온라인 또는 오프라인으로 사용할 수 있습니다>를 클릭합니다. 이 옵션을 선택하면, 시작 메뉴에 해당 용용 프로그램의 바로 가기가 만들어집니다.

    • 응용 프로그램을 게시 위치에서 직접 실행하려면, <아니오, 이 용용 프로그램은 온라인으로 사용할 수 있습니다.>를 클릭합니다. 이 옵션을 선택하면 시작 메뉴에 해당 용용 프로그램의 바로 가기가 만들어지지 않습니다.

    계속 진행하기 위해 <다음>을 클릭합니다.

  5. <마침>을 클릭하여 응용 프로그램을 게시합니다.

    상태 알림 영역에 게시 상태가 표시됩니다.

IIS 7.0이 호스트하는 웹 사이트를 방문했을 때 에러 메시지: "HTTP 오류 500.19 - Internal Server Error"

해결 방법은 다음 링크 참조를 참조하되

http://support.microsoft.com/kb/942055/

에러 페이지에 해결 방법이 있으면 그것을 따른다.

예를 들어,

C:\Windows\Microsoft.NET\Framework\v2.0.50727\config\web.config 파일 내의 다음 항목을 주석 처리한다.

<!--

<add name="Session" type="System.Web.SessionState.SessionStateModule"/>

-->

파일 공유 방식으로 게시하려면

  1. <솔루션 탐색기>에서 게시하려는 응용 프로그램 프로젝트를 선택합니다.

  2. <빌드> 메뉴에서 <프로젝트명 게시>를 클릭합니다.

    <게시 마법사>가 나타납니다.

  3. <응용 프로그램을 게시할 위치> 페이지에서, \\computername\applicationname 형식으로 유효한 파일 경로를 입력한 다음, <다음>을 클릭합니다.

    참고:

    사용자가 응용 프로그램을 웹에서도 설치할 수 있게 하려면, 이 파일 경로는 사용자가 액세스할 URL과 일치해야 합니다. 예를 들어 사용자가 http:\\www.microsoft.com\myapplication\publish.htm 페이지를 통해 설치한다면, c:\inetpub\wwwroot\myapplication과 같이 입력해야 할 것입니다.

  4. <응용 프로그램 설치 방법> 페이지에서, 사용자가 응용 프로그램을 설치하기 위해 가야할 위치를 선택합니다.:

    • 사용자가 웹 사이트를 통해 설치한다면, <웹 사이트에서>를 클릭하고, 이전 단계에서 입력한 파일 경로와 일치하는 URL을 입력합니다. <다음>을 클릭합니다. (이 옵션은 일반적으로 게시 위치로 FTP 주소를 지정하는 경우에 사용됩니다. FTP를 통한 직접 다운로드는 지원되지 않습니다. 따라서 여기에 URL을 입력해야 합니다.)

    • 사용자가 파일 공유 위치에서 곧장 응용 프로그램을 설치한다면, <UNC 경로 또는 파일 공유에서>를 클릭하고 나서 <다음>을 클릭합니다. (이 옵션은 c:\deploy\myapp 또는 \\server\myapp 형식의 게시 위치를 지정하기 위한 것입니다.)

    • 사용자가 이동식 미디어를 사용하여 설치할 경우, <CD-ROM 또는 DVD-ROM에서>를 클릭하고 나서 <다음>을 클릭합니다.

    참고:

    <응용 프로그램을 게시할 위치> 페이지에서 URL (HTTP 주소)를 입력했다면 이 페이지는 나타나지 않습니다.

  5. <응용 프로그램을 오프라인으로 사용할 수 있는지 여부> 페이지에서, 응용 프로그램 옵션을 클릭합니다:

    • 네트워크와의 연결이 끊어진 상태에서도 사용자가 응용 프로그램을 실행할 수 있도록 하려면, <예, 이 응용 프로그램을 온라인 또는 오프라인으로 사용할 수 있습니다>를 클릭합니다. 이 옵션을 선택하면, 시작 메뉴에 해당 용용 프로그램의 바로 가기가 만들어집니다.

    • 응용 프로그램을 게시 위치에서 직접 실행하려면, <아니오, 이 용용 프로그램은 온라인으로 사용할 수 있습니다.>를 클릭합니다. 이 옵션을 선택하면 시작 메뉴에 해당 용용 프로그램의 바로 가기가 만들어지지 않습니다.

    계속 진행하기 위해 <다음>을 클릭합니다.

  6. <마침>을 클릭하여 응용 프로그램을 게시합니다.

    상태 알림 영역에 게시 상태가 표시됩니다.

Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement | Site Feedback
Page view tracker