Dataset update, foreign key violation (but only in ASP.NET?)
===

I'm having trouble inserting related rows into my database.  When I insert new objects into the database in a ASP.NET application, I get a foreign key violation error, whereas in a console application, I do not.

Here are the steps to reproduce the problem:

1. Create and run the following T-SQL script on a new database:

        create table dbo.[Groups] (
            GroupId int identity primary key,
            Name nvarchar(64) not null
        )
    
        create table dbo.[Objects] (
            ObjectId int identity primary key,
            GroupId int not null foreign key references [Groups] on delete cascade,
            Name nvarchar(64) not null
        )

2. Setup a C# console application named "ConsoleProgram".
3. Add a new DataSet named "dsObjects" to the project.
4. Drag tables "Groups" and "Objects" from the server explorer into the designer.
5. Edit the relation between the two tables and set the relation to "both relation and foreign key constraint" and update rule to "Cascade".
6. Insert the following code into "Main":

        // (assuming appropriate using statement for dsObjectsTableAdapters)
        var ds = new dsObjects();
        var mgr = new dsObjectsTableAdapters.TableAdapterManager {
            GroupsTableAdapter = new GroupsTableAdapter(),
            ObjectsTableAdapter = new ObjectsTableAdapter()
        };            
        mgr.GroupsTableAdapter.Fill( ds.Groups );
        mgr.ObjectsTableAdapter.Fill( ds.Objects );

        var row = ds.Groups.AddGroupsRow( "Fruits" );
        ds.Objects.AddObjectsRow( row, "Apple" );
        ds.Objects.AddObjectsRow( row, "Banana" );
        ds.Objects.AddObjectsRow( row, "Orange" );

        mgr.UpdateAll( ds );

7. Run program and verify the new rows were inserted into the respective tables:

        GroupId     Name
        ----------- -------
        1           Fruits

        (1 row(s) affected)

        ObjectId    GroupId     Name
        ----------- ----------- -------
        1           1           Apple
        2           1           Banana
        3           1           Orange

        (3 row(s) affected)

8. Delete the newly created data.
9. Close the solution.
10. Create a new ASP.NET Web Application.
11. Repeat steps 3-5.
12. Insert the code in step 6 into the Page_Load function of Default.aspx.
13. Run the program.
14. Note the exception about the foreign key violation (if any).
15. Run the console program again and note the data has been created successfully.
16. Recreate the database and run the ASP.NET application again and note the same exception.

I have tried updating the tables sequentially over using the UpdateAll method, with the same results in both projects.

I am at a complete loss as to why this would work in a ConsoleApplication, but not an ASP.NET application.  Any ideas?