Click here to Skip to main content
15,917,991 members
Home / Discussions / C#
   

C#

 
GeneralRe: Scroll Event of the Panel Pin
Torsch27-Apr-03 17:00
Torsch27-Apr-03 17:00 
GeneralRe: Scroll Event of the Panel Pin
J. Dunlap27-Apr-03 17:48
J. Dunlap27-Apr-03 17:48 
GeneralRe: Scroll Event of the Panel Pin
Torsch28-Apr-03 2:54
Torsch28-Apr-03 2:54 
GeneralHook for Title and MinBox,.. Pin
Bahman Salehi26-Apr-03 3:09
Bahman Salehi26-Apr-03 3:09 
GeneralRe: Hook for Title and MinBox,.. Pin
Delegate28-Apr-03 6:17
Delegate28-Apr-03 6:17 
GeneralListView that supports Data Binding Pin
jwb7725-Apr-03 17:03
jwb7725-Apr-03 17:03 
GeneralRe: ListView that supports Data Binding Pin
Stephane Rodriguez.26-Apr-03 0:15
Stephane Rodriguez.26-Apr-03 0:15 
GeneralWebService problems. Pin
Tim Kingsmill25-Apr-03 15:38
Tim Kingsmill25-Apr-03 15:38 
Hi,
I have written code that executes within a Windows.Forms application but fails when the code is run within a WebService.

I add a reference to the SHDocVw.dll windows library.

The common code is as follows:

  System.Object nullObject = 0;<br />
   System.Object nullObjStr = "";<br />
   string url = @"https://www.123456789.com";<br />
<br />
   InternetExplorer ie = new InternetExplorerClass();<br />
<br />
  ie.Navigate(url, ref nullObject, ref nullObjStr, ref nullObjStr, ref  nullObjStr);<br />
<br />
<br />
  while( ie.ReadyState != tagREADYSTATE.READYSTATE_COMPLETE )<br />
  {<br />
    System.Threading.Thread.Sleep(1000);<br />
    count++;<br />
    if (count > 30)<br />
    {<br />
	return null;<br />
    }<br />
  }<br />
<br />
  return (ie.Document as IHTMLDocument2).body.outerText;


The code runs fine in the windows application but raises this exception in a WebService

System.Runtime.InteropServices.COMException (0x800706BF): The remote procedure call failed and did not execute.<br />
   at SHDocVw.InternetExplorerClass.get_ReadyState()


Does anyone have any ideas about this problem?
GeneralRe: WebService problems. Pin
David Stone25-Apr-03 17:08
sitebuilderDavid Stone25-Apr-03 17:08 
GeneralRe: WebService problems. Pin
Tim Kingsmill25-Apr-03 18:11
Tim Kingsmill25-Apr-03 18:11 
GeneralRe: WebService problems. Pin
David Stone25-Apr-03 21:11
sitebuilderDavid Stone25-Apr-03 21:11 
GeneralRe: WebService problems. Pin
Tim Kingsmill26-Apr-03 2:50
Tim Kingsmill26-Apr-03 2:50 
GeneralClass hierarchy visualization tool Pin
Kant25-Apr-03 11:08
Kant25-Apr-03 11:08 
GeneralRe: Class hierarchy visualization tool Pin
leppie25-Apr-03 11:35
leppie25-Apr-03 11:35 
GeneralRe: Class hierarchy visualization tool Pin
David Stone25-Apr-03 13:26
sitebuilderDavid Stone25-Apr-03 13:26 
GeneralRe: Class hierarchy visualization tool Pin
Kant26-Apr-03 4:49
Kant26-Apr-03 4:49 
GeneralRe: Class hierarchy visualization tool Pin
leppie26-Apr-03 5:23
leppie26-Apr-03 5:23 
GeneralRe: Class hierarchy visualization tool Pin
Kant26-Apr-03 5:56
Kant26-Apr-03 5:56 
GeneralRe: Class hierarchy visualization tool Pin
leppie26-Apr-03 11:44
leppie26-Apr-03 11:44 
GeneralRe: Class hierarchy visualization tool Pin
leppie28-Apr-03 14:39
leppie28-Apr-03 14:39 
GeneralRe: Class hierarchy visualization tool Pin
J. Dunlap26-Apr-03 10:08
J. Dunlap26-Apr-03 10:08 
GeneralRe: Class hierarchy visualization tool Pin
Kant29-Apr-03 7:18
Kant29-Apr-03 7:18 
GeneralRe: Class hierarchy visualization tool Pin
Meysam Mahfouzi27-Apr-03 17:40
Meysam Mahfouzi27-Apr-03 17:40 
GeneralRe: Class hierarchy visualization tool Pin
Kant29-Apr-03 6:55
Kant29-Apr-03 6:55 
GeneralUnderstanding application level variables and functions compared to C++ Pin
dazinith25-Apr-03 10:02
dazinith25-Apr-03 10:02 

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.