私はこれで何時間も壁に頭をぶつけてきました。これは、Amazon Web Services Win 2008 R2 サーバーおよび IIS 7.5 上の DotNetNuke 6.2.5 の下にあります。
~\App_Code\DataService.cs に存在する 2 つの WebMethods があり、これには ~\DataService.asmx というコンパニオンがあります。これは、localhost (私が開発を行っている場所) とライブ サイトでうまく機能します。ブラウザと AJAX の両方でデータを取得できます。
The problem is, I need this code to live on a second live server, with basically the same setup as the one where it already works. When I browse on this server to localhost/DataService.asmx, I see the DataService, listing the two WebMethods, but when I click through on them, and then on 'Invoke', I get:
404 Not Found<br>The requested Url (http://localhost/DataService.asmx/WebMethod) does not return any valid content.
AFAIK, IIS is configured identically, and the web.config files on both machines are virtually identical, certainly as far as the .asmx service mappings are concerned, etc.
I've searched here and elsewhere online. This is killing me. I don't even know where to begin to track down the problem. Does anyone have any ideas what the problem might be, or how I can get more information to track it down?
Thanks in advance.