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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T12:36:58+00:00 2026-05-22T12:36:58+00:00

I have written a program in C# using Visual Studio 2010. At current it

  • 0

I have written a program in C# using Visual Studio 2010. At current it is a Console Application and what I ideally want is to have this program running on a server. It logs messages in a SQL database that I can view via a website no problem, but what I want is to be able to control the C# program and call methods remotely via the website in the browser too. I have defined these methods that contain calls to other methods in the program such as ‘ArticleOrganizer.reprocessArticle(a, 0)’:

[ServiceContract]
public interface IRemotePrimeService
{
    [OperationContract]
    void ProgramRestart();

    [OperationContract]
    void ProcessArticleAgain(Article a);

}


public class RemotePrimeService : IRemotePrimeService {

    public void ProgramRestart() {

        Console.WriteLine("Restart requested remotely. Program restarting.");
        Application.Restart();
    }

    public void ProcessArticleAgain(Article a) {
        // Log the activity
        a.MessageLog = "Reprocessing requested remotely. Article sent to Stage 0 of pipeline.";
        // start the article through the processing again
        ArticleOrganizer.reprocessArticle(a, 0);
    }


}

These are what I want to be able to call remotely. It seems Services in WCF is how one would do this, but can I put this C# Console Application on the server as it is somehow without having to rewrite it as a Web Application? I have read A LOT of the documentation, particularly on MSDN but would appreciate a simple step-by-step of my best course of action. I have installed and set up IIS on my computer to test as a localhost.

Many thanks in advance for your advice

  • 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-22T12:36:59+00:00Added an answer on May 22, 2026 at 12:36 pm

    Keep it simple, and use a simple async event-driven system.

    For example: Introduce a queue where messages to the application can be stored. The application (whether it’s console or service) can read the queue when it has time and execute the requests. The queue can be f.e. MSMQ or a SQL table. Works great as long as you won’t need instant feedback, which is the case most of time in these kind of systems.

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

Sidebar

Related Questions

I'm using Visual Studio 2005. I have a program written in C#. When I
I have a console program written in C# that I am using to send
I have a data acquisition program written in C++ (Visual Studio 6.0). Some clients
I'm currently using the Visual Studio Installer (Setup Project) in Visual Studio 2010 as
I have written a small program using Borland's C++ builder, and along the way,
Assume that i have written a program in C++ without using RTTI and run-time
I am working on Email client application. I have written one sample program for
I have written a C++ application, which I built using g++. For the purposes
I'm using Visual Studio 2010 and trying to use the BigInteger type in a
I have written a program in C# using EmguCV (wrapper of openCV). The program

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.