473,407 Members | 2,314 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

call web method from remote dos client VB.NET console Ap - FileNotFoundException.

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.)
Nov 20 '05 #1
0 2510

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Jack Addington | last post by:
I am working on app that currently all resides on the same machine but plan to pull the database off and try to move all the datafunctionality to a remote machine. I have a data function that is...
1
by: Sagaert Johan | last post by:
Hi Ii have a simple server thread in an app that listens for connections, for some unclear reason an exception is thrown every now and then : 'A blocking operation was interrupted by a call to...
3
by: Slimo | last post by:
Hello, I'm searching some example of code (VB) for reading remote registry subkeys and keys. Thanks
8
by: Stephen Long | last post by:
I'm looking for information on how i can open a remote command shell <cmd.exe> on a remote pc and perform basic DOS/Shell commands .. TIA Steve
2
by: jjlagtap | last post by:
Hey everyone When I try to open a file i get the Exception listed below. The weird thing is it works when I run the web app locally and when i use a remote server and open a file on my computer....
0
by: mike.hudson | last post by:
I'm looking for an example of how to call a SAP RFC from within a C# program. If I have a function called "MyFunction" and it takes 1 input parameter and returns one output parameter (a table) how...
11
by: JCav | last post by:
I need to call a COM object from a remote machine using C#. I also need to pass on a different userID and password to the call. Has anyone done this? I've used Java to do this using JIntegra, but...
2
by: =?Utf-8?B?SmltIE93ZW4=?= | last post by:
Hi John, Hopefully this post will find its way back to you - or perhaps be answered by someone else. As I mentioned in my last post on the earlier portion of this thread, changing the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.