{"id":1564,"date":"2013-07-02T15:37:00","date_gmt":"2013-07-02T15:37:00","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/webdev\/2013\/07\/02\/fix-spa-vb-project-creating-issue-for-asp-net-and-web-tools-preview-refresh-for-visual-studio-2013-preview\/"},"modified":"2022-08-09T07:26:52","modified_gmt":"2022-08-09T14:26:52","slug":"fix-spa-vb-project-creating-issue-for-asp-net-and-web-tools-preview-refresh-for-visual-studio-2013-preview","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/dotnet\/fix-spa-vb-project-creating-issue-for-asp-net-and-web-tools-preview-refresh-for-visual-studio-2013-preview\/","title":{"rendered":"Fix SPA VB project creating issue for ASP.NET and Web Tools Preview Refresh for Visual Studio 2013 Preview"},"content":{"rendered":"<h2>Issue<\/h2>\n<p>Unfortunately after installing ASP.NET and Web Tools Preview Refresh for Visual Studio 2013 Preview, creating SPA VB template will fail.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/dotnet\/wp-content\/uploads\/sites\/10\/2013\/07\/4505.SPAIssue_thumb_1FC83330.png\"><img decoding=\"async\" title=\"SPAIssue\" src=\"https:\/\/devblogs.microsoft.com\/dotnet\/wp-content\/uploads\/sites\/10\/2013\/07\/4505.SPAIssue_thumb_1FC83330.png\" alt=\"SPAIssue\" width=\"343\" height=\"135\" border=\"0\" \/><\/a><\/p>\n<p>This post describes how to fix this issue.<\/p>\n<h2>Option 1: Fix script<\/h2>\n<p>I authored these two scripts (one for x86 and x64) to fix the issue.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/00\/00\/00\/63\/56\/scripts\/7245.scripts.zip\">Download here<\/a><\/p>\n<p>Note:<\/p>\n<ol>\n<li>Please ensure your execution policy is correct. (Run command: <a href=\"http:\/\/technet.microsoft.com\/en-us\/library\/ee176961.aspx\">Set-ExecutionPolicy<\/a> RemoteSigned)<\/li>\n<li>Please run the script under Administration Privilege<\/li>\n<\/ol>\n<h2>Option 2: Manually fix<\/h2>\n<p>If for some reason you can&rsquo;t run the scripts, you can fix the issue by altering template files.<\/p>\n<ul>\n<li>Find your WebTemplates folder. It is usually at C:Program Files (x86)Microsoft Visual Studio 12.0Common7IDEWebTemplates<\/li>\n<li>Go to WebTemplatesMVCVisualBasic<\/li>\n<li>If you&rsquo;re using English version of VS, go to folder 1033. Otherwise you will see a number-named folder older than 1033, go to it.<\/li>\n<li>Move following files:\n<table style=\"width: 408px\" border=\"0\" cellspacing=\"0\" cellpadding=\"2\">\n<tbody>\n<tr>\n<td valign=\"top\" width=\"182\">From<\/td>\n<td valign=\"top\" width=\"224\">To<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"182\">Spav5.0ContentVB*.css<\/td>\n<td valign=\"top\" width=\"224\">Spav5.0Content<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"182\">Spav5.0ScriptsappVB*.js<\/td>\n<td valign=\"top\" width=\"224\">Spav5.0Scriptsapp<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"182\">Spav5.0ScriptsVB*.js<\/td>\n<td valign=\"top\" width=\"224\">Spav5.0Scripts<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"182\">Spav5.0ViewsVBweb.config<\/td>\n<td valign=\"top\" width=\"224\">Spav5.0Views<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\" width=\"182\">Spav5.0VBweb.config<\/td>\n<td valign=\"top\" width=\"224\">Spav5.0<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/li>\n<\/ul>\n<ul>\n<li>Then edit Spav5.0spa.vbhtml.vstemplate. Remove all occurrences of &ldquo;VB&rdquo;<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Issue Unfortunately after installing ASP.NET and Web Tools Preview Refresh for Visual Studio 2013 Preview, creating SPA VB template will fail. This post describes how to fix this issue. Option 1: Fix script I authored these two scripts (one for x86 and x64) to fix the issue. Download here Note: Please ensure your execution policy [&hellip;]<\/p>\n","protected":false},"author":434,"featured_media":58792,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[197],"tags":[7425,7436],"class_list":["post-1564","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-aspnet","tag-spa","tag-visual-studio-2013"],"acf":[],"blog_post_summary":"<p>Issue Unfortunately after installing ASP.NET and Web Tools Preview Refresh for Visual Studio 2013 Preview, creating SPA VB template will fail. This post describes how to fix this issue. Option 1: Fix script I authored these two scripts (one for x86 and x64) to fix the issue. Download here Note: Please ensure your execution policy [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/posts\/1564","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/users\/434"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/comments?post=1564"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/posts\/1564\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/media\/58792"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/media?parent=1564"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/categories?post=1564"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/tags?post=1564"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}