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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T23:52:47+00:00 2026-05-29T23:52:47+00:00

I have a web application project being developed in VS2010 targetting Framework 4.0. I

  • 0

I have a web application project being developed in VS2010 targetting Framework 4.0. I need to add a reference to a web service. On the same machine that I am developing on, I created a new project – set the target framework as 3.5 – and selected Web Service Application – and created a Web Service with the default HelloWorld method. I then changed the targed Framework to 4.0 and published this Web Service to a local server – http://mylocalserver/myWebService/Service1.asmx and, if I put that in a browser it all works fine – the Hello World method is displayed and, if you click it, it executes okay and displays “Hello World”.

I then added a Service Reference to my web application project – clicked Advanced and added a Web Service reference. During this process the web service was found and it reported that the Hello World method was available. So, add the web refernce and in the solution I can see under Web References – myWebService – Reference.map – Reference.cs – Service1.disco – Service1.wsdl

Then, if I try to build the web application project the build fails. It says ‘Error 48 Could not load file or assembly ‘file:///C:\Development\EVProject\EVProject\bin\AjaxControlToolkit.dll’ or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)

If I remove the reference to the web service – it all builds okay and works fine. If I put the reference to the Hello World web service back in -it won’t build. Take it out it builds and works fine.

Any idea why adding the web reference is preventing it from building? Thanks for any help.

Edit: A bit more info …

A bit more info. On the same development machine I have a Web Site Project. I just added the same web reference to that project and called the web service from it. It builds fine – and calls the web service correctly.

So, two applications on the same development machine.

Both VS2010 – both targetting Framework 4.0

One is a Web Site Project

The other is a Web Application Project

If I add the same web reference to both projects, the Web Application will not build – the Web Site project builds fine and calls the web service correctly. So, who won’t the Web Application Project build?

  • 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-29T23:52:48+00:00Added an answer on May 29, 2026 at 11:52 pm

    I had the same problem: my project didn’t build after adding a web reference. I was able to build it disabling ‘Generate serialization assembly’ option from my project properties build tab.

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

Sidebar

Related Questions

I have a web application project (wap) that is successfully being deployed to a
We have several external DLL files being referenced in our Web Application Project. We
I have a VS2008 Web Application project that is being pre-compiled without being updatable.
I have a Web Application project in Visual Studio 2008. (lucky you, you say?
I have a web application project that works with a quite large database (over
I have a web application project. I am trying to find out why certain
I have a freelance web application project where the client requests new features every
I have an ASP.NET web application project which references another project called ModusCore (or
We have a pretty big ASP.NET WebForm (web application) project with a lot of
I am starting a web application project that will have an Adobe Flex front-end

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.