Click here to Skip to main content
15,889,216 members
Home / Discussions / C#
   

C#

 
AnswerRe: DisplayAttribute.Order in Derived class Pin
Eddy Vluggen28-Nov-14 4:56
professionalEddy Vluggen28-Nov-14 4:56 
GeneralRe: DisplayAttribute.Order in Derived class Pin
Gilbert Consellado28-Nov-14 6:01
professionalGilbert Consellado28-Nov-14 6:01 
GeneralRe: DisplayAttribute.Order in Derived class Pin
Eddy Vluggen28-Nov-14 7:51
professionalEddy Vluggen28-Nov-14 7:51 
GeneralRe: DisplayAttribute.Order in Derived class Pin
Gilbert Consellado28-Nov-14 12:26
professionalGilbert Consellado28-Nov-14 12:26 
QuestionConnection string to read an excel file Pin
Member 941402927-Nov-14 6:31
Member 941402927-Nov-14 6:31 
AnswerRe: Connection string to read an excel file Pin
PIEBALDconsult27-Nov-14 6:36
mvePIEBALDconsult27-Nov-14 6:36 
GeneralRe: Connection string to read an excel file Pin
Member 941402927-Nov-14 6:54
Member 941402927-Nov-14 6:54 
AnswerRe: Connection string to read an excel file Pin
Dave Kreskowiak27-Nov-14 6:37
mveDave Kreskowiak27-Nov-14 6:37 
Member 9414029 wrote:
32-bit MS Office and my file reader app is targeting .NET framework 4.5 and platform target is ANY CPU.


There's your problem. The Jet driver is 32-bit ONLY. There is no 64-version of it. Since your code is compiled to target AnyCPU and you're running it on 64-bit Windows, it's running as a 64-bit application.

Since you cannot combine 32- and 64-bit code in the same process, your 64-bit application cannot use a 32-bit Jet driver.

Go into your project properties and force the Target Platform to x86 and your code will work just fine.


[EDIT]
The other poster is correct. Use the ACE driver instead. Jet isn't supported any more. The ACE driver can be had in 32- and 64-bit versions.
A guide to posting questions on CodeProject

Click this: Asking questions is a skill.
Seriously, do it.

Dave Kreskowiak

GeneralRe: Connection string to read an excel file Pin
Member 941402927-Nov-14 6:55
Member 941402927-Nov-14 6:55 
Questionzooming Pin
Member 1038315926-Nov-14 20:46
Member 1038315926-Nov-14 20:46 
AnswerRe: zooming Pin
Pete O'Hanlon26-Nov-14 23:29
mvePete O'Hanlon26-Nov-14 23:29 
GeneralRe: zooming Pin
Member 1038315928-Nov-14 8:39
Member 1038315928-Nov-14 8:39 
GeneralRe: zooming Pin
Eddy Vluggen28-Nov-14 9:19
professionalEddy Vluggen28-Nov-14 9:19 
AnswerRe: zooming Pin
V.27-Nov-14 1:55
professionalV.27-Nov-14 1:55 
QuestionRemove Dynamically Created Controls Pin
Django_Untaken26-Nov-14 1:58
Django_Untaken26-Nov-14 1:58 
AnswerRe: Remove Dynamically Created Controls Pin
OriginalGriff26-Nov-14 2:38
mveOriginalGriff26-Nov-14 2:38 
AnswerRe: Remove Dynamically Created Controls Pin
BillWoodruff26-Nov-14 9:58
professionalBillWoodruff26-Nov-14 9:58 
QuestionImage source BitmapImage update problem Pin
massisoda25-Nov-14 22:40
massisoda25-Nov-14 22:40 
AnswerRe: Image source BitmapImage update problem Pin
M.Scheeren1-Dec-14 22:48
professionalM.Scheeren1-Dec-14 22:48 
Questionhow to retrieve only date from datetime from database Pin
Member 1126447925-Nov-14 18:54
Member 1126447925-Nov-14 18:54 
AnswerRe: how to retrieve only date from datetime from database Pin
Pete O'Hanlon25-Nov-14 19:20
mvePete O'Hanlon25-Nov-14 19:20 
SuggestionRe: how to retrieve only date from datetime from database Pin
Richard Deeming26-Nov-14 1:37
mveRichard Deeming26-Nov-14 1:37 
QuestionWindows mobile App with VS2013 C# Pin
Member 1068390225-Nov-14 8:22
Member 1068390225-Nov-14 8:22 
AnswerRe: Windows mobile App with VS2013 C# Pin
Richard MacCutchan25-Nov-14 22:24
mveRichard MacCutchan25-Nov-14 22:24 
GeneralRe: Windows mobile App with VS2013 C# Pin
Member 1068390226-Nov-14 9:58
Member 1068390226-Nov-14 9:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.