Windows Service Errors

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Nathan Kovac

    Windows Service Errors

    I am stumped once again. Perhaps Nicholas or someone will be able to help
    me solve this issue.

    For background you can see my earlier post about timers and windows
    servcice. That issue was resolved.
    I am creating a windows service, I got the application to work using a
    windows form for startup and am now trying to make it work as a windows
    service.

    I am getting the following below after I start the windows service. It
    appears to happen every time I these objects are called based on a timer. I
    can see the errors in the debug window when I connect to the service
    process. These dll's are all class libraries. The ScriptingMethod s.dll is
    a class library which contains functions that hit an SQL database. The
    other 2 are used to allow me to run csharp saved in an sql table on the sql
    database at run time. All the necessary dll files are in the installation
    folder.

    Once again I don't know why this works with a windows form but not in a
    windows service. Any help is appreciated. I don't want to give too much
    unimportant information if it isn't necessary, please let me know if there
    is some other information you need.

    'DatabaseManage r.DataComponent ', 'Error', '3 Errors:
    Line: 0 - Metadata file 'ScriptingMetho ds.dll' could not be found
    Line: 0 - Metadata file 'RemoteLoader.d ll' could not be found
    Line: 0 - Metadata file 'wwScripting.dl l' could not be found'

    Earlier it was erroring because I was using timers part of
    System.Windows. Forms following is a list of what I have loaded in
    wwscripting.dll .

    using System;
    using System.IO;
    using System.Text;
    //using System.Collecti ons.Specialized ;
    //using System.Collecti ons;
    using Microsoft.CShar p;
    using Microsoft.Visua lBasic;
    using System.Reflecti on;
    using System.Runtime. Remoting;
    using System.CodeDom. Compiler;

    Thanks,
    Nathan


Working...