Ok, the upgrade instructions now say that (1) is required, which is good, as that was missing before so that could have been my 1st problem. So I started once more from scratch, and followed the instuctions precisely again. This time... I get the same error. So I'm going to have to go into that InstallCommon.sql script to see if I can find what it's trying to do.
I assume these scripts are being run against the BugNet databaase: there is one common database used for roles, membership and defects. I'll open the thing up and see if I can run the scripts by hand - I may find out why it's barfing that way as the error below isn't much use.
Ok, now I see the aspnet membership stuff in there, ok, so it's all here.
As below, I think this could be a permissions issue - my SQL Server 2008 database is running on Rackspace cloud.
Is this what's causing my problem though - it doesn't look anything like the BugNet error (bottom).
No, that's not it - I backed up the database, shifted it to a test machine, restored it there to a clean instance, then pointed the connexion string at that, and wham... same error from the install and same error from installcommon.sql. So why is
I'm assuming there's no way I can just export the database contents as a flat file, then put in a completely new install, then import again from that flat file? There are hundreds of entries so it will take me many weeks to type them in (on the other hand, it's taking a while trying to make it work).
-- Run manually from MS SQL SMS
---------------------------------------
Starting execution of InstallCommon.SQL
---------------------------------------
(197 row(s) affected)
Cannot grant, deny, or revoke permissions to sa, dbo, entity owner, information_schema, sys, or yourself.
Cannot grant, deny, or revoke permissions to sa, dbo, entity owner, information_schema, sys, or yourself.
(1 row(s) affected)
(1 row(s) affected)
Cannot grant, deny, or revoke permissions to sa, dbo, entity owner, information_schema, sys, or yourself.
Cannot grant, deny, or revoke permissions to sa, dbo, entity owner, information_schema, sys, or yourself.
Cannot grant, deny, or revoke permissions to sa, dbo, entity owner, information_schema, sys, or yourself.
----------------------------------------
Completed execution of InstallCommon.SQL
----------------------------------------
-- error from BugNet install
00:00:00.0009765 - Installing Version: 0.8.186.0
00:00:00.0009765 - Installing Membership Provider:
00:00:00.0009765 - Executing Script: InstallCommon.sql Error!
Error Details
| File |
InstallCommon.sql |
| Error |
An attempt to attach an auto-named database for file M:\websites\BugNET_186\App_Data\aspnetdb.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share. |