Click here to Skip to main content
15,898,628 members
Home / Discussions / C#
   

C#

 
GeneralRe: Bringing up a Web Browser (beginner) Pin
Daniel Turini17-Dec-02 23:49
Daniel Turini17-Dec-02 23:49 
GeneralRe: Bringing up a Web Browser (beginner) Pin
Adrian Hall18-Dec-02 5:53
Adrian Hall18-Dec-02 5:53 
Generalservice Pin
imran_rafique17-Dec-02 11:07
imran_rafique17-Dec-02 11:07 
GeneralRe: service Pin
SimonS17-Dec-02 19:04
SimonS17-Dec-02 19:04 
GeneralRe: service Pin
imran_rafique17-Dec-02 21:41
imran_rafique17-Dec-02 21:41 
GeneralRe: service Pin
Rein Hillmann19-Dec-02 21:16
Rein Hillmann19-Dec-02 21:16 
GeneralRe: service Pin
imran_rafique20-Dec-02 0:19
imran_rafique20-Dec-02 0:19 
GeneralRe: service Pin
Rein Hillmann20-Dec-02 6:00
Rein Hillmann20-Dec-02 6:00 
OK, you have two problems here:

1) Services running under a user account can not interact with the desktop since this can lead to elevation of privilege. So to interact with the desktop, the service needs to run as the local system account.
2) The local system account does not have access to any network resources and that's why you're getting the error.

It's a tough call on how to fix this. The easiest way would be to remove any interaction with the desktop from the service. Put the desktop code into a seperate application that is launched by the user that is logged in. Have that application communicate with the service somehow to let the service know what it should do.

An example of this is an AntiVirus application. The service is seperate from the application used to control the service. They are actually two seperate .exe files. The controlling application sets some registry settings (for example) which the service polls.
QuestionDataGrid Disable Button or Cancel ShowParentDetailsButtonClick Event? Pin
RichB17-Dec-02 8:14
RichB17-Dec-02 8:14 
GeneralRegular Expressions Pin
mikasa17-Dec-02 6:35
mikasa17-Dec-02 6:35 
GeneralRe: Regular Expressions Pin
Richard Deeming17-Dec-02 6:48
mveRichard Deeming17-Dec-02 6:48 
GeneralRe: Regular Expressions Pin
Arun Bhalla17-Dec-02 7:16
Arun Bhalla17-Dec-02 7:16 
GeneralPicture from Excel Pin
mvmeijer17-Dec-02 4:35
mvmeijer17-Dec-02 4:35 
GeneralRe: Picture from Excel Pin
Stephane Rodriguez.17-Dec-02 5:03
Stephane Rodriguez.17-Dec-02 5:03 
GeneralRe: Picture from Excel Pin
mvmeijer17-Dec-02 5:20
mvmeijer17-Dec-02 5:20 
GeneralRe: Picture from Excel Pin
Stephane Rodriguez.17-Dec-02 19:07
Stephane Rodriguez.17-Dec-02 19:07 
GeneralSolved! Pin
mvmeijer18-Dec-02 2:56
mvmeijer18-Dec-02 2:56 
GeneralRe: Solved! Pin
Stephane Rodriguez.18-Dec-02 21:49
Stephane Rodriguez.18-Dec-02 21:49 
Questionvirtual list? Pin
User 988517-Dec-02 3:36
User 988517-Dec-02 3:36 
AnswerRe: virtual list? Pin
leppie17-Dec-02 6:07
leppie17-Dec-02 6:07 
GeneralRe: virtual list? Pin
User 988517-Dec-02 6:16
User 988517-Dec-02 6:16 
GeneralRe: virtual list? Pin
leppie17-Dec-02 6:37
leppie17-Dec-02 6:37 
GeneralRe: virtual list? Pin
User 988517-Dec-02 7:00
User 988517-Dec-02 7:00 
GeneralRe: virtual list? Pin
leppie17-Dec-02 7:09
leppie17-Dec-02 7:09 
GeneralSystem.TypeInitializationException error Pin
$iva16-Dec-02 19:18
$iva16-Dec-02 19:18 

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.