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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T17:32:41+00:00 2026-06-10T17:32:41+00:00

I successfully added a WCF Service Reference to my ASP.NET project, but I’m not

  • 0

I successfully added a WCF Service Reference to my ASP.NET project, but I’m not able to use it.
I can’t import the service referenece via using MyProject.MyService.

This worked in a standard Windows Form project and I now, that the requested service is working.

Thanks for your help.

Edit:
There occure Warnings during the generation of the service client
I think the “main” warning is the following

Warning 1   Custom tool warning: Cannot import wsdl:portType
Detail: An exception was thrown while running a WSDL import extension:System.ServiceModel.Description.DataContractSerializerMessageContractImporter
Error: Type 'Newtonsoft.Json.Linq.JToken' is a recursive collection data contract which is not supported. Consider modifying the definition of collection 'Newtonsoft.Json.Linq.JToken' to remove references to itself.

This warning comes only at the generation in an ASP.NET project. The generation works in my other projects.

It seems that this is a problem of a class I’m not responsible for. May I have to change the settings for the service reference creation or avoid some imports in the original WCF Service class?

  • 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-06-10T17:32:43+00:00Added an answer on June 10, 2026 at 5:32 pm

    We need some more information in order to troubleshoot this for you. Is the reference being added but you cannot use it?

    I would suggest looking at the reference.cs file (under the service reference, you may need to tell solution explorer to show all files – little icon of the folders and files at the top) and seeing what namespace it has been generated with.

    I think you’re probably just not using the correct namespace to reference the client.

    The other possibility: check for any compiler warnings, they might give you a clue as to what is going on.

    EDIT: This seems to be an issue encountered by others. Do you have the json.net package installed?

    Please see the following for details:

    Getting "Recursive collection data contract" when referencing a WCF service with a slightly complex method

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

Sidebar

Related Questions

I have a png icon, it's added successfully in my project, but not included
I successfully added and configured HttpHandler in an Asp.Net WebApplication , but facing problems
I'm creating a simple WCF service (MailService), and have added a service reference to
Successfully used jquery-infinite-carousel in the past but for my current project I need it
I have a VS2010 (RTM) solution which contains: WCF Service project Console WCF client
I have successfully added and used a Get action in my new REST-service in
i am adding a label to camera overlay and i successfully added it but
I have a 3rd party .dll that I have successfully added as a reference
I have successfully added a dynamic library to a program, but when I try
i use github and have successfully added and synched files on my laptop in

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.