IrishChieftain
IrishChieftain

Reputation: 15253

BlogEngine Compile Error

I'm getting three similar errors when trying to compile a BlogEngine 2.6 Web Application Project:

In VS intellisense:

the type 'RazorHelpers' exists in both 'App_Code' and BlogEngine.Web.dll

Compile error:

Error    27  The type 'RazorHelpers' exists in both 
             'C:\inetpub\wwwroot\Nordic\Bin\BlogEngine.Web.dll' and 'App_Code'  
              c:\inetpub\wwwroot\Nordic\themes\RazorHost\CommentView.ascx   25  

Upvotes: 0

Views: 210

Answers (2)

IrishChieftain
IrishChieftain

Reputation: 15253

Eventually, I had to abandon the 2.6 WAP version and switch to the Website version, then migrate all of my design and code customizations.

Upvotes: 0

William A. Ferguson
William A. Ferguson

Reputation: 29

In WAP projects you want to make sure you don't use the app_code directory because classes within that directory will get compiled twice (once in the code-behind and again at runtime) unless you exclude the file from the WAP project.

You could also try renaming the app_code directory to something else.

Upvotes: 1

Related Questions