473,406 Members | 2,707 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,406 software developers and data experts.

“Index not found” exception, but only on a domain

Hello,

(I posted about this a few weeks agao, but got no response. I've tried some
more stuff since then...)

I’ve written a Visual basic .NET program that need to create a new .DBF file
based upon two existing .DBF files. The program generates an “Index not
found” exception when I attempt to create the new file using the SQL- SELECT
… INTO command.
However, this problem exists ONLY when run on a computer that is a member of
a domain . The problem occurs on the domain when run both over a network
share or locally on the machine.
When run over a peer to peer network, the program always behaves as expected
and successfully completes the SQL command, and creates the file (even when
run across the network).
NOTE: domain vs. peer2peer is the most apparent thing. The domain computers
are a windows 2003 server and a windows 2000 pro. The peer2peer is a
windowsXP box.

I have tried using a recordset and adding records to that, but it fails to
create the recordset if the .dbf file does not yet exist. Creating the
recordset does not create the file, like the SELECT..INTO command does.

I am aware of the need to adjust .NET security trusts on the assembly, and
have already overcome that issue, grating it full trust.
I have insured that the issue is not a NTFS permission or Share permission
issue, by granting EVERYONE full access to the folder in which the program
runs and tries to create the file. I also ran the program as domain
administrator, just to make sure.

My guess it that the problem does not necessarily lie in the code because it
only happens on a domain. None the less, here is a code except: showing the
connection string and SQL command. All the Add_log_entry commands show that
the correct data is in use, and that the exception is “Index not found.”
Dim NETConn As OleDbConnection = New
OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0; " & _
"Data Source=.\\;" & _
"Extended Properties=""DBASE IV;"";")
NETConn.Open()
Dim myCommand As New OleDbCommand
myCommand.Connection = NETConn

some queries here that GET data from the connection... these work and setup
values for the variables used below

Dim create_string = "SELECT [CTtemp#DBF].*, [SYSPROF1#DBF].SYSCOMP AS cocode "
create_string += "INTO [" + Dest_File_Name + "#dbf] FROM [CTtemp#DBF],
[SYSPROF1#DBF] "
create_string += "WHERE ((([SYSPROF1#DBF].SYSCOMP)='" + CompanyCode +
"'));"

Add_log_Entry("Attempting to create Destination Table", MsgBoxStyle.OKOnly,
"Progress")
Add_log_Entry(create_string, MsgBoxStyle.OKOnly, "SQL Command")
myCommand.CommandText = create_string
Try
myCommand.ExecuteNonQuery()
Catch e2 As Exception
Add_log_Entry(e2.Message, vbOKOnly, "Exception")
Add_log_Entry("Error creating final table using Source file: " +
CompanyCode + TableName.Text + ".DBF", vbOKOnly, "Error")
GoTo Source_Loop_End
End Try

Aug 24 '05 #1
0 1662

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

Similar topics

0
by: stef | last post by:
Hi, I have a range partitioned (one partition = one month) table. On this table I have a local unique index and a local domain index (Oracle Text) on a CLOB column. I'm running Oracle...
1
by: Salvador Ponticelli | last post by:
In an ASP.NET Application I have an instance of a remoting object. After the instance was created, I saved it in a Session variable. When I try to use this instance with the Remoting Service down,...
1
by: Vinay | last post by:
Hi, Can anyone tell me how can I handle/catch exception thrown by remoting object on client machine? Can some one give me pointer? Actually I am connecting to two machines and one of them throws...
0
by: Oliver | last post by:
Hello, (I posted about this a few weeks agao, but got no response. I've tried some more stuff since then...) I’ve written a Visual basic .NET program that need to create a new .DBF file...
2
by: Martin v. Lwis | last post by:
I've been working on PEP 353 for some time now. Please comment, in particular if you are using 64-bit systems. Regards, Martin PEP: 353 Title: Using ssize_t as the index type Version:...
11
by: Santosh | last post by:
Dear all , i am writting following code. if(Page.IsPostBack==false) { try { BindSectionDropDownlist();
0
by: mike.varley1 | last post by:
Hi All We are getting the warning messages below several times a day in the app event logs on our Win2k3 server. Can anyone shed any light on the meaning\cause of the DC issue, especially: "This...
2
by: Jeff | last post by:
Hi I'm trying to achieve a scenario where I have c# files that are compiled dynamically, the assemblies are then loaded in a different AppDomain, I call a simple method from the object, and then...
2
by: antem | last post by:
I receive only members from domain global goup in wich my NT-Account is too. If domain global group belongs to a foreigner domain i get no members. Perhaps I will not be able cause I got not enaugh...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
Oralloy
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,...
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
agi2029
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 projectplanning, coding, testing,...

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.