Hello.
Newbie question for sure.
I've got this simple web service (.asmx) function that works fine when
called remotly from asp.net client web page. The dll compiled output
from the wsdl produced vb code is under webroot/bin/nnn.dll on the
client.
Here's the working client asp.net page:
nnn.asmx:
<%@ Page language="vb"%>
<%@ Import Namespace="nnn1" %>
<HTML>
<BODY>
<script language="vb" runat="server">
Public Sub Page_Load(sender As [Object], e As EventArgs)
Dim mystring As string
mystring = new nnn1.ccc1().fff1()
response.write(mystring)
End Sub
</script>
</BODY>
</HTML>
==========
I'd like to call that same web serviced function from a dos executable
on the client. *** Is this even possible??? *** Here's the code I'm
trying:
Imports nnn1
Class dosclient
shared Sub main
Dim mystring As string
mystring = new nnn1.ccc1().fff1()
System.Console.WriteLine(mystring)
End Sub
end class
here' how I'm compiling:
vbc /t:exe /r:System.dll,
System.IO.dll,System.Data.dll,System.Web.dll,Syste m.Web.Services.dll,System.Xml.dll,c:\mydir\bin\nnn .dll
nnn.vb
dir nnn.exe
No errors on compile exe file created!
When I attempt to run the exe from DOS I get errors (for security
reasons I masked names - in case messages don't add up):
Unhandled Exception: System.IO.FileNotFoundException: File or assembly
name nnn,
or one of its dependencies, was not found.
File name: "nnn"
at nnn.main()
Fusion log follows:
=== Pre-bind state information ===
LOG: DisplayName = nnn, Version=0.0.0.0, Culture=neutral,
PublicKeyToken=null
(Fully-specified)
LOG: Appbase = c:\mydir
LOG: Initial PrivatePath = NULL
Calling assembly : dosclient, Version=0.0.0.0, Culture=neutral,
PublicKeyToken=n
ull.
===
LOG: Application configuration file does not exist.
LOG: Policy not being applied to reference at this time (private,
custom, partia
l, or location-based assembly bind).
LOG: Post-policy reference: ws1, Version=0.0.0.0, Culture=neutral,
PublicKeyToke
n=null
LOG: Attempting download of new URL file:///c:/mydir/nnn.DLL.
LOG: Attempting download of new URL file:///c:/mydir/nnn/nnn.DLL.
LOG: Attempting download of new URL file:///c:/mydir/nnn.EXE.
LOG: Attempting download of new URL file:///c:/mydir/nnn/nnn.EXE.
Thank you for any info or help on this. (Again, don't focus too much
on exact error messages especially namespace/class/function names, I
masked them.)