Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
DotNet
acad.assignment.mngr
academic
adonet
aspnet
aspnet.announcements
aspnet.build.controls
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
clr
compactframework
component_services
datatools
distributed_apps
drawing
faqs
framework
framework.wmi
general
internationalization
interop
languages.csharp
languages.jscript
languages.vb
languages.vb.controls
languages.vb.data
languages.vb.upgrade
languages.vc
languages.vc.libraries
myservices
odbcnet
performance
remoting
scripting
sdk
security
setup
vjsharp
vsa
webservi.enhancements
webservices
windowsforms
windowsforms.controls
winforms.databinding
winforms.designtime
xml
  
 
date: Tue, 6 Jun 2006 23:11:02 -0700,    group: microsoft.public.dotnet.distributed_apps        back       


Problem in IE automation upon Deployment   
Dear Sir

I have a created a Web Service that uses ShDocVw.Dll and 
Microsoft.mshtml.dll for IE automation. For the development I am using VS 
2005 installed on Windows 2000 Professional System. In my application, I use 
IE instance to navigate to certain site. This application runs fine on the VS 
Development server but when I deploy it on Windows 2003 server, my IE 
instance is unable to navigate to the specified page. However if I specify 
some local HTML file on Hard Drive it is able to read it. I have written the 
following code for creating IE instance and navigating.

 

          object Zero = 0;

        object Enmp = "";

        ie = new SHDocVw.InternetExplorer();

        ie.Navigate("http://www.website.com/default.htm", ref Zero, ref 
Enmp, ref Enmp, ref Enmp);

        //ie.Navigate(@"G:\Settings\LOG\23.htm", ref Zero, ref Enmp, ref 
Enmp, ref Enmp);

        while (ie.ReadyState != SHDocVw.tagREADYSTATE.READYSTATE_COMPLETE) { 
   }

 

After running this code on Server I am getting "Open the www.website.com 
home page, and then look for links to the information you want. If you typed 
the page address in the Address bar, make sure that it is spelled correctly. 
If you still cannot open the page, click the Internet Explorer Search button 
to look for similar sites" as the content of IE HTML document.

 I have tried it several times by configuring IE setting and also by 
reducing the security settings and giving permissions to IIS worker process, 
but this error still persits.

I think ,this seems to be configuration issue on the Windows 2003 server or 
could be some mistake in coding. If you could suggest anything that would be 
a great help to me.

With Thanks and Regards

Nitin Mittal
date: Tue, 6 Jun 2006 23:11:02 -0700   author:   Nitin Mittal

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us