views:

25

answers:

1

Hi -

I'm working on a unique windows desktop application that requires both a standalone and distributed deployment mode. In standalone mode the entire program will run on a single desktop machine. In distributed mode there will be several thin clients running on desktop machines that will communicate with an app server (IIS) and database over a LAN.

I will write the program using a logical n-tier architecture to separate the GUI, business logic, and data access layer.

Ideally I want the code for the stand alone mode to be the same as the distributed mode but just deployed differently. Does it make sense then to use WCF (or some form of web services) in the stand alone mode so that it can then be deployed in distributed mode without needing major code changes? Is there a better way to do this?

Thanks!

A: 

Visual Studio LightSwitch1 does a trick pretty similar to what you describe: develop once, deploy in single or three tiers. If you're app is mostly about data maintenance it may very well be your ticket.

Edgar Sánchez
Thanks for the response Edgar! I guess what I'm really wondering is if there is any way to use IIS (or any app server) in conjunction with a windows desktop application. I think it would be cool to be able to do but I'm not sure if it is possible with the Microsoft technologies. (For this project I can't use the standard the web app tools because we need the client side to integrate with USB device drivers which I don't think you can do from a browser window.)
MikeG
Silverlight out-of-browser apps (as the ones generated by LightSwitch) can run in trusted mode, and then they have access to the Windows file system. Furthermore, they have access to local video cameras and printers, about USB drivers... I don't know.
Edgar Sánchez