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