Reputation: 330
I am trying to create a webservice in c# that can be called from jquery.
I have created the webservice in visual studio and it works when I press F5, but when I try to upload it I get different results. I'm even publishing though VS straight to FTP yet when viewing the page I get this
<%@ WebService Language="C#" CodeBehind="Service1.asmx.cs" Class="WebService1.Service1" %>
This is the same message I am getting returned to my jquery when requesting a get. Any ideas why it isn't working?
Upvotes: 1
Views: 1507
Reputation: 527
I got this error (after what I think was due to rebinding - through Add Service Reference - to a web service in a new version of Visual Studio). I noticed I had ended up with duplicate .asmx files. Try deleting the .asmx files and rebind to the web service from scratch through Add Service Reference in Visual Studio Solution Explorer
Upvotes: 0
Reputation: 9494
Make sure the virtual path in IIS is defined as an Application. Look here for more info:
http://technet.microsoft.com/en-us/library/cc772042(WS.10).aspx
Upvotes: 2