Click here to Skip to main content
15,891,657 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: Unable to connect to SQL Server database Pin
Atif Shahbaz10-May-09 20:04
Atif Shahbaz10-May-09 20:04 
QuestionGetting WebBrowser to be as smart as IE Pin
sethpeck9-May-09 7:14
sethpeck9-May-09 7:14 
QuestionProblems about Using ActiveX Objects in ASP.NET Pin
lynn10078-May-09 20:57
lynn10078-May-09 20:57 
AnswerRe: Problems about Using ActiveX Objects in ASP.NET Pin
lynn10079-May-09 15:25
lynn10079-May-09 15:25 
Question.NET Runtime 2.0 Error Reporting Pin
Evan St. John7-May-09 6:49
Evan St. John7-May-09 6:49 
AnswerRe: .NET Runtime 2.0 Error Reporting Pin
led mike8-May-09 4:27
led mike8-May-09 4:27 
QuestionVB.NET Service find Window with the WIN32 API Function "FindWindow" Pin
kl_ko7-May-09 4:44
kl_ko7-May-09 4:44 
AnswerRe: VB.NET Service find Window with the WIN32 API Function "FindWindow" Pin
Dave Kreskowiak7-May-09 5:38
mveDave Kreskowiak7-May-09 5:38 
Bad news - services run under an entirely different desktop than the one the user sees. Screen savers have their own desktop, as well as the Ctrl-Alt-Del screen, and others...

Your service can't find the window because it doesn't exist on the same desktop as the service is using. To change this, you have to go into the Service Manager and change the LogOn type of your service to run as the Local System, then enable the checkbox that says something like "Allow service to interact with Desktop".

Though, services should NOT be interacting with the desktop anyway. What would your service do if noone is logged on???


A guide to posting questions on CodeProject[^]



Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic
     2006, 2007, 2008




AnswerRe: VB.NET Service find Window with the WIN32 API Function "FindWindow" Pin
kl_ko10-May-09 23:17
kl_ko10-May-09 23:17 
GeneralRe: VB.NET Service find Window with the WIN32 API Function "FindWindow" Pin
Dave Kreskowiak11-May-09 11:57
mveDave Kreskowiak11-May-09 11:57 
QuestionAsp.Net server code problem Pin
maria oni7-May-09 0:08
maria oni7-May-09 0:08 
QuestionMutex Releasing [modified] Pin
Tristan Rhodes6-May-09 23:11
Tristan Rhodes6-May-09 23:11 
QuestionRe: Mutex Releasing Pin
datenkabel6-May-09 23:39
datenkabel6-May-09 23:39 
AnswerRe: Mutex Releasing Pin
Tristan Rhodes7-May-09 0:14
Tristan Rhodes7-May-09 0:14 
QuestionSystem.Data.SqlserverCe dll version conflict. Pin
crazylad6-May-09 14:58
crazylad6-May-09 14:58 
AnswerRe: System.Data.SqlserverCe dll version conflict. Pin
Simon P Stevens8-May-09 4:37
Simon P Stevens8-May-09 4:37 
Questionilove u Pin
manoj mehra6-May-09 4:25
manoj mehra6-May-09 4:25 
QuestionApplication gives an error only if it's started at system startup Pin
Luis_codeProject6-May-09 0:43
Luis_codeProject6-May-09 0:43 
AnswerRe: Application gives an error only if it's started at system startup Pin
Giorgi Dalakishvili6-May-09 1:19
mentorGiorgi Dalakishvili6-May-09 1:19 
GeneralRe: Application gives an error only if it's started at system startup Pin
Luis_codeProject6-May-09 1:28
Luis_codeProject6-May-09 1:28 
GeneralRe: Application gives an error only if it's started at system startup Pin
Giorgi Dalakishvili6-May-09 4:09
mentorGiorgi Dalakishvili6-May-09 4:09 
GeneralRe: Application gives an error only if it's started at system startup Pin
Luis_codeProject6-May-09 4:37
Luis_codeProject6-May-09 4:37 
GeneralRe: Application gives an error only if it's started at system startup Pin
Giorgi Dalakishvili6-May-09 19:58
mentorGiorgi Dalakishvili6-May-09 19:58 
GeneralRe: Application gives an error only if it's started at system startup Pin
Luis_codeProject7-May-09 1:33
Luis_codeProject7-May-09 1:33 
GeneralRe: Application gives an error only if it's started at system startup Pin
Giorgi Dalakishvili7-May-09 2:28
mentorGiorgi Dalakishvili7-May-09 2:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.