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
You may have to run aspnet_regsql.exe in order to get your schema values populated. You can hard-code the values as well as long as you have all of the generated objects (tables, views, sproc's, etc..
The steps i took to resolve this which worked was:
re-ran aspnet_regsql.exe ensured the default values where there restarted IIS.
Then it worked..
But if you just copy the database schema without the values, you need to run 'aspnet_regsql.exe' in order to populate the default values.
the file can be found here (re: msdn): [drive:]\%windir%\Microsoft.NET\Framework\version (it's in 2.0 dir)
and here's some info:
http://msdn.microsoft.com/en-us/library/ms229862%28v=vs.80%29.aspx