|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Problem in IE automation upon DeploymentI 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 |
|||||||||||||||||||||||