Registry are vulnerable for virus attacks .your connection string could be damaged.And secondly for hosting website you need to conection string in web.config .it wont work from registry.including in project is beter rather than saving in different location