borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (Compiling SQL results into 1 report)Next Topic (Display In DataGrid) New Topic New Poll Post Reply
AndreaVB Forum : Database : Need Help Urgently !!
Poster Message
mel78
Level: Guest


icon Need Help Urgently !!

I am developing a small vb application which process a file(s) from user's machine and output a file into user's machine. Everything works fine when I test using my machine. However, when I launched the vb exe from a server into my machine thru drive mapping, I can't retrieve the desired file. The error message given is as follow :-

"Item cannot be found in the collection corresponding to the registered name or ordinal"

The structure of the system and the user is as following:-

sql database: server A
vb exe: server B
users: individual workstation
folders that contains data to be processed: individual workstation

In the vb program, I code it to pick the file from C drive. The coding looks like below:-

txtAttach.Text = "C:<folder1><folder2><filename.txt>"

Please tell me how to correct this. Thanks   

24-12-2002 at 07:05 AM
| Quote Reply
JLRodgers
Level: Moderator

Registered: 04-04-2002
Posts: 1617
icon Re: Need Help Urgently !!

Everything I saw with that error was related to ADO... If you gave the exact line where the error happened (you can guess by what all is done before the program errors, or if it's logged, by that) it would be useful.

Personally I perfer using the UNC path (IE: \ComputernameSharedFolder) instead of mapped drives, the latter causes problems a lot I've found.

Since you've mentioned SQL, I'm assuming that you're accessing data from it although you never mentioned it. Given that assumption, I'd have to say that you'd need to make sure the MDAC controls are installed on the server where the program is running.





____________________________
Everywhere's Local (classifieds, job postings, & more for everycity in the world - user entered)

24-12-2002 at 07:16 AM
View Profile Send Email to User Show All Posts Visit Homepage | Quote Reply
mel78
Level: Guest

icon Re: Need Help Urgently !!

Hi,

Thanks for the reply. What is MDAC controls and how to check whether the application host server has it yet installed?

24-12-2002 at 07:35 AM
| Quote Reply
JLRodgers
Level: Moderator

Registered: 04-04-2002
Posts: 1617
icon Re: Need Help Urgently !!

Common reply, but always with diffenent question types...

http://www.microsoft.com/data/

There's "An Updated version of Component Checker Now Available" that you can download and run on the server. It will tell you what version (if any) is installed. MDAC controls are also available there. Although if it is a server (Server OS [NT Server/Advanced Server]) and you're not the administrator; have the admin do the installation of the controls - certain versions can't be installed on some servers, and you don't want to crash it.

Oh, MDAC controls are data access DLL's (controls) for like SQL/Access (ADO/DAO).



[Edited by JLRodgers on 24-12-2002 at 01:47 AM GMT]

____________________________
Everywhere's Local (classifieds, job postings, & more for everycity in the world - user entered)

24-12-2002 at 07:45 AM
View Profile Send Email to User Show All Posts Visit Homepage | Quote Reply
AndreaVB Forum : Database : Need Help Urgently !!
Previous Topic (Compiling SQL results into 1 report)Next Topic (Display In DataGrid) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder