473,325 Members | 2,792 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,325 software developers and data experts.

mshtml & web browser from dotnet service

NG
Hi All
This is a post further to my previous problem that I solved with the help of
my friends at csharp group.

I have a UI application that has a web-browser. When this application is
run with the URL as one of the command parameters, this application accesses
the web page in its web browser and parses the data of this web-site to get
the specific information this app is interested in. This application works
perfectly when run from a command prompt or a batch file. (I know I don't
have to use web browser control and mshtml is enough for most purposes.
But, in my case IT IS required.)

However, now I needed to invoke the same application from csharp windows
service. I made the service property to be able to interact with desktop.
The service perfectly opens the application and I can see the application
running on my desktop.

System.Diagnostics.Process p=new System.Diagnostics.Process();
p.StartInfo.FileName="notepad.exe"; // my app is run instead
bool x=p.Start();

Now the problem is the web-browser is not able to open the web page that I
am looking for. It always returns the error page saying:

Internet Explorer was unable to link to the web page you requested. The
page might be temporarily unavailable.......

I found on the net that this error occurs when the site has been requested
and then the request is cancelled immediately.

I am not sure but this has something to do with windows service security?
Is the service making the download to stop/cancel the web-request?

Can anyone please throw some light on the cause of the problem.

Any help is much appreciated.

Thanks & regards,
Nitesh
Dec 2 '05 #1
2 1878
"NG" <xgniteshATyahooDOTcom> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl
However, now I needed to invoke the same application from csharp
windows service.


A service running under Local System account (the default) does not have
any networking capabilities, for security reasons. Create a dedicated
user account for it, configure it to run under that account.
--
With best wishes,
Igor Tandetnik

With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925
Dec 2 '05 #2
NG
Thanks for your help Igor.
My program works perfectly when I run from a different user account.
Best Regards,
Nitesh Gupta
Dec 5 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Zürcher See | last post by:
I've wrote an application that use internet explorer to download some html page, to get the document I use the Microsoft.mshtml library. mshtml.IHTMLDocument3...
10
by: Sunny | last post by:
Hi all, dev. env.: VS.Net2003/C# I have a windows form application with web browser control. I need to capture the onsubmit event of the forms in the document in order to get the values and log...
7
by: Robert May | last post by:
I have an application that uses the Ax web browser object. When I call the IHTMLElement.click() method on an input button (<input type="submit"> or <input type="button">), the click fires...
1
by: Dean Hallman | last post by:
I need to ensure client machine has Microsoft.mshtml installed in the GAC. And if not, deploy it. My app is a Browser Helper Object and depends on mshtml. Initially, I thought I could take care...
4
by: Lars-Erik Aabech | last post by:
Hi! I've been walking in extacy since reading the article about test automation with IE in the latest MSDN mag. (http://msdn.microsoft.com/msdnmag/issues/05/10/TestRun/default.aspx) After a...
12
by: Brian Henry | last post by:
When you use the mshtml.dll reference in your project to show a browser control, the scroll bars are not standard looking.. they are pretty much flatish with a slight 3d appearence... is there any...
5
by: Atara | last post by:
I am trying to convert the following code to VB .Net, I still have some gaps (the lines that are marked with (*)) and also I need an ending condition for the while loop. any help would be...
5
by: miktro | last post by:
I have an VB.Net desktop application where I am hosting a WebBrowser. I need to interact with the events in the browser. I encountered the normal problem of, after adding events the normal click...
7
by: Mike Livenspargar | last post by:
We have an application converted from v1.1 Framework to v2.0. The executable references a class library which in turn has a web reference. The web reference 'URL Behavior' is set to dynamic. We...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.