I have a web service that works in IIS 6 but does not work in IIS 7. To test whether web services work at all, I made a simple web service in my ASMX file, as shown:

```
<%@ WebService Language='c#' Class="DEMOAddNumbers" %>
using System;
using System.Web.Services;
public class DEMOAddNumbers : WebService
{
    [WebMethod]
    public int AddThis(int x, int y)
    {
        int mySum;
        mySum = x + y;
        return mySum;
    }
}

```

This web service works, but when I use CodeBehind and put the code in a DEMOAddNumbers.CS file, it says, 

Could not create type 'DEMOAddNumbers'

I have tried various ways to reference DEMOAddNumbers.cs, such as:

```
<%@ WebService Language='c#' Class="DEMOAddNumbers" CodeBehind='DEMOAddNumbers.cs' %>

<%@ WebService Language='c#' Class="DEMOAddNumbers" CodeBehind='~/DEMOAddNumbers.cs' %>

```

Put it in an App\_Code directory and then:

```
<%@ WebService Language='c#' Class="DEMOAddNumbers" CodeBehind='~/App_Code/DEMOAddNumbers.cs' %>

```

Still same error message. I'm not using Visual Studio, just straight code. Any suggestions?

Thanks

Jim