BlogEngine Compile Problem

Topics: ASP.NET 2.0, Business Logic Layer, Controls, Themes
Jan 10, 2013 at 10:57 PM
Edited Jan 11, 2013 at 3:06 AM

I've looked through the documentation and cannot find the following information: what version of ASP.NET, .NET and SQL Server does versions 2.6 and 2.7 use?

Reason I ask is because I recently updated my workstation via WPI with MVC4, IIS Express 8.0, etc., and it broke my install with three errors relating to Razor pages:

In VS for intellisense: the type 'RazorHelpers' exists in both 'App_Code' and BlogEngine.Web.dll

Compile error:

Error    29    The type 'RazorHelpers' exists in both 'c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\nordic\02589ae4\590415b1\assembly\dl3\0a6cb083\fb2390cc_dbdccd01\BlogEngine.Web.DLL' and 'c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\nordic\02589ae4\590415b1\App_Code.0buesj04.dll'    C:\inetpub\wwwroot\Nordic\themes\RazorHost\WidgetContainer.ascx    25  

Jan 11, 2013 at 2:26 PM

BE uses .net 4.0, but this error related to dynamic compilation and not framework version. You can safely delete all in the "Temporary ASP.NET Files" directory and it will be re-generated. Here is similar issue with another solution.

Jan 11, 2013 at 3:08 PM
Edited Jan 12, 2013 at 11:10 AM

I set the batch compilation attribute to false and emptied all of the the temp folders, neither of which solved the problem... but the error messages are slightly different:

Error    27    The type 'RazorHelpers' exists in both 
and 'App_Code'
c:\inetpub\wwwroot\...\themes\RazorHost\CommentView.ascx 25

UPDATE 01-12-2013

I deleted the BlogEngine.Web.dll and pdb from bin folder and got two errors:

Error    1    The type or namespace name 'App_Code' could not be found 
(are you missing a using directive or an assembly reference?)
C:\inetpub\wwwroot\Nordic\Global.asax 5 Error 2 The name 'WidgetZone' does not exist in the current context
c:\inetpub\wwwroot\Nordic\Global.asax 101 17
Jan 12, 2013 at 5:19 PM

I had to switch from the WAP version to the Web Site version to get around this. I don't understand why we have Razor in a WAP project?