Remote debugging problem of WebService

Source: Internet
Author: User
Tags web services visual studio

A web Service that enters parameters when debugging locally, can return a dataset, but does not display the input parameter box when deployed to the server, as shown below:

The test form can only be used for requests from the local computer.

Check out MSDN Help as follows:

< project name > property Page dialog Box-> configuration Properties-> Debug

The Debug property page in the Configuration Properties folder contains the following properties:

Debug mode

Specifies whether you want to debug the project, program, or URL. You can also select "Wait to attach to an external process". Project indicates that an executable file (for Windows application and console application projects) or a page (for WEB projects) should be started when the application is debugged. The class Library project cannot be started directly. If you are debugging an XML Web services, setting this property will automatically attach the application to Internet Explorer.

Programs indicate that a specific program should be started when you debug your application. For example, you might run a pre-built client that uses a class library project. "Start Application" must be set up for debugging.

"url" indicates that a specific URL ("Launch url") should be accessed when the application is debugged. For example, you might access the URL of a Web site that uses a class library project.

"Wait for attach to external process" This value applies only to Web applications and XML Web services projects. For XML Web services projects, the debugger attaches to the process that you want to transfer into XML Web services. Set a breakpoint in XML Web services before you start so that the breakpoint is hit when an external process calls XML Web services.

This property is automatically written to and saved to the per-user file (. user) of the project each time you save the project or close it without saving the project.

After you change this property, select the Apply button to edit the corresponding property (start application, start URL, or start page).

For information about how to programmatically access this property, see the StartAction property.

Command line arguments

Specifies the parameters for the startup Application property. This property is automatically written to and saved to the per-user file (. user) of the project each time you save the project or close it without saving the project. For information about how to programmatically access this property, see the Commandlinearguments property.

Working directory

Specifies the working directory of the program being debugged. This property is automatically written to and saved to the per-user file (. user) of the project each time you save the project or close it without saving the project. For information about how to programmatically access this property, see the Startworkingdirectory property.

Always use Internet Explorer

Determines whether debugging will use the default Internet browser specified for Visual Studio. This property is automatically written to and saved to the per-user file (. user) of the project each time you save the project or close it without saving the project. For information about how to programmatically access this property, see the Startwithie property.

Enable remote debugging

When enabled, allows remote debugging of. EXE on the computer specified in the Remote debugging computer attribute. This property is automatically written to and saved to the per-user file (. user) of the project each time you save the project or close it without saving the project. To access this property programmatically, see remotedebugenabled.

Remote Debugging computer

When the Enable Remote debugging property is enabled, it is the name of the computer on which the. exe will run on the remote computer must match the value of the output Path property, which is located in the Build property page of the Configuration Properties folder. The remote computer needs to install the debugger components. Users of the local computer need to belong to the Debugger users (debugger user) group on the remote computer. EXE must be in a shareable directory on a remote computer. This property is automatically written to and saved to the per-user file (. user) of the project each time you save the project or close it without saving the project.

Smart Device Developer Description

Enable ASP debugging, enable ASP.net debugging, enable unmanaged debugging, enable SQL Server debugging, enable remote debugging, and remote debugging computers are not supported.

Originally, the Remote debugging row was used for. exe files, not for Web projects, so it suddenly dawned on the Web.config file that the configuration was as follows:

<webServices>
  <protocols>
   <add name="HttpSoap"/>
   <add name="HttpPost"/>
   <add name="HttpGet"/>
   <add name="Documentation"/>
  </protocols>
</webServices>

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.