Development error handling records (iis odp. Net 64-bit)

Source: Internet
Author: User

When you debug the original program these two days, the following error occurs when calling the WCF Service:

{"Remote server return error: (500) internal server error. "}

The error message is as follows:

The content type of the Response Message, text/html; charset = UTF-8, does not match the content type of the binding (text/XML; charset = UTF-8. If you use a custom encoder, make sure that the iscontenttypesupported method is correctly implemented. The first 1024 bytes of the response are: "<! Doctype HTML>
<HTML>
<Head>
<Title> failed to Load file, assembly "oracle. dataaccess", or one of its dependencies. Attackers try to load programs with incorrect format. </Title>
<Meta name = "viewport" content = "width = device-width"/>
<Style>
Body {font-family: "verdana"; font-weight: normal; font-size:. 7em; color: black ;}
P {font-family: "verdana"; font-weight: normal; color: black; margin-top:-5px}
B {font-family: "verdana"; font-weight: bold; color: black; margin-top:-5px}
H1 {font-family: "verdana"; font-weight: normal; font-size: 18pt; color: Red}
H2 {font-family: "verdana"; font-weight: normal; font-size: 14pt; color: maroon}
Pre {font-family: "consolas", "lucida console", monospace; font-size: 11pt; margin: 0; padding: 0.5em; line-Height: 14pt}
. Marker {font-weight: bold; color: black; text-Decoration: none ;}
. Version {color: Gray ;}
. Error {margin-bottom: 10px ;}
. Expandable {text-Decoration: underline; font-weight: bold ;".

Because the original program is acceptable, but the original environment is Windows2003, the current environment is windows2008 (64), the WCF Service is hosted by IIS, and the program problems are suspected, it is okay to directly access the WCF Service in the debugging environment. Therefore, access the WCF Service directly in IE, and the prompt is:

Failed to Load file or assembly "oracle. dataaccess" or one of its dependencies. Trying to load a program with an incorrect format

I started to suspect that it was a version issue, but it could be done on other machines. Later, I found a solution to this type on the Internet, which is summarized as follows:

The 64-bit IIS application pool does not load 32-bit application sets by default. My oracle. dataaccesss. dll is 32-bit and needs to be modified as follows:

Solve the problem after making the above adjustments.

PS: In 64-Bit mode, there are still many differences in IIS settings. You can write down all the problems you have solved and accumulate experience.

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.