473,547 Members | 2,342 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.Diagnost ics.Process p=new System.Diagnost ics.Process();
p.StartInfo.Fil eName="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 1889
"NG" <xgniteshATyaho oDOTcom> wrote in message
news:%2******** ********@TK2MSF TNGP09.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
11321
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 Document=(mshtml.IHTMLDocument3)this.WebBrowser.Document; This program work fine under windows xp, but under windows 2000 i gives me the following error: File or assembly name...
10
7996
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 them. I have tried this: 1.
7
4649
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 appropriately, if I'm running it from a windows forms based application. However, when I run the EXACT same code under a windows service, either as a...
1
7749
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 of deploying mshtml within my install ..msi (VS.NET setup/deploy project). But if I simply add mshtml to the GAC from my install, the install...
4
3283
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 while, I had to find an issue I couldn't solve. (Of course) If an ASP.NET page uses the smartnav option, the document you get from IE only contains...
12
1768
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 way to get them to resemble normal looking scroll bars? thanks
5
10884
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 appreciated. Thanks. Atara. ------------------------- Original code:
5
4362
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 on the browser didn't work (in particular you can't enter text into textareas). I found the Microsoft KB article 311284 - "How to handle document...
7
22478
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 added an entry to the executable's .exe.config file to specify the URL, and under the 1.1 framework this worked well. Unfortunately, this is not...
0
7507
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7435
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
1
7461
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7794
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5080
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3492
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
1922
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1046
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
747
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.