title: Using VBScript GetObject in C#
body: <p>I am running a third party application which runs web pages within it. The third party app includes a dll which sits on the server. Basically I am trying to replace the current VB Script that is used with C# code.</p>
  
  <p>The following vbscript runs in a web page and includes a function that changes pages and works perfectly. </p>
  
  <pre><code>'VB Script
  Set AgentDisp = GetObject("","AgentDisp.AgentDispatcher")
  AgentDisp.ChangePage PageName, False
  </code></pre>
  
  <p>Now when I try the same in C# by adding a reference to this dll and running the following code on page load, nothing happens</p>
  
  <pre><code>// C#
  var a = new AgentDisp.AgentDispatcher();
  a.ChangePage("faq.aspx", false);
  </code></pre>
  
  <p>Is it something to do with the location or instance of the dll? </p>