CWebBrowser2 Navigate problem when called from Service on Server 2003

S

ScottLR

I have an application that opens an html page via the Web Browser control. I
have created a user "X" and given them administrative privileges on Server
2003. I log on as User X via control-alt-delete, the application is able to
open the html page using the Navigate call. Next, I created a service to
call the application. I specify that the same user X be the logon for the
service. However, when called from the service, the call to Navigate does
not succeed. While this works on Windows 2000, it fails on Server 2003. What
settting needs to be adjusted on Server 2003?
 
K

Kevin Yu [MSFT]

Hi Scott,

First of all, I would like to confirm my understanding of your issue. From
your description, I understand that you're composing a windows service that
needs to navigate a Web Browser control to a certain html page. If there is
any misunderstanding, please feel free to let me know.

As far as I can see, this is not the permission problem. Because a windows
server does not interact with the user interface, the call will not be able
to affect the user interface. So I don't think it is a good idea to let a
windows service control the user interface.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
 
S

ScottLR

Kevin,

While this may not be a good idea, this works on Windows 2000 but it does
not succeed on some 2003 servers. It does succeed on other systems. We are
trying to determine which configuration may be causing the issue. Any
pointers would be appreciated.
 
K

Kevin Yu [MSFT]

Hi Scott,

If the service is started with Local System account in the Log On tab, you
can check the Allow service to interact with the desktop checkbox to enable
this function. With other accounts, this is not allowed.

However, IMO, this is strongly NOT suggested to use a windows service to
interacte with the desktop.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,141
Messages
2,570,817
Members
47,362
Latest member
ChandaWagn

Latest Threads

Top