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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T22:43:15+00:00 2026-06-04T22:43:15+00:00

I created WCF service and faced with a problem. I need to update database

  • 0

I created WCF service and faced with a problem. I need to update database periodically, but i couldn’t find static method like Main, that whould do it without client interaction. What can i do??? What wold you suggest in such case?

  • 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-06-04T22:43:18+00:00Added an answer on June 4, 2026 at 10:43 pm

    There is no Main method (or similar entry point) in WCF. You need to host your WCF service in another process (such as a Windows service, or IIS or self host) to “activate” it and make it available to other processes.

    One of the concepts in WCF is that you write your service code to do the function you need without having to worry about infrastructure and hosting. Once you have written your service logic, you can then decorate and configure your service to expose it to other processes. Using this approach means you can change how your service is exposed to other processes without re-writing the actual service logic – you essentially just change your configuration. Hence, a main entry point is specific to how you choose to host and expose your WCF service to the outside world.

    Just Google around for “WCF hosting” and you will find lots of information.

    If you don’t need to expose your service logic to an external process (which sounds like maybe the case from your question) then maybe you don’t need to use WCF and you can just write a plain old Windows Service.

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

Sidebar

Related Questions

i´ve recently created a WCF-Service and would like to consume it with a Silverlight
How to update WCF service reference dynamically in silverlight ? Suppose I have created
I've created a WCF service in which I would like it to maintain state
i created a wcf service that had a method: public List<Mail> GetMailItems() { //gets
I created a WCF service that exposed a method that has one paramater: public
I created a WCF service and Hosted it through console. but when I created
I have created a WCF service that uses windows authentication and would like to
I created a WCF service that has a method which makes a call to
i created a WCf service with a method that can receive GET requests using
I created a WCF service to communicate with database, first I created a sample

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.