Blog Engine 2.0 Error

222 views Asked by At

I AM getting an error while opening blogengine.net 2.0 in visual studio 2010 designer view.It is showing the master page error.

But while executing the page it is loading correctly. enter image description here

2

There are 2 answers

1
patmortech On BEST ANSWER

You have a similar problem to this question.

This has to do with the fact that BlogEngine.net is setting the Master Page in the PreInit event of the page's base class (BlogBasePage). It does this based on the theme you have chosen. Because of that, at design time VS can't figure out what the master page is.

You could set a default master page file in the web.config <pages> directive, as in the answer to the question above. The master page file you use would be based on the theme you are using (/themes/yourtheme/site.master).

1
Richard On

Maybe the master page is determined dynamically?

Try opening in code (rather than designer) and seeing what the MasterPageFile attribute of the @Page directive says.