To be resolved: ASP. NET Webservice deployment failed

Source: Internet
Author: User

 

Recently, a customer deployed our product (ASP. NET) to Windows Server 2008 R2 (64bit) through the installer, and then told us that some WebServices could not be accessed. This problem is generally not very common and is only related to the specific IIS environment. I followed the steps below and asked the customer to check the IIS configuration of their server, but no proper answer was found.

The problem is as follows: access the. asmx file (ASP. NET webservice) through the following address. No file is returned and cannot be accessed.

Https://accela01-pc.achievo.com/705SP8/SACRAMENTO/WebService/AdminConfigureService.asmx/jsdebug

Normally, you can obtain a JS file with the following content:

 

Note:

1) This problem occurs only in a specific environment, but not in other cases.

2) the code is fine. If there is a problem, it can be reproduced in many places. Besides, our own Server is also Windows Server 2008 R2 (64bit)

3) References:

How to call a Web Service from client-side JavaScript using ASP. Net AJAX

Http://www.semenoff.dk/en/Code-Corner/ASP.Net.AJAX/WebService-From-JavaScript.aspxASP.NET

3.5 call of AJAX Web Service based on core programming

Http://www.duote.com/tech/5/14544.html

How to notify script resources to be loaded and how to manage Web Service client proxy

Http://www.755800.com/kb/870.shtml

 

Check Procedure:

Step 1: Check the NET Framework Version Used by the site.

Generally, the customer's site uses Application Pools, So we demonstrate how to check the NET Framework version at Application Pools.

Step 2: Check Handers

If the 32bit and 64bit NET frameworks are installed on the machine at the same time, the following interface is displayed.

 

 

 

 

Step 3: If you accidentally delete the file, it will be reflected in the web. config file.

Because the configuration information of each site is reflected in the web. config file.

In the web. config file of the ASP. NET site, the two Handler.

Related Article

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.