servicestack - Example app EmailContacts throws Error - Could not load file or assembly 'System.Web.WebPages.Razor, Version=1.0.0.0, -


newbie. got emailcontacts github , opened , on vs2013 premium , complied , ran , go following error. appreciated. rockmeister

server error in '/' application.  configuration error  description: error occurred during processing of configuration file required service request. please review specific error details below , modify configuration file appropriately.   parser error message: not load file or assembly 'system.web.webpages.razor, version=1.0.0.0, culture=neutral, publickeytoken=31bf3856ad364e35' or 1 of dependencies. system cannot find file specified.  source error:    line 30:     <compilation debug="true" targetframework="4.5"> line 31:       <assemblies> line 32:         <add assembly="system.web.webpages.razor, version=1.0.0.0, culture=neutral, publickeytoken=31bf3856ad364e35" /> line 33:       </assemblies> line 34:       <buildproviders>  source file: c:\users\rkumar\documents\visual studio 2013\projects\emailcontacts.ref\emailcontacts\web.config    line: 32   assembly load trace: following information can helpful determine why assembly 'system.web.webpages.razor, version=1.0.0.0, culture=neutral, publickeytoken=31bf3856ad364e35' not loaded.   wrn: assembly binding logging turned off. enable assembly bind failure logging, set registry value [hklm\software\microsoft\fusion!enablelog] (dword) 1. note: there performance penalty associated assembly bind failure logging. turn feature off, remove registry value [hklm\software\microsoft\fusion!enablelog]. 

i had 2 things make work vs2013 premium

(1) comment out system.web.razor in emailcontacts webconfig file

<system.web>     <compilation debug="true" targetframework="4.5">         <!-- commented out razor             <assemblies>                 <add assembly="system.web.razor, version=1.0.0.0, culture=neutral, publickeytoken=31bf3856ad364e35" />             </assemblies>         --> 

...

(2) pm> install-package microsoft.aspnet.razor btw, current version 3.1.1

this solved issue , can run app fine. hth rockmeister


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -