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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T04:20:06+00:00 2026-05-21T04:20:06+00:00

Have a WCF service in a Services directory in my asp.net web app. In

  • 0

Have a WCF service in a “Services” directory in my asp.net web app. In

/Services/MyService.svc
/Services/MyService.svc.cs

Everything works when copying my source code to the virtual directory. We were really hoping to precompile the code for various reasons, but when we do the service breaks. I am assuming becuase now the “.cs” file is precompiled and there no longer is a “MyService.svc.cs” in the “/Services” directory.

The Error

Error: Cannot obtain Metadata from http://myurl.com/services/MyService.svc

My .svc mark up is the standard:

<%@ ServiceHost Language="C#" Debug="true" Service="MyNamespace.MyService" CodeBehind="MyNamespace.MyService.svc.cs" %>

Is there something I am doin wrong, or that I can change on the WCF client/service to allow for ASP.net precomilation?

  • 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-21T04:20:07+00:00Added an answer on May 21, 2026 at 4:20 am

    Assuming you’re talking about a precompiled site, take a look at this blog post. Basically the site has to be updatable.

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

Sidebar

Related Questions

I have six wcf services that I'm hosting in a windows service. Everything works
I have a WCF service that I need to call in a ASP.NET web
I have an ASP.NET MVC web app whose controllers use WCF to call into
I have been building a Asp.net WCF web service with json format. Now I
I have inherited a conventional three tier web app with ASP.net 2.0 for the
I have an asp.net 3.5 site and I've just written some wcf services. It
I have a WCF service (MyService.svc) that im hosting under IIS 7.5. My .svc
I am having some difficulty in deploying my WCF service alongside my ASP.NET web
I have a simple ASP.NET site making a call to a WCF service. The
We have a Web project containing both an ASP.Net (forms) UI, and some WCF

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.