WcfHost Locally?

WcfHost Locally?

Old forum URL: forums.lhotka.net/forums/t/3857.aspx


CSLAer posted on Wednesday, November 07, 2007

Hi,

If I want to run application in one PC, do I have to install IIS and setup WcfHost?

Thanks

RockfordLhotka replied on Wednesday, November 07, 2007

Why wouldn't you just run the data portal in local mode and avoid the whole "server" concept and overhead?

But if you really want to use the WCF technology, you can use one of the light-weight WCF bindings like named pipes. Even so, you do need to host the "server" in some process on your client. In Vista you can use WAS, but if you need to support XP or whatever, then you'll need to either use IIS or write your own Windows service.

However, one thought that occurs to me is that you could, maybe, get tricky, and make your existing app into a WCF host. In other words, your WCF call could loop through WCF and back to your own process. That should probably be possible. You'd have to write some code in your app to "host WCF" - basically write a custom WCF data portal host that could run in your own client. Yeah, that should be doable.

But it makes no sense. Why would you incur all that overhead when you could just switch the data portal to run in local mode and get the same result, but with far better performance?

CSLAer replied on Saturday, November 10, 2007

Sorry if this question is too simple. How can I switch the data portal to run in local mode?

I just want to run the application locally and don't want to setup IIS and WCFhost (Not every PC has IIS installed).

Thanks

ajj3085 replied on Monday, November 12, 2007

Just remove any DataPortal settings from your App.config file.

CSLAer replied on Tuesday, November 13, 2007

Thanks

Copyright (c) Marimer LLC