Forum


HomeHomePremiumPremiumAdministrationAdministrationError from razor host moduleError from razor host module
Previous
 
Next
New Post
5/4/2015 10:12 AM
 

Hi 

 

I just tried adding a razor host module to a page. When i run any of the sample scripts, I get the following error:

Error: Razor Host is currently unavailable. DotNetNuke.Services.Exceptions.ModuleLoadException: The "" element was not closed. All elements must be either self-closing or have a matching end tag. ---> System.Web.HttpParseException: The "" element was not closed. All elements must be either self-closing or have a matching end tag. at System.Web.WebPages.Razor.RazorBuildProvider.EnsureGeneratedCode() at System.Web.WebPages.Razor.RazorBuildProvider.get_CodeCompilerType() at System.Web.Compilation.BuildProvider.GetCompilerTypeFromBuildProvider(BuildProvider buildProvider) at System.Web.Compilation.BuildProvidersCompiler.ProcessBuildProviders() at System.Web.Compilation.BuildProvidersCompiler.PerformBuild() 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 DotNetNuke.Web.Razor.RazorEngine.CreateWebPageInstance() at DotNetNuke.Web.Razor.RazorEngine.InitWebpage() at DotNetNuke.Web.Razor.RazorEngine..ctor(String razorScriptFile, ModuleInstanceContext moduleContext, String localResourceFile) at DotNetNuke.Web.Razor.RazorModuleBase.OnPreRender(EventArgs e) --- End of inner exception stack trace ---


I checked that the application pool is running under .net 4.0.
Does anyone have any other suggestions?

Best Regards,

Steve

 
New Post
5/4/2015 11:44 AM
 

Hi Steve,

I haven't seem this before. I sent a note to Scott for his feedback. 

BTW, which version of DNN are you running? Also, which sample script are you running?

Best regards,

Aderson

 
New Post
5/4/2015 2:51 PM
 

Steve,

What version of DNN is this coming from?  It almost seems like this error comes from the fact that the razor template is outdated from the MVC version referenced.  I'm pretty sure they are updating several .net references in version 8.  http://stackoverflow.com/questions/12694814/element-not-closed-error-after-upgrading-from-mvc3-to-mvc4

 
New Post
5/5/2015 3:21 AM
 

Hi Aderson and Scott,

Thank you for your replies.

The DNN version is: 07.04.00 (353). It's running on my local machine.

After installing the razor module, the actions i took are as follows:
1) Edit script
2) Select script > _1_SampleRazorScript.cshtml
3) Check 'is active'
4) Save script and return

 

Best Regards,

 

Steve

 

 
New Post
5/5/2015 3:53 AM
 

Hi Scott,

I just tried the exact same script in a razor module on a live site, it works fine.

The site is more or less a copy of the site on my local machine, which suggests the environment to me.

On my local machine i'm running Windows 8.1 and according to the application pool am running .Net v4.0.30319.

Best Regards,

Steve

 

 

 
Previous
 
Next
HomeHomePremiumPremiumAdministrationAdministrationError from razor host moduleError from razor host module



Try FREE
30 days money back guaranteed