Posted on: 6/24/2013 7:53:02 PM | Views : 261

I have a web service in a .asmx file local to my website.  I invoke it from a .aspx webpage using a localhost web reference.  This works fine on my development machine, but when I upload to a production host the invocation of the service generates an error (HTTP 404 - not found).  I am using VB.NET, targeting .NET 2.0.  Here is code that illustrates the problem:
Simple Web Service in a file on this site named Service2.asmx:
<%@ WebService Language="VB" Class="Service2" %> Imports System.Web Imports System.Web.Services Imports System.Web.Services.Protocols ' To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line. <System.Web.Script.Services.ScriptService()> _ <WebService(Namespace:="http://craftistuff.com/")> _ <WebServiceBinding(ConformsTo:=WsiProfiles.BasicProfile1_1)> _ Public Class Service2 Inherits ...

Go to the complete details ...