I have a SQL Server 2008 DB with many tables filled with data and I used SQL Server Management Studio to generate a SQL dump by using the Script Wizard : Tasks -> Generate S
In my case neither of above solutions worked.
I removed applicationName="/" from memnership provider in webconfig which was created by visual studio and then uploaded it to server.
Or you can crate the application row in aspnet_Applications table manually.
Have a nice coding!