title: 'System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
body: <p>I want to access root url of a Web application from a Windows forms Application.</p>
  
  <pre><code>string rooturl = Billing_XML_WebTracking.WebForm1.RootUrl;
  string url = rooturl + "/WebForm1.aspx";
  webBrowser1.Navigate(url);
  </code></pre>
  
  <p>So I have added the below code to Web.config of the Web Application :</p>
  
  <pre><code>&lt;assemblies&gt;
          &lt;add assembly="System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/&gt;
  &lt;/assemblies&gt;
  </code></pre>
  
  <p>And the final code of Web.config file is</p>
  
  <pre><code>&lt;configuration&gt;
    &lt;system.web&gt;
      &lt;compilation debug="true" targetFramework="4.0"&gt;
        &lt;assemblies&gt;
          &lt;add assembly="System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/&gt;
        &lt;/assemblies&gt;
      &lt;/compilation&gt;
      &lt;pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID"/&gt;
    &lt;/system.web&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>But while building the solution, it is giving below error
  The type 'System.Web.UI.Page' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.</p>
  
  <p>Please help me out.Thanks</p>