Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Upgrading DNN P...Upgrading DNN P...Razor DLL upgrade not workingRazor DLL upgrade not working
Previous
 
Next
New Post
12/2/2012 11:09 PM
 

I am upgrading dnn5 to dnn7, and there is one dll System.Web.Razor which is giving runtime error.

System.IO.FileLoadException: Could not load file or assembly 'System.Web.Razor, Version=2.0.20126.16343, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
File name: 'System.Web.Razor, Version=2.0.20126.16343, Culture=neutral, PublicKeyToken=31bf3856ad364e35' ---> System.IO.FileLoadException: Could not load file or assembly 'System.Web.Razor, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
File name: 'System.Web.Razor, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'

=== Pre-bind state information ===
LOG: User = IIS APPPOOL\dev.booking
LOG: DisplayName = System.Web.Razor, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
 (Fully-specified)
LOG: Appbase = file:///E:/Projects/www/dnn7_dev/
LOG: Initial PrivatePath = E:\Projects\www\dnn7_dev\bin
Calling assembly : RazorEngine, Version=3.0.8.0, Culture=neutral, PublicKeyToken=9ee697374c7e744a.
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: E:\Projects\www\dnn7_dev\web.config
LOG: Using host configuration file: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet.config
LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\config\machine.config.
LOG: Redirect found in application configuration file: 1.0.0.0 redirected to 2.0.20126.16343.
LOG: Post-policy reference: System.Web.Razor, Version=2.0.20126.16343, Culture=neutral, PublicKeyToken=31bf3856ad364e35
LOG: The same bind was seen before, and was failed with hr = 0x80131040.

   at RazorEngine.Compilation.DefaultCompilerServiceFactory.CreateCompilerService(Language language)
   at RazorEngine.Templating.TemplateService.CreateTemplateType(String razorTemplate, Type modelType)
   at RazorEngine.Templating.TemplateService.CreateTemplate(String razorTemplate, Type templateType, Object model)
   at RazorEngine.Templating.TemplateService.Parse(String razorTemplate, Object model, DynamicViewBag viewBag, String cacheName)
   at RazorEngine.Razor.Parse[T](String razorTemplate, T model)
   at XPL.Common.Templating.TemplateProcessor.ProcessProducts(String template, List`1 products, TemplateBaseData templateBaseData)


I searched in all places, c# forum etc but could not find solution.

I did following but didn't work (web.config):

 <dependentAssembly>

        <assemblyIdentity name="System.Web.Razor" publicKeyToken="31bf3856ad364e35" />
        <bindingRedirect oldVersion="1.0.0.0" newVersion="2.0.20126.16343" />

      </dependentAssembly>

I also tried re-building dll after "Specific version" true once then false other time. Both not working. It's frustating


 
New Post
12/4/2012 11:33 PM
 
Same problem, hope this bumps it up to top.
 
New Post
12/5/2012 3:44 PM
 
I read that RAZOR requires .NET 4 , you didn't say what version you were running - this may a solution.
 
New Post
12/5/2012 8:41 PM
 
I actually don't have the exact error - I'm having a problem with the RazorTemplateProcessor in DDRMenu.

DotNetNuke.Web.DDRMenu.TemplateEngine.RazorTemplateProcessor.LoadDefinition

I do have .NET 4 installed. I also uninstalled and reinstalled DDRMenu (what a mess that was since it's used in all the skin files), then I uninstalled and reinstalled the Razor engine in DNN. No changes.
After awhile I tried making my web.config the same as release.config and now the site is trashed so I'm starting over.
 
New Post
12/17/2012 12:17 AM
 
I am using .net framework 4.0. But now I am currently sticking to dnn6. And may be will try dnn7 r after couple of months later.
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Upgrading DNN P...Upgrading DNN P...Razor DLL upgrade not workingRazor DLL upgrade not working


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out