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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T19:36:28+00:00 2026-06-11T19:36:28+00:00

Within last few days I’m facing really weird problem, I did my best to

  • 0

Within last few days I’m facing really weird problem, I did my best to overcome it, but it seem so abstract to me that I don’t even know where to look any further. I’ve read all related threads here, on SO, and many other sites that google found for me. Case is pretty complicated, but please bear with me:

I work on a project which has MVC web portal front-end that is communicating with back-end infrastructure using WCF web services, some are written by us, some are WWF services. All services are using simple http binding. I was given a task that required me to change service’s contract, and hence updating service reference. Update did not succeed, giving me following set of warnings/errors:

Warning 43  Custom tool warning: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.    PathToProject\Reference.svcmap  1   1   PortalProjectName
Warning 44  Custom tool warning: Cannot import wsdl:portType
Detail: An exception was thrown while running a WSDL import extension: System.ServiceModel.Description.DataContractSerializerMessageContractImporter
Error: The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
XPath to Error Source: //wsdl:definitions[@targetNamespace='namespaceDeclaredInService']/wsdl:portType[@name='IEntityListService']  PathToProject\Reference.svcmap  1   1   PortalProjectName
Warning 45  Custom tool warning: Cannot import wsdl:binding
Detail: There was an error importing a wsdl:portType that the wsdl:binding is dependent on.
XPath to wsdl:portType: //wsdl:definitions[@targetNamespace='namespaceDeclaredInService']/wsdl:portType[@name='IEntityListService']
XPath to Error Source: //wsdl:definitions[@targetNamespace='http://tempuri.org/']/wsdl:binding[@name='WSHttpBinding_IEntityListService']    PathToProject\Reference.svcmap  1   1   PortalProjectName
Warning 46  Custom tool warning: Cannot import wsdl:port
Detail: There was an error importing a wsdl:binding that the wsdl:port is dependent on.
XPath to wsdl:binding: //wsdl:definitions[@targetNamespace='http://tempuri.org/']/wsdl:binding[@name='WSHttpBinding_IEntityListService']
XPath to Error Source: //wsdl:definitions[@targetNamespace='http://tempuri.org/']/wsdl:service[@name='EntityListService']/wsdl:port[@name='WSHttpBinding_IEntityListService']   PathToProject\Reference.svcmap  1   1   PortalProjectName
Error   47  Custom tool error: Failed to generate code for the service reference 'EntityListService'.  Please check other error and warning messages for details.   PathToProject\Reference.svcmap  1   1   PortalProjectName

I’ve found that this can be solved by having web service not reuse types from referenced assemblies. I Did that, then I’ve found out that (ofc) I have ambiguous types references in code. Anyway, this solution I did just for test purposes, since reusing types from referenced assemblies is just what I want. So I checked reuse checkbox back and started experimenting.

From portal project I removed all references that caused problem (from which types were ought to be reused), than updating reference worked (it’s pretty much equivalent to not reusing), build of course not.
Then I figured out that this may have something to do with some hidden error in any of these assemblies being part of the same solution. So I tested this hypothesis building one of these projects and referencing it from Portal as dll. All the same.

Then, by investigating some more I’ve found out that this error occurs also when I remove references to assemblies with types that I want to reuse and add reference to project “Resources” from portal (no types from this project are used in portal or web service).
Resources contained one class (attribute) and one resources file (cs+resx).
So now I have Portal project with added reference to resources, no reference to any project that originally caused error and error still occurs. Then I saw that access modifier in for resources file in resources project is set to Public. I switched it to internal, and then I successfully updated service reference. Problem is, that this have to stay public, since other projects use these resources, including these containing types that I want service to reuse.

While googling on this subject I’ve found people saying that these help:

  • restart VS
  • run VS with no admin privilages
  • uninstal VS 2012 RC and reinstall VS2010
  • delete and add reference from scratch, restarting VS between these
    steps

In my case neither of these solutions helped.

From my point of view it is very strange, any help will be greatly appreciated, since, as for now I have no solution for this problem.

Edit:

In resources project I’ve made a proxy class, and make actual resources internal. That made build possible, and update reference worked when portal referenced only resources project. After adding references to other assemblies from project it’s all the same.

  • 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-11T19:36:29+00:00Added an answer on June 11, 2026 at 7:36 pm

    It turned out that problem was caused by log4net.dll, which was built against .NET Framework 3.5. We made our own dll against .Net 4.0 and all problems are gone.

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

Sidebar

Related Questions

We need to make sure only results within the last 30 days are returned
I have spent the last few days attempting to integrate a Grails (version 1.3.2)
I spent few hours trying to resolve one very strange issue, but I really
I have been working on the following code for the last few days and
I'm playing with spring interceptors in last few days and want to catch and
I've spent the last few days messing around with Selenium, Tor, and Firefox as
This has inexplicably started happening within the last 6 months or so. This same
I am attempting to populate a list of records within the last X seconds
To update a project to the last review within TortoiseSVN i do: SVN Update.
How would I get the last occurrence of an NSString within another NSString? For

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.