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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T08:24:12+00:00 2026-05-12T08:24:12+00:00

I have a pretty big webapp that’s being built in MVC. I’m also abstracting

  • 0

I have a pretty big webapp that’s being built in MVC. I’m also abstracting common code into a framework which sits in a separate project. Hopefully this framework will be used in other projects in the near future. There are a few Silverlight apps that are a part of this framework, and one of their jobs is to upload files a chunk at a time. In order to achieve this, I want them to communicate with a WCF service, which also lives in the framework project. I am having problems with this.

I copied the app.config data VS2008 added to my framework project for the service into the web.config, but that didn’t seem to work.

After a bit of searching I discovered that you can write a service with a code behind, by creating a .svc file and a matching .cs file, so I tried creating MyService.svc like this:

<% @ServiceHost language="C#"
Service="MyFramework.MyService"
%>

As my service exists within another project, there’s no code behind file to reference, so I assumed the Namespace.Class reference would be enough in there.

I also added MyService.svc/{*pathInfo} to the Ignored Routes in my Global.asax file.

However when I try to browse to localhost:x/MyService.svc, or when I try to find the service using the Add Service tool in VS2008, it just seems to hang.

What am I doing wrong?

Anthony

  • 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-12T08:24:12+00:00Added an answer on May 12, 2026 at 8:24 am

    Yes well your WCF service is SOAP based – you won’t be able to just browse to it and see anything.

    If you want to see the service description and all, you’ll need to enable the “metadata” exchange by

    • specifying the <serviceMetadata> behavior in your service config
    • defining a “mex” (metadata exchange) endpoint in your service config

    To enable the serviceMetadata, you need this section in your service config (web.config – section <system.serviceModel>):

    <system.serviceModel>
       <behaviors>
       <serviceBehaviors>
           <behavior name="MEXServiceBehavior">
                   <serviceMetadata httpGetEnabled="True"/>
               </behavior>
           </serviceBehaviors>
       </behaviors>
    

    and you’ll need to reference that from your service:

    <system.serviceModel>
        <service name="....." behaviorConfiguration="MEXServiceBehavior" ....>
    

    To define a MEX endpoint, use something like this:

    <services>
        <service name="....." behaviorConfiguration="MEXServiceBehavior" ....>
            <endpoint address="http://localhost:5555/YourSerice/mex"
                      binding="mexHttpBinding" contract="IMetadataExchange" />
    

    There should be plenty of documentation available to show you how to do this (including plenty of questions asked and answered here on Stackoverflow on that topic).

    Just a tiny nitpick: you’re not really hosting your service “in ASP.NET MVC” – you’re hosting it in IIS – the MS web server product. It is totally independent of whether you’re using ASP.NET MVC, ASP.NET webforms, or anything else, for that matter.

    Marc

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

Sidebar

Ask A Question

Stats

  • Questions 150k
  • Answers 150k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Some random situations where conversion functions are used and not… May 12, 2026 at 9:47 am
  • Editorial Team
    Editorial Team added an answer Use the Infragistics Support team if you have a subscription,… May 12, 2026 at 9:47 am
  • Editorial Team
    Editorial Team added an answer On the Mac it's definitely alive and kicking. Also the… May 12, 2026 at 9:47 am

Related Questions

I've had a lot of good experiences learning about web development on w3schools.com .
I'm a pretty experienced Java programmer that's been doing quite a bit of Win32
I have a Java program that runs many small simulations. It runs a genetic
So I've done unit testing some, and have experience writing tests, but I have
I would really appreciate any suggestions, no matter how simple or complex, to help

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.