This question is locked. New answers and comments are not allowed.
I've encountered a new problem when I try to generate a new data schema script. Here is what I do:
Short of me sending you my whole project, which I would rather not, do you have any other tips for making sure the model stays healthy enough to avoid this from happening?
Also, I suspect the problem has to do with the 2 connection strings showing up in the first wizard page (which does not show up in other working projects because there is only 1). What do I have to edit to remove the second (broken) one? I've searched files in the project and the registry to no avail...
- Create an empty database
- Verify that the connection string in App.Config and the .rlinq file match and are correct. The .rlinq strings are in rlinq|runtime|modelsettings|AppConfigConnectionString and DesignTimeConnectionString.
- Save the .rlinq file
- Perform a rebuild of the project (and the entire solution to make sure, sometimes rebooting and rebuilding to make double sure)
- Verified that there are no compile warnings or errors in the project. Not even the ones that only show up when you save the .rlinq file. I also did a Validate all on the .rlinq file design surface and it passed.
- Open the .rlinq file so you can right click on the designer surface to get the Update Database from Model.. choice
- See my connection string as it was put in the App.Config and .rlinq files. One interesting thing is that in the connection: dropdown, my connection string named 'MyDBC' shows up twice, with the second instance pruning the last character from the database name (in the initial catalog portion of the connection string). I wonder if this has something to do with it? I've searched, and there is no such abbreviated string in my entire project.
- Click next, leaving 'Generate and Execute Schema Definition Script'
- Click next, get 'Project not built' dialog saying 'Please rebuild the project in order to advance to the next step'. Also does this when I try to click Previous, by the way.
Short of me sending you my whole project, which I would rather not, do you have any other tips for making sure the model stays healthy enough to avoid this from happening?
Also, I suspect the problem has to do with the 2 connection strings showing up in the first wizard page (which does not show up in other working projects because there is only 1). What do I have to edit to remove the second (broken) one? I've searched files in the project and the registry to no avail...