Dear Gurus:
On my local computer I am running IIS 5.0 and I have written a web service, and I have put all relevant files in my local inetpub/wwwroot folder and my web service works fine. I get the proper asmx interface.
But when I move the relevant web service files to a server running IIS 6.0 and open IE and put in the correct URL all I get is the following line of text at the top of my page in IE:
<%@dotnet.itags.org. WebService Language="c#" Codebehind="SalesReport.asmx.cs" Class="SalesReportWebService.SalesReport" %>
My web service was written and compiled with VisualStudio.net.
Yes, I have added my .dll as an allowed web service extension.
Do I have to register my web service somewhere? Any idea what might be going wrong?
Thank you in advance,
Kailin.
OK I have now fixed this problem.
The problem was somebody had modified the machine.config file on the computer where the web service was not working. The <httphandlers> section that setasmx as a recognized file type in themachine.config file was removed rendering the web service inoperable. I have now replaced the broken machine.config file with a default machine.config file and this fixed the problem.
Thank you to anyone who took some time to look into this issue.
0 comments:
Post a Comment