{"id":2200,"date":"2018-01-09T17:23:12","date_gmt":"2018-01-09T17:23:12","guid":{"rendered":"http:\/\/galhano.com\/blog\/?p=2200"},"modified":"2018-01-09T17:23:21","modified_gmt":"2018-01-09T17:23:21","slug":"unobtrusivevalidationmode-requires-a-scriptresourcemapping-for-jquery-asp-net","status":"publish","type":"post","link":"https:\/\/galhano.com\/blog\/?p=2200","title":{"rendered":"UnobtrusiveValidationMode requires a ScriptResourceMapping for &#8216;jquery&#8217; &#8211; Asp.NET"},"content":{"rendered":"<p>erro:<\/p>\n<pre>Erro de Servidor no Aplicativo '\/'.<\/pre>\n<hr size=\"1\" width=\"100%\" \/>\n<pre><em>WebForms UnobtrusiveValidationMode requer um ScriptResourceMapping para 'jquery'. Adicione um jquery nomeado de ScriptResourceMapping (diferencia mai\u00fasculas de min\u00fasculas).<\/em>\r\n\r\n<strong>Descri\u00e7\u00e3o:<span class=\"x_Apple-converted-space\">\u00a0<\/span><\/strong>Ocorreu uma exce\u00e7\u00e3o sem tratamento durante a execu\u00e7\u00e3o da atual solicita\u00e7\u00e3o da Web. Examine o rastreamento de pilha para obter mais informa\u00e7\u00f5es sobre o erro e onde foi originado no c\u00f3digo.<span class=\"x_Apple-converted-space\">\u00a0\r\n\r\n\r\n\r\n<\/span><\/pre>\n<p>Adicionar no web.config<\/p>\n<p>[xml]<br \/>\n &lt;appSettings&gt;<br \/>\n    &lt;add key=&quot;ValidationSettings:UnobtrusiveValidationMode&quot; value=&quot;None&quot;\/&gt;<br \/>\n  &lt;\/appSettings&gt;&lt;span style=&quot;display: inline-block; width: 0px; overflow: hidden; line-height: 0;&quot; data-mce-type=&quot;bookmark&quot; class=&quot;mce_SELRES_start&quot;&gt;&lt;\/span&gt;<br \/>\n[\/xml]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>erro: Erro de Servidor no Aplicativo &#8216;\/&#8217;. WebForms UnobtrusiveValidationMode requer um ScriptResourceMapping para &#8216;jquery&#8217;. Adicione um jquery nomeado de ScriptResourceMapping (diferencia mai\u00fasculas de min\u00fasculas). Descri\u00e7\u00e3o:\u00a0Ocorreu uma exce\u00e7\u00e3o sem tratamento durante a execu\u00e7\u00e3o da atual solicita\u00e7\u00e3o da Web. Examine o rastreamento de pilha para obter mais informa\u00e7\u00f5es sobre o erro e onde foi originado no c\u00f3digo.\u00a0 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"close","ping_status":"close","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[33,43,4],"tags":[],"class_list":["post-2200","post","type-post","status-publish","format-standard","hentry","category-code-snippets","category-netfx","category-aspnet","author-admin"],"_links":{"self":[{"href":"https:\/\/galhano.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2200","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/galhano.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/galhano.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/galhano.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/galhano.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2200"}],"version-history":[{"count":1,"href":"https:\/\/galhano.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2200\/revisions"}],"predecessor-version":[{"id":2201,"href":"https:\/\/galhano.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2200\/revisions\/2201"}],"wp:attachment":[{"href":"https:\/\/galhano.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2200"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/galhano.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2200"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/galhano.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2200"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}