Solved

Service won't run program properly without being logged in

Posted on 2014-09-19
4
126 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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…

773 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