{"id":1766,"date":"2017-10-16T14:06:30","date_gmt":"2017-10-16T08:36:30","guid":{"rendered":"http:\/\/stepbystepschools.net\/?p=1766"},"modified":"2017-10-16T14:06:30","modified_gmt":"2017-10-16T08:36:30","slug":"could-not-load-file-or-assembly-dotnet-aspnet-codegenerator-design-mvc-core-2-issues","status":"publish","type":"post","link":"https:\/\/www.stepbystepschools.net\/?p=1766","title":{"rendered":"Could not load file or assembly &#8216;dotnet-aspnet-codegenerator-design&#8217; :- MVC Core 2  issues."},"content":{"rendered":"<p>In our recent <a href=\"http:\/\/stepbystepschools.net\/?page_id=315\" target=\"_blank\">MVC training in Mumbai<\/a> one of our students was coding the whole lessons in MVC core 1 and later was trying to migrate the project to 2.0 and the below error came up. For migration we tried to follow these steps <a href=\"http:\/\/stepbystepschools.net\/?p=1758\" target=\"_blank\">http:\/\/stepbystepschools.net\/?p=1758<\/a>.<\/p>\n<p><i>\u201cSystem.BadImageFormatException: &#8216;Could not load file or assembly &#8216;dotnet-aspnet-codegenerator-design&#8217; or one of its dependencies. An attempt was made to load a program with an incorrect format.\u201d<\/i><\/p>\n<p><a href=\"http:\/\/stepbystepschools.net\/wp-content\/uploads\/2017\/10\/1.jpg\" rel=\"attachment wp-att-1767\"><img loading=\"lazy\" class=\"aligncenter size-full wp-image-1767\" src=\"http:\/\/stepbystepschools.net\/wp-content\/uploads\/2017\/10\/1.jpg\" alt=\"1\" width=\"624\" height=\"211\" srcset=\"https:\/\/www.stepbystepschools.net\/wp-content\/uploads\/2017\/10\/1.jpg 624w, https:\/\/www.stepbystepschools.net\/wp-content\/uploads\/2017\/10\/1-300x101.jpg 300w\" sizes=\"(max-width: 624px) 100vw, 624px\" \/><\/a><\/p>\n<p>The solution for this was to remove entries of \u201cMicrosoft.VisualStudio.Web.CodeGeneration\u201d from the \u201ccsproj\u201d file. So we need to right click on the csproj and unload the project , edit and make changes.<\/p>\n<p>By doing so your templates will not work. If you want to use templates you need to put the entries back to CSproj and remove it while running the application.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In our recent MVC training in Mumbai one of our students was coding the whole lessons in MVC core 1 and later was trying to migrate the project to 2.0 and the below error came up. For migration we tried &hellip; <a href=\"https:\/\/www.stepbystepschools.net\/?p=1766\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":40,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true},"categories":[74,1,3,185],"tags":[184,186],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v18.8 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Could not load file or assembly &#039;dotnet-aspnet-codegenerator-design&#039; :- MVC Core 2 issues. - Learn MVC, Angular, Architecture, MSBI, Data Science in Mumbai<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.stepbystepschools.net\/?p=1766\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Could not load file or assembly &#039;dotnet-aspnet-codegenerator-design&#039; :- MVC Core 2 issues. - Learn MVC, Angular, Architecture, MSBI, Data Science in Mumbai\" \/>\n<meta property=\"og:description\" content=\"In our recent MVC training in Mumbai one of our students was coding the whole lessons in MVC core 1 and later was trying to migrate the project to 2.0 and the below error came up. For migration we tried &hellip; Continue reading &rarr;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.stepbystepschools.net\/?p=1766\" \/>\n<meta property=\"og:site_name\" content=\"Learn MVC, Angular, Architecture, MSBI, Data Science in Mumbai\" \/>\n<meta property=\"article:published_time\" content=\"2017-10-16T08:36:30+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/stepbystepschools.net\/wp-content\/uploads\/2017\/10\/1.jpg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"StepByStepSchoolsSupport\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.stepbystepschools.net\/#website\",\"url\":\"https:\/\/www.stepbystepschools.net\/\",\"name\":\"Learn MVC, Angular, Architecture, MSBI, Data Science in Mumbai\",\"description\":\"MVC 5\/Core, AngularJS 1.x, 2.0, 4.0, Design Pattern, Architecture, SSIS, SSAS, SSRS, Data Science, Big data, Hadoop classroom training\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.stepbystepschools.net\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.stepbystepschools.net\/?p=1766#primaryimage\",\"url\":\"http:\/\/stepbystepschools.net\/wp-content\/uploads\/2017\/10\/1.jpg\",\"contentUrl\":\"http:\/\/stepbystepschools.net\/wp-content\/uploads\/2017\/10\/1.jpg\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.stepbystepschools.net\/?p=1766#webpage\",\"url\":\"https:\/\/www.stepbystepschools.net\/?p=1766\",\"name\":\"Could not load file or assembly 'dotnet-aspnet-codegenerator-design' :- MVC Core 2 issues. - Learn MVC, Angular, Architecture, MSBI, Data Science in Mumbai\",\"isPartOf\":{\"@id\":\"https:\/\/www.stepbystepschools.net\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.stepbystepschools.net\/?p=1766#primaryimage\"},\"datePublished\":\"2017-10-16T08:36:30+00:00\",\"dateModified\":\"2017-10-16T08:36:30+00:00\",\"author\":{\"@id\":\"https:\/\/www.stepbystepschools.net\/#\/schema\/person\/7131e4ee1c5673879e6029d14ec2f655\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.stepbystepschools.net\/?p=1766#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.stepbystepschools.net\/?p=1766\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.stepbystepschools.net\/?p=1766#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.stepbystepschools.net\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Could not load file or assembly &#8216;dotnet-aspnet-codegenerator-design&#8217; :- MVC Core 2 issues.\"}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.stepbystepschools.net\/#\/schema\/person\/7131e4ee1c5673879e6029d14ec2f655\",\"name\":\"StepByStepSchoolsSupport\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.stepbystepschools.net\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/cecaf2a0ee369391127b0159c266979d?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/cecaf2a0ee369391127b0159c266979d?s=96&d=mm&r=g\",\"caption\":\"StepByStepSchoolsSupport\"},\"url\":\"https:\/\/www.stepbystepschools.net\/?author=40\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Could not load file or assembly 'dotnet-aspnet-codegenerator-design' :- MVC Core 2 issues. - Learn MVC, Angular, Architecture, MSBI, Data Science in Mumbai","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.stepbystepschools.net\/?p=1766","og_locale":"en_US","og_type":"article","og_title":"Could not load file or assembly 'dotnet-aspnet-codegenerator-design' :- MVC Core 2 issues. - Learn MVC, Angular, Architecture, MSBI, Data Science in Mumbai","og_description":"In our recent MVC training in Mumbai one of our students was coding the whole lessons in MVC core 1 and later was trying to migrate the project to 2.0 and the below error came up. For migration we tried &hellip; Continue reading &rarr;","og_url":"https:\/\/www.stepbystepschools.net\/?p=1766","og_site_name":"Learn MVC, Angular, Architecture, MSBI, Data Science in Mumbai","article_published_time":"2017-10-16T08:36:30+00:00","og_image":[{"url":"http:\/\/stepbystepschools.net\/wp-content\/uploads\/2017\/10\/1.jpg"}],"twitter_card":"summary_large_image","twitter_misc":{"Written by":"StepByStepSchoolsSupport","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebSite","@id":"https:\/\/www.stepbystepschools.net\/#website","url":"https:\/\/www.stepbystepschools.net\/","name":"Learn MVC, Angular, Architecture, MSBI, Data Science in Mumbai","description":"MVC 5\/Core, AngularJS 1.x, 2.0, 4.0, Design Pattern, Architecture, SSIS, SSAS, SSRS, Data Science, Big data, Hadoop classroom training","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.stepbystepschools.net\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.stepbystepschools.net\/?p=1766#primaryimage","url":"http:\/\/stepbystepschools.net\/wp-content\/uploads\/2017\/10\/1.jpg","contentUrl":"http:\/\/stepbystepschools.net\/wp-content\/uploads\/2017\/10\/1.jpg"},{"@type":"WebPage","@id":"https:\/\/www.stepbystepschools.net\/?p=1766#webpage","url":"https:\/\/www.stepbystepschools.net\/?p=1766","name":"Could not load file or assembly 'dotnet-aspnet-codegenerator-design' :- MVC Core 2 issues. - Learn MVC, Angular, Architecture, MSBI, Data Science in Mumbai","isPartOf":{"@id":"https:\/\/www.stepbystepschools.net\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.stepbystepschools.net\/?p=1766#primaryimage"},"datePublished":"2017-10-16T08:36:30+00:00","dateModified":"2017-10-16T08:36:30+00:00","author":{"@id":"https:\/\/www.stepbystepschools.net\/#\/schema\/person\/7131e4ee1c5673879e6029d14ec2f655"},"breadcrumb":{"@id":"https:\/\/www.stepbystepschools.net\/?p=1766#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.stepbystepschools.net\/?p=1766"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.stepbystepschools.net\/?p=1766#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.stepbystepschools.net\/"},{"@type":"ListItem","position":2,"name":"Could not load file or assembly &#8216;dotnet-aspnet-codegenerator-design&#8217; :- MVC Core 2 issues."}]},{"@type":"Person","@id":"https:\/\/www.stepbystepschools.net\/#\/schema\/person\/7131e4ee1c5673879e6029d14ec2f655","name":"StepByStepSchoolsSupport","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.stepbystepschools.net\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/cecaf2a0ee369391127b0159c266979d?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/cecaf2a0ee369391127b0159c266979d?s=96&d=mm&r=g","caption":"StepByStepSchoolsSupport"},"url":"https:\/\/www.stepbystepschools.net\/?author=40"}]}},"jetpack_featured_media_url":"","jetpack_publicize_connections":[],"_links":{"self":[{"href":"https:\/\/www.stepbystepschools.net\/index.php?rest_route=\/wp\/v2\/posts\/1766"}],"collection":[{"href":"https:\/\/www.stepbystepschools.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.stepbystepschools.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.stepbystepschools.net\/index.php?rest_route=\/wp\/v2\/users\/40"}],"replies":[{"embeddable":true,"href":"https:\/\/www.stepbystepschools.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1766"}],"version-history":[{"count":2,"href":"https:\/\/www.stepbystepschools.net\/index.php?rest_route=\/wp\/v2\/posts\/1766\/revisions"}],"predecessor-version":[{"id":1769,"href":"https:\/\/www.stepbystepschools.net\/index.php?rest_route=\/wp\/v2\/posts\/1766\/revisions\/1769"}],"wp:attachment":[{"href":"https:\/\/www.stepbystepschools.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1766"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.stepbystepschools.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1766"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.stepbystepschools.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1766"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}