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.