我将 DotNetNuke 从版本 8 升级到版本 9.01.01 (116)。
升级后,我遇到了一个问题,即所有用户都没有被索引。
为了重新索引站点,遵循以下过程:
- 该站点已在 IIS 中停止。
- 删除的所有文件
<Site>\App_Data\Search
- IIS 站点已启动
- 重新索引是在站点搜索 -> 设置下完成的
- 在搜索返回的丢失用户时。
完成上述操作后,所有 DNN MVC 自定义模块都停止工作,并出现以下错误:
DotNetNuke.Services.Exceptions.ModuleLoadException:
There is no build provider registered for the extension '.cshtml'. You
can register one in the <compilation><buildProviders>
section in machine.config or web.config. Make sure is has a
BuildProviderAppliesToAttribute attribute which includes the value 'Web'
or 'All'. ---> System.Web.HttpException: There is no build provider
registered for the extension '.cshtml'. You can register one in the
<compilation><buildProviders> section in machine.config or
web.config. Make sure is has a BuildProviderAppliesToAttribute attribute
which includes the value 'Web' or 'All'.
at
System.Web.Compilation.CompilationUtil.GetBuildProviderTypeFromExtension(CompilationSection
config, String extension, BuildProviderAppliesTo neededFor, Boolean
failIfUnknown)
at
System.Web.Compilation.BuildManager.CreateBuildProvider(VirtualPath
virtualPath, BuildProviderAppliesTo neededFor, CompilationSection
compConfig, ICollection referencedAssemblies, Boolean failIfUnknown)
at System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath
virtualPath)
at
System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath
virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean
allowBuildInPrecompile, Boolean throwIfNotFound, Boolean
ensureIsUpToDate)
at
System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext
context, VirtualPath virtualPath, Boolean noBuild, Boolean
allowCrossApp, Boolean allowBuildInPrecompile, Boolean throwIfNotFound,
Boolean ensureIsUpToDate)
at
System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath
virtualPath, HttpContext context, Boolean allowCrossApp, Boolean
throwIfNotFound)
at System.Web.Compilation.BuildManager.GetCompiledType(VirtualPath
virtualPath)
at System.Web.Mvc.BuildManagerCompiledView.Render(ViewContext
viewContext, TextWriter writer)
at
DotNetNuke.Web.Mvc.Framework.ActionResults.DnnViewResult.ExecuteResult(ControllerContext
context, TextWriter writer)
at DotNetNuke.Web.Mvc.MvcHostControl.RenderModule(ModuleRequestResult
moduleResult)
at DotNetNuke.Web.Mvc.MvcHostControl.OnPreRender(EventArgs e)
先感谢您。