Error while using Meleze.Web - 1.0.0 of Nuget Gallery
I am trying to use Meleze.Web - 1.0.0 to minify the razor views of asp.net mvc 3 application. I have installed the package and modified the config as in ReadMe section but it throws the follow开发者_JAVA百科ing error:
System.InvalidOperationException: Could not locate Razor Host Factory type: Meleze.Web.Razor.MinifyHtmlWebRazorHostFactory,Meleze.Web.Razor
The Changes i did in ~/Views/Web.config
:
<!--<host factoryType="System.Web.Mvc.MvcWebRazorHostFactory, System.Web.Mvc, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />-->
<host factoryType="Meleze.Web.Razor.MinifyHtmlWebRazorHostFactory,Meleze.Web.Razor" />
Any ideas on this?
The assembly you have downloaded with the NuGet package is called Meleze.Web
, not Meleze.Web.Razor
as shown in the README file, so:
<host factoryType="Meleze.Web.Razor.MinifyHtmlWebRazorHostFactory, Meleze.Web" />
You could contact the author of the package to update his README file if you want.
精彩评论