The man also faced this problem. But here is an even simpler way to do this:
I made a copy of my source .MDF DB file from my source files on my development machine, where I back up all my .MDF files using earlier versions of Visual Studio, and then copied the file directly to the server, since I have direct access to my server.
I just pasted the file on the Inetpub server, where the App_Data folder for my site files and voila! More compatibility issues.
Then, using SQL Server Management Studio, re-attach the DB file you just pasted into Inetpub and it will work!
Bill j
source share