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 4267388
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T06:53:33+00:00 2026-05-21T06:53:33+00:00

After a WCF service has been created, is there any way to deploy it

  • 0

After a WCF service has been created, is there any way to deploy it without IIS? The service I’ve created will only be used within the LAN, and I’d rather not have the host run an ASP.NET server just to host the WCF service.

The other reason I need to be able to do this is because one of the DLLs I’ll be using doesn’t really work well with ASP.NET.

  • 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-21T06:53:34+00:00Added an answer on May 21, 2026 at 6:53 am

    You can host a WCF service in any EXE, not just a Windows Service. You have to write some code to host, but it’s trivial:

    using System;
    using System.ServiceModel;
    using System.ServiceProcess;
    
    namespace MyService.Hosts
    {
        public partial class MyWindowsService : ServiceBase
        {
            ServiceHost host;
    
            public MyWindowsService()
            {
                InitializeComponent();
            }
    
            protected override void OnStart(string[] args)
            {
                Type serviceType = typeof(MyWcfService);
                host = new ServiceHost(serviceType);
                host.Open();
            }
    
            protected override void OnStop()
            {
                if(host != null)
                   host.Close();
            }
        }
    }
    

    BTW, if you deploy using IIS, you get all the extras that IIS offers for free, including easy Web deployment, integrated security, and the ASP.NET event model.

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

Sidebar

Related Questions

Hi, I have a WCF service hosted in IIS that has the following binding
I am trying to debug a WCF service. This client has been able to
I have developed a WCF service that has been working fine for a few
I'd like my WCF service to return an xml file that has been signed.
I'm building a WCF service,after a client connects to this service,when the service disconnect,
After I deployed WCF web service to Windows server 2008 R2, I was able
I have a WCF service with many methods. I would like that after executing
I want to ensure that a WCF-ServiceClient State will be closed after using the
My WCF Service has an OperationContract that accepts, as a parameter, an array of
I've been developing a WCF web service using .NET 3.5 with IIS7 and it

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.