First question: Is this from the config file of your application (web.config or applicationname.config) or is it from the app.config file of the generated project?
If it's the second case, then you should copy this connection string to your application config file.
Second question: is "TWVPatCns" the same as the ConnectionStringKeyName property in the llblgen pro project properties?