1. VIRTUAL DIRECTORY CREATION IN IIS
Create a Virtual Directory in local machine with local path. Please use the following steps to do this.
I. Open Internet Information Services (IIS) Manager. (Start -> Run -> inetmgr.exe).
II. Navigate to (Machine name -> Sites -> Default Web Sites).
III. Right click on “Default Web Sites” and select “Add Application option”.
IV. It will open “Add Application” dialog box. From this dialog box, please enter the “Alias” and “Physical Path”. Then Click OK button.
V. It will create a “Virtual directory” with the name of “Sample” to the physical path of “E:\Work\SourceCode\Version\Project\Control”.
2. WORKING SAMPLE APPLICATION WITH VS IDE
We should always work with Admin mode for deploying the XBAP application since we don’t have rights to access IIS in non-admin mode. Open VS IDE in Admin mode.
3. DEPLOYING SAMPLE APPLICATION
I. Open the solution file.
II. Do necessary changes in the application and build it.
III. Once the build get succeeded then open the properties of “Sample” application.
IV. From the properties window, go to Signing tab and make sure that “Sign the ClickOnce manifests” check box is checked. If not, select the certificate key from the Certificate storage.
V. Then navigate to “Security” tab and make sure that “This is a full trust application” radio button is in checked condition. Normally XBAP applications are run within a security sandbox to prevent untrusted applications from controlling local system resources. (E.g. deleting local files). In order to access local file system, port access, bitmap effects, etc., you need to run your application in “Full trust” mode.
VI. After that, select “Publish” tab and enter the publish location (Both local path and internet path where we would like to Run the application) and publish version information.
VII. Before that, make sure that the files needed to include with the application along with the published folder. This can be achieved with help of “Application Files” dialog by clicking the “Application Files” button.
VIII. We need to mention the “Prerequisites” to run our application. This will be provided by using “Prerequisites” dialog.
X. Once you complete all above steps, please use publish wizard and publish the sample application.
4. DEPLOYING AN APPLICATION TO THE REMOTE SERVER
I. Since we already given the internet URL while publishing the project application, we need to create a sample virtual directory in “Remote server’s IIS”. It will make URL available over the internet.
II. Then place the sample application’s (XBAP application) files and folder from local machine to the remote server.