Re: Error in VC++ .NET Service



What user account does this service run under?
Are you sure that that account has enough privileges to execute all of the
interop dlls?
Try running the service under another loacl admin account.

"Ravi" <Ravi@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:4D34A807-8B9C-4D22-BBCE-D7724EA51303@xxxxxxxxxxxxxxxx
>I have a VC++ .NET service running in one of our application servers. This
> service calls a VB .NET executable (This users INTEROP dll's). The service
> was working fine till yesterday. Suddenly it started throwing errors. The
> error message is "Object reference not set to an instance of an object. ".
>
> The code is running fine if the executable is run directly (Running the
> .exe
> file) and fails if I configure this as a Windows service with the above
> error
> message. I tried removing the service, reinstalling the service and
> rebooted
> the server but no avail. Any pointers in this regard would be very
> helpful.
>
> The service is running in a Windows 2000 Advanced Server, which has only
> .NET framework installed in it (No Visual Studio). It also users Interop
> Dll's
> .


.



Relevant Pages

  • Re: Which to use?? DTSRun v/s DTS.Package v/s sp_start_job
    ... Use COM+ to abstract away from IWAM, and user a defined account perhaps- ... server will no allow sp_start_job. ... create a job and set a schedule to execute in now+1. ...
    (microsoft.public.sqlserver.dts)
  • Re: Execute Persmission denied on object sp_OACreate
    ... Perhaps the user's login is a sysadmin role member on the dev server? ... >>> I logged in as that user, tried to execute the DTS ... >> account is used during proc execution. ... If so what access and permissions. ...
    (microsoft.public.sqlserver.security)
  • Re: grant permission question
    ... returned until the command shell command completes. ... When you grant execute permissions to users, ... only members of the sysadmin fixed server ... SQL Server Agent proxy account, ...
    (microsoft.public.sqlserver.programming)
  • Re: DTS package executed successfully but no data
    ... Thank you Allan, I saw Server Logging, but no error msg, all i saw was ... > can execute it does not mean that the SQL Server Agent service account can ... > or the Proxy Account ...
    (microsoft.public.sqlserver.dts)
  • Re: how can i deploy crystal reports without MSI
    ... is there any way i could ftp the setup file to the server, and execute ... it through an aspx web page, using .Net and some COM interop? ...
    (microsoft.public.dotnet.framework.aspnet)