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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T04:39:01+00:00 2026-05-26T04:39:01+00:00

I created a console Application which hosts the service… now i want to take

  • 0

I created a console Application which hosts the service…
now i want to take the service and host it on iis7

I created the .svc file

configured the iis7

https://i.stack.imgur.com/Ehfhs.jpg

enter image description here

all the compiled code i put on outside directory :

https://i.stack.imgur.com/k0gAh.jpg

enter image description here

and the bin file inside the APP code folder…

and it tells me :
https://i.stack.imgur.com/B3NKn.jpg

enter image description here

what am i missing ?

Can i convert console hoster to iis hoster ?

should it have to be website in the first place ?

should the service also need to have the config ( in my console app it didnt – only the hoster)…..? p.s. as you can see i did clone the config here. ( to the service dir) and also to the output dir.

  • 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-26T04:39:01+00:00Added an answer on May 26, 2026 at 4:39 am

    The easiest would be to create a new empty ASP.NET application to which you add a new WCF service. Then simply replace the generated code with the one of your service.

    I think the reason why your code doesn’t work is because you have an ASP.NET website (and not ASP.NET application) and in your .svc file you are only specifying the name of the service but not the codebehind file that contains it. Since an ASP.NET website is not compiled you need to specify this:

    <% @ServiceHost 
        Service="Service.Class1" 
        Debug="Debug"
        Language="C#" 
        CodeBehind="~/App_Code/Class1.cs"
    %>
    

    Also you are mentioning some bin file inside the APP code folder. If you have some precompiled service in an assembly, this assembly should be inside the ~/bin folder. In a precompiled ASP.NET application you should not have any App_Code folder. It’s really 2 different modes: application vs website. Up to you to decide which mode you prefer.

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

Sidebar

Related Questions

I have created one WCF service , which is working fine, now i want
I created a console application which sends data from a Sql Database to RavenDB.
I created a console application, but I want to turn it into a windows
Altova Mapforce create the console application now i want to call that console application
I created a Console application which searches for plugins ending with PlugIn.dll. It loads
I'm working on a proof-of-concept application, containing a WCF service with console host and
I have created a console application which goes through all site collections and thier
I have created a console test application which creates, an object & calls 2
I have created a console application in which I have exposed interface having [OperationContract(IsOneWay
I have created my c# console application as windows service and installed the service

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.