Re: Windows 2003 64bit break DAO access?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Hello, ydbn!

Change target processor, in the VS these settings are under following path

Project->Properties->Build->Platform Target. Select x32

HTH

--
With best regards, Vadym Stetsiak.
Blog: http://vadmyst.blogspot.com

You wrote on Thu, 6 Sep 2007 10:54:04 -0700:

y> I have a C# program using DAO:

y> DAO.DBEngine dbEngine = new DAO.DBEngine();
y> DAO.Workspace workspace = dbEngine.Workspaces[0];
y> DAO.Database db = workspace.OpenDatabase(excelFileName, false, true,
y> "Excel
y> 8.0")

y> I works well until we upgrade Windows Server 2003 to 64 bit. I got
y> the following error:

y> Unhandled Exception: System.Runtime.InteropServices.COMException
y> (0x80040154): Retrieving the COM class factory for component with
y> CLSID {00000100-0000-0010-8000-00AA006D2EA4} failed due to the
y> following error:
y> 80040154.
y> at ExcelTabs.Program.Main(String[] args)

y> How to force the program run in 32 bit mode?



.



Relevant Pages

  • Re: Native event handle
    ... With best regards, Vadym Stetsiak. ... Blog: http://vadmyst.blogspot.com ... J>>> I am using v1.1 .NET framework. ...
    (microsoft.public.dotnet.framework)
  • Re: Error: Invalid token for impersonation - it cannot be duplicat
    ... to do this as far as I remember special privileges are needed. ... With best regards, Vadym Stetsiak. ... Blog: http://vadmyst.blogspot.com ...
    (microsoft.public.dotnet.framework)
  • Re: .NET Runtime 2.0 Error - in the Application Event Log
    ... With best regards, Vadym Stetsiak. ... Blog: http://vadmyst.blogspot.com ... S> Do you have a VB example that I can use in my Windows Service ...
    (microsoft.public.dotnet.framework)
  • Re: .NET Runtime 2.0 Error - in the Application Event Log
    ... With best regards, Vadym Stetsiak. ... S> Do you have a VB example that I can use in my Windows Service ... >> With best regards, Vadym Stetsiak. ... >> Blog: http://vadmyst.blogspot.com ...
    (microsoft.public.dotnet.framework)
  • Re: Group Policy
    ... Check that the IE version is supported, shown in the settings description. ... Please post the path to the GPO setting. ... Best regards ... took affect on the server and not the client. ...
    (microsoft.public.windows.server.setup)