{"id":375,"date":"2020-04-07T18:19:00","date_gmt":"2020-04-07T17:19:00","guid":{"rendered":"https:\/\/blogfvinhas.wordpress.com\/?p=375"},"modified":"2020-04-07T18:19:00","modified_gmt":"2020-04-07T17:19:00","slug":"visual-studio-error-dataset-designer","status":"publish","type":"post","link":"https:\/\/blog.fvinhas.com\/index.php\/2020\/04\/07\/visual-studio-error-dataset-designer\/","title":{"rendered":"Visual Studio Error\u2013Dataset Designer"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">O Erro no visual studio:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\"><strong>Unable to find connection \u2018XPTOConnectionString\u2019 for object \u2018Web.config\u2019. The connection string coud not be found in application settings, or the data provider associated with the connection string could not be loaded<\/strong><\/p>\n<\/blockquote>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"415\" height=\"209\" src=\"https:\/\/blog.fvinhas.com\/wp-content\/uploads\/2024\/12\/image-166.png?w=415\" alt=\"\" class=\"wp-image-376\" srcset=\"https:\/\/blog.fvinhas.com\/wp-content\/uploads\/2024\/12\/image-166.png 415w, https:\/\/blog.fvinhas.com\/wp-content\/uploads\/2024\/12\/image-166-300x151.png 300w\" sizes=\"auto, (max-width: 415px) 100vw, 415px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Para poder ou conseguir corrigir este problema foi necess\u00e1rio aceder ao XSD code e alterar o nome da connectionstring para a nova existente.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">1\u00ba Bot\u00e3o do lado Direito em cima do DataSet e escolher<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"280\" height=\"240\" src=\"https:\/\/blog.fvinhas.com\/wp-content\/uploads\/2024\/12\/image-167.png?w=280\" alt=\"\" class=\"wp-image-377\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">2\u00ba Escolher o Source Code e OK<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"565\" height=\"372\" src=\"https:\/\/blog.fvinhas.com\/wp-content\/uploads\/2024\/12\/image-168.png?w=565\" alt=\"\" class=\"wp-image-378\" srcset=\"https:\/\/blog.fvinhas.com\/wp-content\/uploads\/2024\/12\/image-168.png 565w, https:\/\/blog.fvinhas.com\/wp-content\/uploads\/2024\/12\/image-168-300x198.png 300w\" sizes=\"auto, (max-width: 565px) 100vw, 565px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">3\u00ba No documento fazer a altera\u00e7\u00e3o do nome da connection String para a que se encontra no web.config e assim resolver o problema. Poder\u00e1 haver tamb\u00e9m connectionstring em duplicado, e como tal dever\u00e1 ser eliminado o duplicado.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"232\" src=\"https:\/\/blog.fvinhas.com\/wp-content\/uploads\/2024\/12\/image-169.png?w=1024\" alt=\"\" class=\"wp-image-380\" srcset=\"https:\/\/blog.fvinhas.com\/wp-content\/uploads\/2024\/12\/image-169.png 1024w, https:\/\/blog.fvinhas.com\/wp-content\/uploads\/2024\/12\/image-169-300x68.png 300w, https:\/\/blog.fvinhas.com\/wp-content\/uploads\/2024\/12\/image-169-768x174.png 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Validar se tudo se encontra dentro do normal<\/p>\n","protected":false},"excerpt":{"rendered":"<p>O Erro no visual studio: Unable to find connection \u2018XPTOConnectionString\u2019 for object \u2018Web.config\u2019. The connection string coud not be found in application settings, or the data provider associated with the connection string could not be loaded Para poder ou conseguir corrigir este problema foi necess\u00e1rio aceder ao XSD code e alterar o nome da connectionstring &#8230; <a title=\"Visual Studio Error\u2013Dataset Designer\" class=\"read-more\" href=\"https:\/\/blog.fvinhas.com\/index.php\/2020\/04\/07\/visual-studio-error-dataset-designer\/\" aria-label=\"Read more about Visual Studio Error\u2013Dataset Designer\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[28,38,104],"class_list":["post-375","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-connectionsstring","tag-error","tag-web-config"],"_links":{"self":[{"href":"https:\/\/blog.fvinhas.com\/index.php\/wp-json\/wp\/v2\/posts\/375","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.fvinhas.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.fvinhas.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.fvinhas.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.fvinhas.com\/index.php\/wp-json\/wp\/v2\/comments?post=375"}],"version-history":[{"count":0,"href":"https:\/\/blog.fvinhas.com\/index.php\/wp-json\/wp\/v2\/posts\/375\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.fvinhas.com\/index.php\/wp-json\/wp\/v2\/media?parent=375"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.fvinhas.com\/index.php\/wp-json\/wp\/v2\/categories?post=375"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.fvinhas.com\/index.php\/wp-json\/wp\/v2\/tags?post=375"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}