Web service 2005

TeraByte

New member
Joined
Jan 8, 2007
Messages
4
Programming Experience
Beginner
New to web services in 2005. I compiled my web service to my site and the .asmx file.I believe isn't linked properly since It's compiled and that info is in the bin folder. This is what the .asmx file looks like


VB Code:

<%@ WebService Language="VB" CodeBehind="~/App_Code/myservice.vb" Class="myservice" %>




I'm guessing some compiler options are wrong. Since this file is pointing to an app_code folder which it doesn't even add. I set up a virtual directory so I am sure that is all right. Any suggestions to fix that to link it to the right place? I don't know how they link it to the .dll's
 
You can try a couple of things I just learned:

1) Change "Class=myService" to "Class=localhost.myService"

2) Go into IIS (I'm using 5.1 on WinXP SP2). Right-click on the virtual directory and click 'Properties'. On the 1st tab ('Directory'), go to Application Name. It will most likely be blank. Click the 'Remove' button anyway, and then click 'Create'. (The 'Remove' button turns into a 'Create' button.) This will repopulate the 'Application Name' field with your service name.

See if either of these things help you.
 
Back
Top