Author: Kryptonic | Posted on: 11/6/2006 10:01:57 AM | Views : 1769

Hey all, ive been using CTP Atlas for a while, and im tying to upgrade some of my code to beta 1..

but im getting: Microsoft JScript runtime error: 'WebService' is undefined

New project > Ajax Enabled Website

WebService.asmx.js
function test()
{
    WebService.HelloWorld();
}

WebService.asmx
[WebMethod]
public void HelloWorld()
{
    string test=  "Hello World";  //added a breakpoint here to catch the call
}

Default.aspx
<asp:ScriptManager ID="ScriptManager1" runat="server">
    <Services>
       <asp:ServiceReference Path="WebService.asmx" />
    </Services>
    <Scripts>
 <asp:ScriptReference Path="WebService.asmx.js" />
    </Scripts> ...

Go to the complete details ...