Windows Services - COM

Ask a Question related to ASP.NET Security, Design and Development.

  1. #1

    Default Windows Services - COM

    I have a .net windows service which calls into a PowerBuilder COM object to
    format some data. The windows service does emailing, logging to text file,
    logging to eventlogs etc through system.diagnostics as well as calls web
    services.

    Everything works great when running my windows service under a domain\user
    account. However, when running under local system or local administrator it
    fails with when attempting to instanciate the COM object with...

    10:28:58 AM ####ERROR: Order #59293
    Failed-Reason:System.IO.FileNotFoundException: The specified module could not
    be found.

    I need to understand why this is failing because ideally i need to run under
    a local system account not a domain account.

    Please help...

    --
    Aaron W.

    ..NET developer

    --
    Aaron

    takbax Guest

  2. Similar Questions and Discussions

    1. Coldfusion services stop working when windows 2000hotfix patches are installed on the windows 2000 operatingsystem
      The following windows 2000 hotfix patches were installed on windows 2000 operating system - KB917537 KB917159 KB914388 Coldfusion service...
    2. Windows services in PERL
      Hi I am trying to create a win32 service using the module win32:deamon. I wrote a simple code and tried to get that running before I went to the...
    3. using windows services
      Hi, I have developed a vb.net assembly which I use in existing asp.net pages. I also want to execute it every night at 12. I am new to windows...
    4. Windows services
      I have a service running on my system and trying to access a file available on the server connected by VPN. It is giving access denied.
    5. Windows SharePoint Services (WSS)
      Hi all, I'm a bit new to WebServices. So i apologise in advance if this is a newbie question... - I've created a WebService locally that...
  3. #2

    Default Re: Windows Services - COM

    Try running the FusLogVw utility. This will tell you what module it could
    not find to load. In addition, handle the exception in the service and log
    the error. This should give you the information that you need to understand
    what is happening.


    --

    Chris Rolon

    "takbax" <takbax@discussions.microsoft.com> wrote in message
    news:3199D3FF-674E-45C9-BFC6-8C0F44F6A423@microsoft.com...
    > I have a .net windows service which calls into a PowerBuilder COM object
    to
    > format some data. The windows service does emailing, logging to text
    file,
    > logging to eventlogs etc through system.diagnostics as well as calls web
    > services.
    >
    > Everything works great when running my windows service under a domain\user
    > account. However, when running under local system or local administrator
    it
    > fails with when attempting to instanciate the COM object with...
    >
    > 10:28:58 AM ####ERROR: Order #59293
    > Failed-Reason:System.IO.FileNotFoundException: The specified module could
    not
    > be found.
    >
    > I need to understand why this is failing because ideally i need to run
    under
    > a local system account not a domain account.
    >
    > Please help...
    >
    > --
    > Aaron W.
    >
    > .NET developer
    >
    > --
    > Aaron
    >

    Chris Rolon Guest

  4. #3

    Default Re: Windows Services - COM

    I am unable to get fuslogvw to show me anything for my windows service while
    running as a service. I'll keep trying. However, in the mean time here it
    the specific error details

    {System.IO.FileNotFoundException}
    [System.IO.FileNotFoundException]: {System.IO.FileNotFoundException}
    HelpLink: Nothing
    InnerException: Nothing
    Message: "The specified module could not be found."
    Source: "mscorlib"
    StackTrace: " at System.RuntimeType.CreateInstanceImpl(Boolean
    publicOnly)
    at System.Activator.CreateInstance(Type type, Boolean nonPublic)
    at System.Activator.CreateInstance(Type type)
    at Tessitura.TicketFormatter.Engine.GetFormattedTicke t(DataSet ds) in
    C:\aWork\Projects\TessituraAPI_Version5.0\Tessitur aTicketFormatter\Engine.vb:line 82"
    TargetSite: {System.Reflection.RuntimeMethodInfo}

    Which occurs at the createinstance line of code...
    oType = Type.GetTypeFromProgID("PB90.n_ticketformat")
    oCOMTicket = Activator.CreateInstance(oType)

    PB90.n_ticketformat has been registered using regsvr32 and is not referenced
    in my vb.net class library. the class library is called from my windows
    service.

    Additional facts:
    *It only works when running under domain\user and does not use any network
    users.
    *fails under localSystem,localService,NetworkService,Admin
    *tried installed class library into the gac. no luck
    *succeeds running in debug mode but not when running as windows service
    attaching to process then debugging
    *vb.net class library takes in a dataset coverts it to an adodb recordset to
    pass to the powerbuild COM. Powerbuilder formats data, that's it. It then
    returns an adodb recordset and translates it back into a dataset.
    *the windows service using system.diagnostics, mail, and web services

    Thanks,

    "Chris Rolon" wrote:
    > Try running the FusLogVw utility. This will tell you what module it could
    > not find to load. In addition, handle the exception in the service and log
    > the error. This should give you the information that you need to understand
    > what is happening.
    >
    >
    > --
    >
    > Chris Rolon
    >
    > "takbax" <takbax@discussions.microsoft.com> wrote in message
    > news:3199D3FF-674E-45C9-BFC6-8C0F44F6A423@microsoft.com...
    > > I have a .net windows service which calls into a PowerBuilder COM object
    > to
    > > format some data. The windows service does emailing, logging to text
    > file,
    > > logging to eventlogs etc through system.diagnostics as well as calls web
    > > services.
    > >
    > > Everything works great when running my windows service under a domain\user
    > > account. However, when running under local system or local administrator
    > it
    > > fails with when attempting to instanciate the COM object with...
    > >
    > > 10:28:58 AM ####ERROR: Order #59293
    > > Failed-Reason:System.IO.FileNotFoundException: The specified module could
    > not
    > > be found.
    > >
    > > I need to understand why this is failing because ideally i need to run
    > under
    > > a local system account not a domain account.
    > >
    > > Please help...
    > >
    > > --
    > > Aaron W.
    > >
    > > .NET developer
    > >
    > > --
    > > Aaron
    > >
    >
    >
    >
    takbax Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139