473,386 Members | 1,693 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,386 software developers and data experts.

External table is not in the expected format

I think I will get MAD very soon. Its very weired problem I amfacing here. Let me explain.

I have two DBF files from which I want to export data in CSVformat. I created a desktop application and used followingconnectionstrings.

Provider=Microsoft.Jet.OLEDB.4.0; DataSource=D:\MJGross\DataBases;Extended Properties=dBase III;
And
Provider=vfpoledb.1;Data Source=D:\MJGross\DataBases;ExtendedProperties=dBA SE IV;Exclusive=false;Nulls=false

Both worked fine and I simply finished that application.

Now customer required me to create a web service which mayautomate this export. I used the same code to put in a thread ina WindowsService and tried over to my system. I usedMicrosoft.JET.OLEDB..... connection string on my system tocreate the service and it worked very nice to me. But when Isent that over to client, I found that though Connection wasopened, but when It tries to Fill data in DataTable, it throwserror:
External table is not in the expected format

I was weired, I thought its may be some problem due to connectionstring and I changed that to vfpoledb.1........ and I stunt thatit was not working on my system and even on the client system. Iagain checked on Simple desktop application and found that bothconnection string + same DBF file was working very correctly butwhen comes to Service, it throws error. Using vfpoledbconnection string, it denies to connect and usingMicrosoft.JET.OLEDB, it though connects but throws error saying"External table is not in the expected format".

I am too much frustrated by this behaviour. I am using VB .NET(VS .NET 2003).

Any help or idea will be highly appreciated.

Thanks,
--------------------------------
From: Sameers (theAngrycodeR)
http://www.theangrycoder.com

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>f8lV0fOTjEK4iGQJCP67Tg==</Id>
Nov 16 '05 #1
0 11138

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

Similar topics

4
by: mirth | last post by:
Hi all, I have a table in this format colname1 colname2 colname3 col1data1 col2data1 col3data1 col1data2 col2data2 col3data2 col1data3 col2data3 col3data3 col1data4 col2data4 col3data4
0
by: Meer | last post by:
Hi, I'm having problem to read *.DBF (DBase File) using ASP.NET. Below is my code, taken from one of forumer here.... Dim connection As OleDbConnection Dim command As OleDbCommand Dim reader As...
0
by: Learner | last post by:
Gurus, I have a C# .NET Web application that downloads a datagrid to an Excel sheet. But when I upload the same excel sheet to server again, if gives me this wiered message "External table is...
0
by: Ujval Shah | last post by:
Hi, I am facing a peculiar problem. My Client Requirement is to Export and Import Excel from and To DataSet for web Application using OWC. Now Problem is When i Export file using OWC .. File's...
5
by: althafexcel | last post by:
hi everyone Im trying to include an external js in my aspx page under the head tag, it doesn't load or it displays an object expected error whenver the function from the .js is called. Actually...
12
by: mantrid | last post by:
Hello Can anyone point me in the right direction for the way to read a text file a line at a time and separate the fields on that line and use them as data in an INSERT to add a record to a mysql...
1
by: Marty | last post by:
I need to catch exceptions thrown by programs started by the os.system function, as indicated by a non-zero return code (e.g. the mount utility). For example, if I get the following results in a...
0
debasisdas
by: debasisdas | last post by:
This thread contains some useful tips for using External tables. USING EXTERNAL TABLE ======================= 1.THE TABLE POINTS TO EXTERNAL FILE. IF DATA IS ALTERED IN THE EXTERNAL FILE,DATA...
2
by: smadadi | last post by:
When i am exporting the result of a query to an excel file it is comming up with the message "external table isn't in the expected format" It is happening occasionnally not everytime. I am using...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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:
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
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...

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.