none
Automating HttpWatch using Asp.Net

    Question

  • Hello,

    Requirement is to open an IE browser window with the help of Httpwatch.Plugin object, when I run code through visual studio everything works fine but when am publishing my site through IIS, plugin object is unable to open an IE instance.

    here is some sample code

    namespace Test
    {
      public partial class TestWebForm : System.Web.UI.Page
      {
        static string rootPath = @"C:\result";
        string folderName =    System.IO.Path.Combine(rootPath,"Test");
        string uplodedFile;
            
       protected void Page_Load(object sender, EventArgs e)
       {      }
       protected void Button1_Click(object sender, EventArgs e)
       {
         string url = TextBox1.Text;
         HttpWatch.Controller controller = new HttpWatch.Controller();
         HttpWatch.Plugin plugin= controller.IE.New(); // this fails and unable to open new IE window
         plugin.Record();
         plugin.GotoURL(url);
         controller.WaitEx(plugin, -1, true, false, 5);

         Directory.CreateDirectory(folderName);
         uplodedFile = System.IO.Path.Combine(folderName, "Myhar.har");
         plugin.Log.ExportHAR(uplodedFile);           
        }
       }
    }

    Note – I have checked Manage add-on's and browsing option, HttpWatch is enabled and thirdparty tools option is checked.

    Details

    OS - windowz 7(64 bit)

    IIS 7

    Visual studio 2013

    laguage - Asp.NET and C# for server side.

    Let me know if any one has any solution.

    Thursday, September 29, 2016 9:08 AM

Answers

  • They'll help you over here in microsoft official ASP.Net forums.

    http://forums.asp.net/37.aspx/1?C+

     

     

     



    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows Server] Datacenter Management

    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees, and confers no rights.

    Thursday, September 29, 2016 12:26 PM
    Moderator