C
Chan
I have a project named NET. It has .aspx and one .asmx files. This NET
is a virtual directory and application in IIS:
- All .aspx and one .asmx and their .vb files are located at the root
level of NET.
- Win2K with SP4.
- .Net Framework 1.1.4322
- .NET Studio 2003
I can do the followings without using WSDL.exe and VBC.exe at command
line:
- use http://localhost/NET/WebService.asmx to test it.
- run a .aspx as client to call WebService's members.
To deploy the .asmx service to a different box WITHOUT .NET Studio
2003 ONLY, following steps were carried out:
<1> run WSDL at command line exactly as
wsdl /l:VB /out:WebService.vb http://localhost/NET/WebService.asmx
/n:NET
<2> run VBC at command line exactly as
vbc /t:library /out:WebService.dll WebService.vb /r:syste.dll
/r:system.web.services.dll
put the generated .dll into \NET\bin
<3> copy my WebService.* from local \NET directory to remote \NET
directory.
<4> copy WebService.dll from local \NET\bin to remote \NET\bin
directory.
So far, no problem. But can not even test the service using
http://<RemoteServerName>/NET/WebService.asmx
Here is the actual error returned
-------------------------------------
Parser Error Message: Could not create type 'NET.WebService'.
Source Error:
Line 1: <%@ WebService Language="vb" Codebehind="WebService.asmx.vb"
Class="NET.WebService" %>
-------------------------------------
If the same problem with .aspx, it can be resolved by simply "Build"
the solution in .NET Studio 2003.
I then read Framework doc, titled "Ddploying XML Web Services", it
said a virtual directory & app is needed for the web service, then the
bin under it. Still failed with the same error.
So, I don't think an individual virtual directory & app is needed. And
I don't think "localhost" in the wsdl kills it.
Is there any expert?
Thanks.
is a virtual directory and application in IIS:
- All .aspx and one .asmx and their .vb files are located at the root
level of NET.
- Win2K with SP4.
- .Net Framework 1.1.4322
- .NET Studio 2003
I can do the followings without using WSDL.exe and VBC.exe at command
line:
- use http://localhost/NET/WebService.asmx to test it.
- run a .aspx as client to call WebService's members.
To deploy the .asmx service to a different box WITHOUT .NET Studio
2003 ONLY, following steps were carried out:
<1> run WSDL at command line exactly as
wsdl /l:VB /out:WebService.vb http://localhost/NET/WebService.asmx
/n:NET
<2> run VBC at command line exactly as
vbc /t:library /out:WebService.dll WebService.vb /r:syste.dll
/r:system.web.services.dll
put the generated .dll into \NET\bin
<3> copy my WebService.* from local \NET directory to remote \NET
directory.
<4> copy WebService.dll from local \NET\bin to remote \NET\bin
directory.
So far, no problem. But can not even test the service using
http://<RemoteServerName>/NET/WebService.asmx
Here is the actual error returned
-------------------------------------
Parser Error Message: Could not create type 'NET.WebService'.
Source Error:
Line 1: <%@ WebService Language="vb" Codebehind="WebService.asmx.vb"
Class="NET.WebService" %>
-------------------------------------
If the same problem with .aspx, it can be resolved by simply "Build"
the solution in .NET Studio 2003.
I then read Framework doc, titled "Ddploying XML Web Services", it
said a virtual directory & app is needed for the web service, then the
bin under it. Still failed with the same error.
So, I don't think an individual virtual directory & app is needed. And
I don't think "localhost" in the wsdl kills it.
Is there any expert?
Thanks.