The content type of the response message that appears when the web service is called. Text/html does not match the content type bound to text/XML.

Source: Internet
Author: User

Error message: content type of the Response Message, text/html; charset = UTF-8 and the content of the binding (text/XML; charset = UTF-8)
The capacity type does not match. If you use a custom encoder, make sure that the iscontenttypesupported method is correctly implemented.


This problem occurs when Yao remotely assigned the customer. The first reason is that the configuration is faulty, but Yao said that the customer has not moved the configuration file. Program

It runs well until some security configurations are made to the server. Without a test environment, I had no clue at the moment, so I had to use Google to search for the desired answer.

Yao said that the Web service under IIS could not be opened, which caught my attention. He habitually looked at the application logs and found a piece of red. This process is not started:

Aspnet_wp.exe failed to start

This solves the problem, but follow the method provided on the Internet: Change the machine. config file

It is located in c: \ winnt \ Microsoft. NET \ framework \ v1.0.3705 (Asp.net 1.0 is like this, if your version is 1.1, the folder name is different) \ config \,

Set the property of username in the <processmodel> component to system, because it is set to machine by default. (The configuration file PS: 2.0 is machine. config. Comments)

The two articles inspired me:

Http://blog.donews.com/litterboy/archive/2005/10/11/584183.aspx/

Http://xu020408.blog.163.com/blog/static/26548920093238128640/

Check the configuration of Microsoft. net \ framework \ v2.0.50727 security configuration, it is found that the security configuration of the customer server is more than an iuser _ *** user, add this user to the security configuration.

Start IIS and access it immediately.

PS: iisreset IIS restart

Aspnet_regiis.exe-I ASPnet re-registration

The two commands have been useless for a long time and are all forgotten ~

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.