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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T13:00:08+00:00 2026-05-22T13:00:08+00:00

I have simple WCF Service Application (based on this tutorial : Getting Started ).

  • 0

I have simple WCF Service Application (based on this tutorial :Getting Started ). My problem is that when I add a function to my application and want to re-generate Proxy.cs file using command below:

C:\kod>svcutil.exe /language:cs /out:Proxy.cs /config:app.config http://localhos
t:8000/PBMB

I get following result. Only solution I know to re-generate those files is to reboot my computer. But doing so every time I change anything is frustrating. Anyone can help?

Result:

Microsoft (R) Service Model Metadata
Tool [Microsoft (R) Windows (R)
Communication Foundation, Version
4.0.30319.1] Copyright (c) Microsoft Corporation. All rights reserved.

Attempting to download metadata from
‘http://localhost:8000/PBMB‘ using
WS-Metad ata Exchange or DISCO. Error:
Cannot import wsdl:portType Detail: An
exception was thrown while running a
WSDL import extension: System.Se
rviceModel.Description.DataContractSerializerMessageContractImporter
Error: Schema with target namespace
‘http://PBMB‘ could not be found.
XPath to Error Source:
//wsdl:definitions[@targetNamespace=’http://PBMB‘]/wsdl:p
ortType[@name=’IService’]

Error: Cannot import wsdl:binding
Detail: There was an error importing a
wsdl:portType that the wsdl:binding is
de pendent on. XPath to wsdl:portType:
//wsdl:definitions[@targetNamespace=’http://PBMB‘]/wsdl:
portType[@name=’IService’] XPath to
Error Source:
//wsdl:definitions[@targetNamespace=’http://tempuri.org/‘
]/wsdl:binding[@name=’WSHttpBinding_IService’]

Error: Cannot import wsdl:port Detail:
There was an error importing a
wsdl:binding that the wsdl:port is
depend ent on. XPath to wsdl:binding:
//wsdl:definitions[@targetNamespace=’http://tempuri.org/‘
]/wsdl:binding[@name=’WSHttpBinding_IService’]
XPath to Error Source:
//wsdl:definitions[@targetNamespace=’http://tempuri.org/‘
]/wsdl:service[@name=’PBMBService’]/wsdl:port[@name=’WSHttpBinding_IService’]

Generating files… Warning: No code
was generated. If you were trying to
generate a client, this could be
because the metadata docu ments did
not contain any valid contracts or
services or because all
contracts/services were discovered to
exist in /reference assembl ies.
Verify that you passed all the
metadata documents to the tool.

Warning: If you would like to generate
data contracts from schemas make sure
to use the /dataContractOnly option.

  • 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-22T13:00:09+00:00Added an answer on May 22, 2026 at 1:00 pm

    (Disclaimer, I’m by no means an expert in this area but I got intrigued and Googled around a bit)

    Is it possible that the account under which the service is running changes when you make a change to your service and restart it? Like that it by default runs under IIS when you start your computer but when you modify it you start it under Cassini or something like that?

    The reason I ask is because according to this blog post a WCF service needs to have write access to the temp folder since it performs some dynamic code generation and needs some place to store it.

    Just a thought worth considering.

    More detail:

    • WCF metadata error: cannot import wsdl:binding
    • Unable to generate a WCF proxy using svcutil but retrieving the wsdl works?
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a self-hosted WCF service that is hosted by a desktop application. I
I have a simple WCF service: public Order[] GetOrdersByStatus(int statusid) { OrderService os =
I have created a simple wcf service which used the WCF Service Library template.
I have a self-hosted WCF REST service based on the WebHttpBinding. One of the
I have a simple IPC mechanism that uses WCF and named pipes. My goal
I have a simple WCF service (hosted as its own site in IIS). It
I have a WCF service that returns a class that implements IExtensibleDataObject. I need
Should simple JavaBeans that have only simple getters and setters be unit tested?? What
I have a simple webform that will allow unauthenticated users to input their information,
I have a simple 2-column layout with a footer that clears both the right

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.