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.