
{"id":863,"date":"2011-08-29T15:23:05","date_gmt":"2011-08-29T19:23:05","guid":{"rendered":"http:\/\/www.ikriv.com\/blog\/?p=863"},"modified":"2011-08-29T15:23:05","modified_gmt":"2011-08-29T19:23:05","slug":"creating-asp-net-membership-database-no-funky-passwords","status":"publish","type":"post","link":"https:\/\/ikriv.com\/blog\/?p=863","title":{"rendered":"Creating ASP.NET membership database: no funky passwords!"},"content":{"rendered":"<p>To simplify creating and managing users in ASP.NET Microsoft created a lot of infrastructure that takes care of this boilerplate task. Part of the infrastructure is<\/p>\n<p>aspnet_regsql.exe<\/p>\n<p>utility that is supposed to create relevant tables on an SQL server. The trouble is, if you use SQL server authentication, the utility does not like passwords with funky characters. It looks like they get added to the connection string verbatim, and thus you get<\/p>\n<p><code>System.ArgumentException: Format of the initialization string does not conform to specification starting at index 31.<\/code><\/p>\n<p>Looks like they just append the passwords to the connection string, verbatim without escaping. Way to go (not)!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>To simplify creating and managing users in ASP.NET Microsoft created a lot of infrastructure that takes care of this boilerplate task. Part of the infrastructure is aspnet_regsql.exe utility that is <a href=\"https:\/\/ikriv.com\/blog\/?p=863\" class=\"more-link\">[&hellip;]<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"Layout":"","footnotes":""},"categories":[14,15],"tags":[],"class_list":["entry","author-ikriv","post-863","post","type-post","status-publish","format-standard","category-db","category-webdev"],"_links":{"self":[{"href":"https:\/\/ikriv.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/863","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ikriv.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ikriv.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ikriv.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ikriv.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=863"}],"version-history":[{"count":0,"href":"https:\/\/ikriv.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/863\/revisions"}],"wp:attachment":[{"href":"https:\/\/ikriv.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=863"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ikriv.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=863"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ikriv.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=863"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}