Directory of Open Source for Quantitative Finance and Trading
Username: Password: Not registered?
 
Quick Search:    (AJAX based: No need to press button)

SmartFAQ is developed by The SmartFactory (http://www.smartfactory.ca), a division of InBox Solutions (http://www.inboxsolutions.net)

How do I deploy a C# WPF application with unmanaged dlls in an Apache Linux server?
Requested and Answered by Vanna on 03-Feb-2011 01:29 (4519 reads)
1.Click on menu Project->properties.

2.Place the unmanged dlls in root folder of project

3.Select Resources tab.Select Add resources. Choose existing files, change selection to all files. Then select the unmanaged dlls.

4.After the unmanaged dlls have been added to the resources, they will appear in the solution explorer.

5.Right click on each unmanaged dll, and select properties. In the "Build Action" property, select content

6.Create a folder in your local PC which is supposed to hold all binaries and setup files related to the application. eg., C:\downloads\wpftest (you don't need to put anything in the folder, the files will get copied here automatically when you publish later)

7.Create a folder in your web server which is supposed to hold all binaries and setup files related to the application. eg., http://mysitename.com/wpftest/

8.Choose publish tab in project properties.

9.Type this in the "publishing folder location" field:
C:\downloads\wpftest\

10.Type this in the installation folder field:
http://www.mysitename.com/wpftest/

11.Do a rebuild All.

12. Click on "Publish Now" button. It will then generate files in C:\downloads\wpftest

13.Copy everything from within folder C:\downloads\wpftest, and place it in http://mysitename.com/wpftest/ on your web server.

14.Create a local file named .htaccess, and add the following entries:
AddType application/x-ms-application .application
AddType application/manifest .manifest
AddType application/octet-stream .deploy


15.Copy the .htaccess, and place it on http://mysitename.com/wpftest/ on your web server

16.Open firefox browser.

17. Launch this URL :
http://mysitename.com/wpftest/publish.htm

18.In the installation page, click on "Install" button. After successful install, it will create a shortcut menu in Start menu

19. Subsequent launch can be done from Start menu. Everytime it starts, it will check the version and automatically update

PS: The application runs in a temporary folder eg., C:\Documents and Settings\quantcode\Local Settings\Apps\2.0\X122HNYM.2NM\49TGB29P.JOK\trad..tion_f8584d001a411df4_0001.0000_18a6d206020c6126\tradtest1.exe


Discuss or give feedback? Just enter your message and click on submit. No registration is required.

Note: A copy of this message will also be emailed to the submitter of this link

The comments are owned by the poster. We aren't responsible for their content.

Discuss or give feedback? Just enter your message and click on submit. No registration is required.

Note: A copy of this message will also be emailed to the submitter of this link
Similar Links:
Copyright © 2011 QuantCode Inc. All rights reserved.