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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T22:59:44+00:00 2026-05-21T22:59:44+00:00

Why doesn’t my WCF service provide metadata locally, when I think I have set

  • 0

Why doesn’t my WCF service provide metadata locally, when I think I have set it up exactly as it is in the test environment?

Environment

My development machine has Windows Server 2003, SP2 with IIS. I have built my service locally and then set up the CSPROJ’s directory as a Web site.

IIS Configuration

Web Site    Description MyService
    IP Address  (All Unassigned)
    TCP port    5001
    Enable HTTP Keep-Alives true
HomeDirectory   Directory located on this computer  
    Local Path  Project directory with .svc and Web.config
    Application Name    Default Application
    Execute Permissions Scripts and Executables
    Application Pool    Default
ASP.NET Version 2.0.50727
    Virtual Path    MyService
    File location   Path of Web.config

I modeled my IIS settings on a UAT instance that I can get proxy information from.
However when I try to get proxy information on my instance with

C:\Program Files\Microsoft Visual Studio 10.0\VC>svcutil http://localhost:5001/P
mdgService.svc

I get the following error messages.

Error: Cannot obtain Metadata from
http://localhost:5001/MyService.svc
…

Metadata contains a reference that cannot be resolved:
‘http://localhost:5001/MyService.svc‘.

There was no endpoint listening at http://localhost:5001/MyService.svc
…
The remote server returned an error: (404) Not Found.
…

I cannot browse to the URL.

I have tried suggestions

  1. Verified that metadata behavior is used. (It’s identical to working instances.)
  2. Allowing full control access to C:\Windows\temp to IWAM_, IUSER_, ASPNET (suggested here: WCF Metadata reference cannot be resolved) did not help.

Here is a look at my Web.config

<configuration>
<!-...-->
<system.serviceModel>
    <services>
      <service behaviorConfiguration="MyService.Service1Behavior" name="MyService.MyService">
        <endpoint address="" binding="basicHttpBinding" bindingConfiguration="MyBasicHttpBinding"
  contract="MyService.MyService">
          <identity>
            <dns value="localhost"/>
          </identity>
        </endpoint>
        <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>
      </service>
    </services>
    <bindings>
      <basicHttpBinding>
        <binding name="MyBasicHttpBinding" maxBufferPoolSize="2147483647"  maxReceivedMessageSize="2147483647"
            maxBufferSize="2147483647">
        <readerQuotas maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxDepth="2147483647"
            maxNameTableCharCount="2147483647" maxStringContentLength="2147483647" />
        </binding>
      </basicHttpBinding>
    </bindings>
    <behaviors>
      <serviceBehaviors>
        <behavior name="MyService.Service1Behavior">
          <serviceMetadata httpGetEnabled="true"/>
          <serviceDebug includeExceptionDetailInFaults="true"/>
          <dataContractSerializer maxItemsInObjectGraph="2147483647"/>
        </behavior>
      </serviceBehaviors>
    </behaviors>
  </system.serviceModel>
</configuration>
  • 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-21T22:59:44+00:00Added an answer on May 21, 2026 at 10:59 pm

    The problem was that of permissions.

    The current identity (NT AUTHORITY\NETWORK SERVICE) does not have write access to ‘c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files’.

    Once I granted these permissions to NETWORK SERVICE on the machine, I was able to create proxies and configure that service in my Silverlight client.

    I would like to thank razlebe for pointing me in the right direction.

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

Sidebar

Related Questions

Doesn't configuring WCF in code require more coupling with the model and service libraries?
Doesn't value have to return toString() to be able to call value.toString()? When do
This doesn't have to be Java, but it's what I'm dealing with. Also, not
Ruby doesn't seem to have a facility for defining a protected/private block like so:
Why doesn't Python allow modules to have a __call__ method? (Beyond the obvious that
This doesn't work: $to = 'myemail@gmail.com'; $from = 'test@test.com'; $subj = 'test'; $message =
SQLite doesn't have a data type for dates. I was wondering if it's enough
Doesn't an ORM usually involve doing something like a select *? If I have
Why doesn't this work? I have bypassed this before but i can't remember how
Why doesn't UITableViewCell background color work (set in interface builder)? I note from some

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.