You must Sign In to post a response.
  • Category: WCF

    Dependency problem with wcf service

    Hi,

    I have added the wcf service file with my asp.net application. When i build my application i am getting following error. Please provide your support on this.

    Could not load file or assembly 'System.ServiceModel.Web, Version=4.0.0.0' or one of its dependencies. The system cannot find the file specified.

    Thanks,
    Simiyon A
  • #761549
    It will be some version mismatch. Create new simple WCF Service and Wep application and check the version.

    If the sample application working fine. you can use that identify correct version and replace it with your application

    By Nathan
    Direction is important than speed

  • #761550
    hi

    Can you Share the code then we can solve the issues

    Name : Dotnet Developer-2015
    Email Id : kumaraspcode2009@gmail.com

    'Not by might nor by power, but by my Spirit,' says the LORD Almighty.

  • #761560
    Hi

    Try to recreate freshly by opening new project.
    Then copy all your application files and then add the wcf service.
    Then go for build project. Still the problem persists let us know.

    Regards
    Thota Sridhar.
    If you learn from defeat..
    You haven't really lost..

    Sridhar Thota.
    Editor: DNS Forum.

  • #761567
    Hi,

    There can be multiple solution to this issue. Few are discussed in below thread. Please go through it and try one by one and see which one will for you,
    http://stackoverflow.com/questions/22351255/could-not-load-file-or-assembly-system-servicemodel-web-version-4-0-0-0


    Regards,
    Asheej T K

  • #761590
    Hello Simiyon,

    Please check in your reference, is there a reference for those dll as:
    System.ServiceModel.Web
    System.Spatial

    Hope this may help you to solve your issue.

    Regards,
    Nirav Lalan
    DNS Gold Member
    "If you can dream it, you can do it."


  • Sign In to post your comments