Resolve exceptions if the service is already defined in the current solution, try building the solution, and then add the service reference again

Source: Internet
Author: User
When adding a native Web service reference "if the service is already defined in the current solution, try to build the solution, and then add the service reference again" exception resolution VS2013 Create an empty project type of "asp.net Web Application", and then want to contact the use of the next webservice. Create a new WebService, the project node right-> add-> Add New Item->web Service (ASMX) WebService. The project node then right--> adds-> service reference, resulting in an error following the download service:
Click on the detailed error, the end of a large series of description: The remote server returned an error: (500) Internal server error. If the service is already defined in the current solution, try to build the solution, and then add the service reference again. However, it is no use to try again by directly adopting its proposal to build a solution.
My modification is to add the following two references to the project. Right-click on the Reference node-> Add Reference find these two namespaces plus OK. Because the default item is not.

Even if you add a namespace reference, you immediately go to add a service reference will find it or not, this time after running the project and then add will be useful.
La La La.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.