In VB6, I copy *.exe file in a folder on the network and all user can run
this (if they have all *.ocx files). I would like to make the same thing in
VB.NET, but I can't. It gives me error wen I run the program. I build my
application with release option and I copy the *.exe file from
....\obj\Releas e folder. I don't want to use a setup program to run this
program. Can you help me please :(((((( 7 3679
"FaciCAD" <ca*@norclair.c om> schrieb In VB6, I copy *.exe file in a folder on the network and all user can run this (if they have all *.ocx files). I would like to make the same thing in VB.NET, but I can't. It gives me error wen I run the program. I build my application with release option and I copy the *.exe file from ...\obj\Release folder. I don't want to use a setup program to run this program. Can you help me please :((((((
The .NET Framework must be installed on the client machines.
--
Armin
Yes it is, and VB.NET is on my PC. Want i run in debug mode with run in
VB.NET, the program run perfect, but if i build *.exe file, copy on server
and try to run from server i can't. The just-in-time start with comment "An
exception 'System.IO.File NotFoundExeptio n' has occurred in Options.exe"
Hello,
"FaciCAD" <ca*@norclair.c om> schrieb: In VB6, I copy *.exe file in a folder on the network and all user can run this (if they have all *.ocx files). I would like to make the same thing
in VB.NET, but I can't. It gives me error wen I run the program. I build my application with release option and I copy the *.exe file from ...\obj\Release folder. I don't want to use a setup program to run this program.
Do you get a SecurityExcepti on? http://www.google.de/groups?selm=eq8...TNGP11.phx.gbl
HTH,
Herfried K. Wagner
--
MVP · VB Classic, VB .NET http://www.mvps.org/dotnet
Hello,
"FaciCAD" <ca*@norclair.c om> schrieb: This is the windows
That's a SecturityExcept ion, not a FileNotFoundExc eption. Have a look at my
reply to your original posting.
HTH,
Herfried K. Wagner
--
MVP · VB Classic, VB .NET http://www.mvps.org/dotnet
> 'System.IO.File NotFoundExeptio n'
This means .NET can find the file you are asking for, if you click
Start->Run and paste the path in, does it open as you would expect?
"FaciCAD" <ca*@norclair.c om> wrote in message
news:e$******** ******@tk2msftn gp13.phx.gbl... Yes it is, and VB.NET is on my PC. Want i run in debug mode with run in VB.NET, the program run perfect, but if i build *.exe file, copy on server and try to run from server i can't. The just-in-time start with comment
"An exception 'System.IO.File NotFoundExeptio n' has occurred in Options.exe"
GOOD is work :)))))) Thank you very very much
Hello,
"FaciCAD" <ca*@norclair.c om> schrieb: "An exception 'System.IO.File NotFoundExeptio n' has occurred in Options.exe"
Do you still get this exception?
Regards,
Herfried K. Wagner
--
MVP · VB Classic, VB .NET http://www.mvps.org/dotnet This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Lars |
last post by:
Hi! I´m trying to send a file over a network with tcp/ip
so that the client can download it and save it. I going to
send the size of the file in a textmessage but I have not
implemented that part yet. But am I getting in right?
This is the server (not all).
Socket client = server.Accept();
NetworkStream netStream = new NetworkStream(client);
|
by: Lam |
last post by:
HI
anyone knows how can I open a mapped network file in C#?
I try string file = @"T:\file.txt"; it shows me the error: "Could not find
a part of the path"
but if I copy the file to my C dirve, and use @"C:\file.txt"; it worked
Thanks a lot
|
by: zxkuqyb |
last post by:
I've written a simple ASP .NET web application that reads a text file and
displays it in the web browser. Works fine when reading a local path; but
fails with "can not find a part of the path", or "can not access network
file" when attemting to access a UNC network path. I am using IIS 6.0 on
Server 2003. SharePoint Portal Server is also installed on this server. I
have granted full access to 'everyone' on the network file. An...
|
by: Sarah |
last post by:
I need to access some data on a server. I can access it directly using UNC
(i.e. \\ComputerName\ShareName\Path\FileName) or using a mapped network
drive resource (S:\Path\FileName).
Here is my problem: my vb.net program has problems with UNC. If the UNC
server is restarted or goes off-line, my VB.net program crashes. The code
for UNC access to the file is included below and is put in the tick event of
a form timer control running every...
|
by: .Net Believer |
last post by:
I using the routine below to copy file to a network drive for a regular
backup process. Before calling this routine I using another function to check
the presence of the LAN connection and the server where the network drive
exists.
Although of this check I am sometimes getting an exception (in 5% of
times)saying "Could not find the U:\...\File.ext" or part of its path"
Although the network dirve is available and accessible by windows...
| |
by: Dixie |
last post by:
I want to send a file to each persons home network space. I believe that
when a person logs onto a network, some sort of variable is set that
identifies the user. Is there any code that would allow me to transfer a
text file from Access 2000 for a mailmerge to the person logged in's special
network folder? I don't fully understand this, but I thought someone might
know something about it?
dixie.
|
by: abhanjee |
last post by:
Hello,
I am a newbie and am developing an application for work.
I have figured out how to upload a file attachment to the SQL database
and download the same file using C# and Visual Studio. However, the
user wants to download and edit a file and then upload the same file
back to the database (ie overwrite the file). How do I do this?
Also, how to upload/download the file to a network drive instead of
|
by: shineofleo |
last post by:
Here is the situation: I wrote a VB programm, which stores all the
information in a single Access database file using jet engine. It
worked well, however one of my customs reported that there was some
problems with this programm. I checked, the log files showed that the
database was corrupted.
The customer told me that there no 'illegal' operation such as pull out
the plug, or kill the programm via task manager...
So is there any...
|
by: Barry Flynn |
last post by:
Hi
I am working with a VB 2005 program which has been converted from VB6.
It writes data out to a flat file, with code like the following line
WriteLine(riFileNo, "Hist", lsAssetID, lsRecordType, lsXNbr, lsFiscYr,
"Beg", CStr(H.BegBalAccDepn), CStr(H.BegBalCost), CStr(H.BegBalCostReval),
CStr(H.BegBalDepCost), CStr(H.BegBalDepnReval))
The program is running from within a Virtual PC
|
by: hotflash |
last post by:
Hi Master CroCrew,
I found a good PURE ASP that will allow you to upload 10MB file to the server and the file contents such as Network, Author, Title, etc... will insert to MS Access at the same time.
Below is a working script that I used. Let's say after the file is uploaded to the server and a record created with the file contents above to the MS Access (using the script below). If I want to UPDATE that record let's say, change the...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |