Running an application from an USB device...
Posted
by Workshop Alex
on Stack Overflow
See other posts from Stack Overflow
or by Workshop Alex
Published on 2009-12-08T17:22:03Z
Indexed on
2010/05/01
19:07 UTC
Read the original article
Hit count: 182
I'm working on a proof-of-concept application, containing a WCF service with console host and client, both on a single USB device. On the same device I will also have the client application which will connect to this service. The service uses the entity framework to connect to the database, which in this POC will just return a list of names. If it works, it will be used for a larger project.
Creating the client and service was easy and this works well from USB. But getting the service to connect to the database isn't. I've found this site, suggesting that I should modify machine.config but that stops the XCopy deployment. This project cannot change any setting of the PC, so this suggestion is bad. I cannot create a deployment setup either. The whole thing just needs to run from USB disk.
So, how do I get it to run?
(The service just selects a list of names from the database, which it returns to the client. If this POC works, it will do far more complex things!)
© Stack Overflow or respective owner