title: C# WebServices Lists.GetCollection returns Status HTTP 404: Not Found on a subpage
body: <p><strong>UPDATE</strong>: 
  A little update when I try to get the collection from the following url:
  <strong>lista.Url = @"http://website/Page1/Page2/_vti_bin/Lists.asmx";</strong>
  I get the collection and I can see the lists.
  the remainder : <strong>WebReferenceTest/Lists/ListTest/</strong> has been created by my, i.e. the WebReferenceTest. Perhaps I messed up something with rights to that page, etc.
  Maybe this will shed some light on the problem.</p>
  
  <p>Hi, 
     I'm new to the Web Services, 
  I've been trying to do a simple application to get and add items to a specific list stored on Sharepoint server via AddWebReference. 
  I've been following several threads/howtos/articles on that matter but I've reached a point where I don't know if I'm doing something wrong, or the server has to have some specific settings.
  I'm using Visual Studio 2005.</p>
  
  <p>The code is as follows:</p>
  
  <pre><code>public partial class Form1 : Form
  {
      public Form1()
      {
          InitializeComponent();
      }
  
      private void button1_Click(object sender, EventArgs e)
      {
          try
          {
              listTest.Lists lista = new listTest.Lists();
              lista.Url = @"http://website/Page1/Page2/WebReferenceTest/Lists/ListTest/_vti_bin/Lists.asmx";
              lista.Credentials = System.Net.CredentialCache.DefaultCredentials;             
  
              System.Xml.XmlNode activeItemData = lista.GetListCollection();
  
              foreach (System.Xml.XmlNode listItem in activeItemData)
              { 
                 textBox1.AppendText(listItem.OuterXml + Environment.NewLine);
              }
          }
          catch (System.Web.Services.Protocols.SoapException E)
          {
              MessageBox.Show(E.Detail.InnerText);
          }
      }
  
  }
  </code></pre>
  
  <p>When I run this code as it is I'll get "HTTP 404: Not Found", but when I'll comment the changed URL reverting to the basic address then I get a collection of lists on the main page, or something like that.</p>
  
  <p>I can access that page in question in web browser, but in VS2005 I'll get the 404 error.</p>
  
  <p>So the question is is it me doing something awkward or the server requires additional configuration. I have no access to it, but I guess I can get it done by someone else.</p>
  
  <p>PS: The app.config looks like this:</p>
  
  <pre><code>    &lt;?xml version="1.0" encoding="utf-8" ?&gt;
  &lt;configuration&gt;
      &lt;configSections&gt;
          &lt;sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" &gt;
              &lt;section name="WindowsApplication2.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" /&gt;
          &lt;/sectionGroup&gt;
      &lt;/configSections&gt;
      &lt;applicationSettings&gt;
          &lt;WindowsApplication2.Properties.Settings&gt;
              &lt;setting name="WindowsApplication2_listTest_Lists" serializeAs="String"&gt;
                  &lt;value&gt;http://website/_vti_bin/lists.asmx&lt;/value&gt;
              &lt;/setting&gt;
          &lt;/WindowsApplication2.Properties.Settings&gt;
      &lt;/applicationSettings&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>Thank you for any input.
  Pawel</p>