This is a web application project in APS.NET 2.0, C#. I posted this a few days ago and thought I had a fix, but it did not work in the customer's server.
I have a form with a js file which makes a call to a web method/script method in an asmx file in the same project. The code works on my computer, and also on the customer's test server, but when we put it on the live server we get the error "ServiceLib' is not defined.
Looking on the I'Net, a saw a lot of recommendations to add a namespace to the call from the js file and to add a namespace to the asmx file. When I do that, it errors out even on my computer -- 'ThisNamespace' is not defined.
Below are 3 snippets of code; the asmx file (truncated), the definition of the proxy in the aspx page, and the call to the webmethod which is made in the js file for the aspx page.
the asmx file:
<%@ WebService Language="C#" Class="ServiceLib&qu ...
Go to the complete details ...