title: My asmx webservice works locally but not when deployed on remote IIS 7
body: <p>I have developped an asmx webservice with visual studio and I deploy on IIS 7 which has 3.5 Framework by copying all the files.</p>
  
  <p>When testing it says</p>
  
  <blockquote>
    <p>Could not load file or assembly
    'System.Web.Extensions,
    Version=1.0.61025.0, Culture=neutral,
    PublicKeyToken=31bf3856ad364e35' or
    one of its dependencies. The system
    cannot find the file specified.</p>
  </blockquote>
  
  <p>I don't use [System.Web.Script.Services.ScriptService] so I don't understand why it tries to load System.Web.Extensions. </p>
  
  <p>So I change in Visual Studio from .NET 2 to 3.5 but got another error:</p>
  
  <blockquote>
    <p>Could not load file or assembly
    'WebServiceTest' or one of its
    dependencies. An attempt was made to
    load a program with an incorrect
    format.</p>
  </blockquote>
  
  <p>How to fix this ?</p>
  
  <p>Note: I'm not using any other assembly/lib I'm just learning webservice so it's very simple: I create a webservice Test.asmx with one method which uses one class Test.cs within same namespace WebServiceTest. This works locally.</p>
  
  <p>Finally I have started from scratch again now it works, I think I have mismatched by renaming namespace, class etc.</p>