tebok
tebok

Reputation: 390

Error while creating an ASP.NET project

I haven't used Visual Studio ('17) for a while, but recently I've attempted to create an ASP.NET application and received the following error in the form of a dialog. I've also noticed that the option: ASP.NET Web Application has been replaced.

Error: this template attempted to load component assembly 'Microsoft.VisualStudio.Web.Project, Version[equalstosign]2.3.0.0, Culture[equalstosign]neutral, PublicKeyToken[equalstosign]b03f5f7f11d50a30a'.For more information on this problem and how to enable this template, please see documentation on customizing project templates.

Upvotes: 1

Views: 727

Answers (1)

Onga Leo-Yoda Vellem
Onga Leo-Yoda Vellem

Reputation: 296

A workaround for this is to edit C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\devenv.exe.config and add to the section:

<dependentAssembly>
  <assemblyIdentity name="Microsoft.VisualStudio.Universal.TemplateWizards" publicKeyToken="b03f5f7f11d50a3a" culture="neutral"/>
  <bindingRedirect oldVersion="14.0.0.0" newVersion="15.0.0.0"/>
</dependentAssembly>
<dependentAssembly>
  <assemblyIdentity name="Microsoft.VisualStudio.WinRT.TemplateWizards" publicKeyToken="b03f5f7f11d50a3a" culture="neutral"/>
  <bindingRedirect oldVersion="14.0.0.0" newVersion="15.0.0.0"/>
</dependentAssembly>

Upvotes: 1

Related Questions