Solved

Service won't run program properly without being logged in

Posted on 2014-09-19
4
131 Views
Last Modified: 2014-09-20
Hello Experts,

I have a program that writes emails to a database.  It's a service that checks the inbox of a support system and then logs them into a database.  Simple, right?

Problem is that the service won't function properly unless I'm logged in!  It acts like its working, I can see the emails that are in the inbox go from the inbox to the logged in folder I made, but the service doesn't write to the database or anything..help!

It can read the database, but it won't do any insert/updates...what the heck?

Thanks,

Kevin


Open in new window

0
Comment
Question by:carmodyk
4 Comments
 
LVL 26

Assisted Solution

by:Shaun Kline
Shaun Kline earned 100 total points
ID: 40333261
Are you connecting to your database using Windows authentication or SQL Server authentication? If Windows, have you confirmed that the account used to run the service has the ability to modify data in the database/table?
0
 
LVL 34

Accepted Solution

by:
Paul MacDonald earned 300 total points
ID: 40333263
Yeah, this is a credentials issue - probably the credentials under which the service itself is running.  

You can either change the service credentials or change the connection string to include credentials to access the database.
0
 
LVL 14

Assisted Solution

by:frankhelk
frankhelk earned 100 total points
ID: 40333264
I think the service is configured to run as "interactive user", which won't work w/o a user logged in.

Open the service settings (settings -> adminitrative tools -> Services, right click on service, properties). In the identity tab (or security ?) change to "Run as user" and enter name/password.

The try again.
0
 
LVL 6

Author Closing Comment

by:carmodyk
ID: 40334591
Yes it was a credentials issue, but one of windows.  When it was installed the service had the ability to read but not to write.  I have since fixed that and all appears to be well.  

Thank you all
0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

696 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question