OK,
I found the problem
first of all,
you should remove the folowing lines from the file: 0.7.820.0.SqlDataProvider.sql
PRINT N'Adding Administrator to Super Users Role'
EXEC dbo.BugNet_Role_AddUserToRole 'Admin',1
GO
(at the end of the file)
since this is the same as:
//add the admin user to the Super Users role.
Role.AddUserToRole("Admin", 1);
which can be found in the InstallBugNET() function
in my case, i upgraded my installation,
and my superuser was not named "Admin", but lets say "Abcd"
In your upgrade code you also say:
//add the admin user to the super user role.
Roles.AddUserToRole("Admin", Globals.SuperUserRole);
Which gives en error, because there is no Admin user in my installation.
You should (if possible get the correct username of the admin-account) before updating the database.
I hope my explanation is clear enough,
if not, just ask for more details.