Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6621151
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T21:12:10+00:00 2026-05-25T21:12:10+00:00

Background I have a windows console app written in C# which needs UI. I

  • 0

Background

I have a windows console app written in C# which needs UI. I started using WPF, but as I come from a web background, I want to use html, and some features of html5, including web sockets for real time communication with another application.
Initially, I’ll use a web browser as the UI, though I may later host a web browser in the main app. This bit doesn’t concern me at the moment.

After a lot of googling/reading, I’m going round in circles. It looks like WCF can be used to serve html, json based web services, and possibly web socket streams.
A lot of googled info relates to pre .NET 4.0 community projects. Even post 4.0 there are several NuGet packages which seem to me to overlap what is already in the framework. To a WCF noob, it’s all a minefield.

So, what areas of .NET 4.0 WCF and the various open source projects should I be concentrating my efforts on.

Requirements

I require a lightweight self hosted web server. It cannot be IIS based, as users will not have it installed. The server (or servers) must:

  1. Be able to server complete web pages, including html, linked images, css and js files. C# MiniHttpd does the job well, but is not based on http.sys. HttpListener seems to be the core of what I want, but I haven’t found a complete web server project based on it.
    • [optionally] Be able to parse those pages through asp.net or razor
  2. Be able to respond to web service call via json. This bit I have a working example using System.ServiceModel. Is this the right way to go?
  3. Be able to work with the emerging Web Sockets standard. SuperWebSocket is actively developed, but doesn’t appear to be http.sys or wcf based.

Preferences

  • I would prefer to stick to one basic stack for all 3 of my main requirements – and I suspect WCF may be that platform.
  • I would prefer an http.sys based approach for all three requirements, so I can reserve the relevant url/port/namespace combinations and prevent conflicts with other web servers or services

Although other SO questions may help with individual aspects of my requirements, I need advice on a more holistic approach.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T21:12:11+00:00Added an answer on May 25, 2026 at 9:12 pm

    Ok, answering my own question feels wrong, but…

    I have since found a great CodeProject article that provides an easy to use self hosted web server for serving the html, css, js and images, and serves the json requests.

    Developing Web 2.0 User Interface for Self Hosted WCF Services using HTML5, CSS3 and JQuery

    I still have to settle on a WebSockets solution, but the above project is as close to what I need as is possible at the moment. It doesn’t support rendering asp.net or razor, but these were my lowest priorities, as I’m happy to use only pure html and javascript for the front end.

    I’ll try to post more specific questions in the future 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a windows form application in which i am using a background worker
Some background: I have a windows service with 5 web references, Everything works great
I have written an application in C, which runs as a Windows service. Most
Some background: we have a windows application (c#) that locate in the system try.
Background: I'm using SQL Server Management Studio 2008 and I have a query window
I have a button with a transparent background on a wpf window. Problem is,
Background: I have a little video playing app with a UI inspired by the
Background: we have an application that generates reports from HTML (that may or may
I have an application all done in WPF, using MvvM/Prism/Unity and Remote as datasource.
Ok, so I found something weird over the weekend. I have a WPF app

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.