Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3605832
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T21:10:23+00:00 2026-05-18T21:10:23+00:00

I need your advice for the following C# code: EgarDDSEnt.IIVDDSEnt dds = null; //

  • 0

I need your advice for the following C# code:

EgarDDSEnt.IIVDDSEnt dds = null; // This line executes fine.
dds = new IVDDSEnt();  // This line fails with an exception ...
dds.Connect("username", "password"); // ... which makes this line fail too.

Here are the symptoms:

Windows Server 2008 R1:

  • Code fails when executed from a Windows service app.
  • Code works 100% when executed from a console app.

Windows 7:

  • Code works 100% when executed from a Windows service app.
  • Code works 100% when executed from a console app.

The class IVDDSEnt() is a COM object that is installed you install the “ivolatility SDK”.

Update:

  • When I execute “System.IO.Directory.GetCurrentDirectory()” from the console application, it returns “D:\MyDevDirectory\”
  • When I execute “System.IO.Directory.GetCurrentDirectory()” from the service application, it returns “C:\windows\system32\”.
  • The application is actually the same binary for both service and console (its a hybrid app that can run in console mode, or install itself as a service if you pass “-service” to it on the command line).

Update:

Added try/catch, and “e.GetBaseException” (defined as “Returns the exception which is the root cause of one or more subsequent exceptions”):

System.Runtime.InteropServices.COMException (0x80080005): Retrieving
the COM class factory for component with CLSID
{FA944FE7-AEB8-4B5B-8315-11D19B1F6264} failed due to the following error:
80080005 Server execution failed (Exception from HRESULT:
0x80080005 (CO_E_SERVER_EXEC_FAILURE)).
at PhiDataOnSchedule.ConsoleApplication.MyMain(Boolean dummyRun)

Update:

Still can’t fix the problem – the easiest way might be to just upgrade from Windows Server 2008 R1 to Windows Server 2008 R2 (if it works on Win7, and Windows Server 2008 R2 has a Win7 core, perhaps it’ll work around the underlying issue somehow?).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T21:10:23+00:00Added an answer on May 18, 2026 at 9:10 pm

    Perhaps I have to specify an account to run the service under?

    For a complete example of how to code this up, see:

    http://www.codeproject.com/KB/WPF/LtoE.aspx?artkw=LINQ%20to%20WCF#ShowIt

    Search for the text: “When the installer is run, it will allow you to enter the service login credentials to run under, using the following dialog box”:

    alt text

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

No related questions found

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.