'Page_Load' issue with fairly standard MarketPlace theme

Topics: Themes
Jan 6, 2011 at 10:47 PM
Edited Jan 6, 2011 at 10:49 PM

Hi guys,

I've been using BlogEngine.NET with SQL Server for the news section of www.hawkinsstraat.nl since BE 1.2.

The site uses a fairly standard 'MarketPlace' theme (http://preview.blogenginetheme.com/?theme=MarketPlace).

But after upgrading to BE 2.0, I get the following error message:

Compilation Error 
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. 

Compiler Error Message: CS0117: 'BlogEngine.Core.Web.Controls.PostViewBase' does not contain a definition for 'Page_Load'

Source Error:

Line 15:     protected new void Page_Load(object sender, EventArgs e)
Line 16:     {
Line 17:         base.Page_Load(sender, e);
Line 18:     }
Line 19: 
 
Source File: h:\blogengine\themes\Hawkinsstraat\PostView.ascx.cs    Line: 17 

Show Detailed Compiler Output:

c:\windows\system32\inetsrv> "c:\WINDOWS\Microsoft.NET\Framework\v3.5\csc.exe" /t:library /utf8output /R:"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\nieuws2\4b1282eb\21f369a6\assembly\dl3\661bc81f\0056198c_b0a9cb01\AjaxMin.DLL" /R:"C:\WINDOWS\assembly\GAC_32\System.Web\2.0.0.0__b03f5f7f11d50a3a\System.Web.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System\2.0.0.0__b77a5c561934e089\System.dll" /R:"C:\WINDOWS\assembly\GAC_32\System.Data\2.0.0.0__b77a5c561934e089\System.Data.dll" /R:"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\nieuws2\4b1282eb\21f369a6\App_global.asax.rd6m0ymz.dll" /R:"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\nieuws2\4b1282eb\21f369a6\assembly\dl3\21138a5d\0056198c_b0a9cb01\BlogML.DLL" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Web.Mobile\2.0.0.0__b03f5f7f11d50a3a\System.Web.Mobile.dll" /R:"C:\WINDOWS\assembly\GAC_32\System.EnterpriseServices\2.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Xml.Linq\3.5.0.0__b77a5c561934e089\System.Xml.Linq.dll" /R:"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\nieuws2\4b1282eb\21f369a6\App_Code.lpxbfths.dll" /R:"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\nieuws2\4b1282eb\21f369a6\App_GlobalResources.17gv9myz.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Web.Services\2.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Core\3.5.0.0__b77a5c561934e089\System.Core.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Management\2.0.0.0__b03f5f7f11d50a3a\System.Management.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Drawing\2.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Runtime.Serialization\3.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.WorkflowServices\3.5.0.0__31bf3856ad364e35\System.WorkflowServices.dll" /R:"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mscorlib.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.ServiceModel\3.0.0.0__b77a5c561934e089\System.ServiceModel.dll" /R:"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\nieuws2\4b1282eb\21f369a6\assembly\dl3\663d5752\00bee392_c1aacb01\BlogEngine.Core.DLL" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.IdentityModel\3.0.0.0__b77a5c561934e089\System.IdentityModel.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.ServiceModel.Web\3.5.0.0__31bf3856ad364e35\System.ServiceModel.Web.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Data.DataSetExtensions\3.5.0.0__b77a5c561934e089\System.Data.DataSetExtensions.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Configuration\2.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Xml\2.0.0.0__b77a5c561934e089\System.Xml.dll" /R:"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\nieuws2\4b1282eb\21f369a6\App_Web_d9gzhd0z.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Web.Extensions\3.5.0.0__31bf3856ad364e35\System.Web.Extensions.dll" /out:"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\nieuws2\4b1282eb\21f369a6\App_Web_ubdv7moc.dll" /debug- /optimize+ /win32res:"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\nieuws2\4b1282eb\21f369a6\ubdv7moc.res" /w:4 /nowarn:1659;1699;1701 /warnaserror-  "c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\nieuws2\4b1282eb\21f369a6\App_Web_ubdv7moc.0.cs" "c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\nieuws2\4b1282eb\21f369a6\App_Web_ubdv7moc.1.cs" "c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\nieuws2\4b1282eb\21f369a6\App_Web_ubdv7moc.2.cs" "c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\nieuws2\4b1282eb\21f369a6\App_Web_ubdv7moc.3.cs" "c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\nieuws2\4b1282eb\21f369a6\App_Web_ubdv7moc.4.cs" "c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\nieuws2\4b1282eb\21f369a6\App_Web_ubdv7moc.5.cs" "c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\nieuws2\4b1282eb\21f369a6\App_Web_ubdv7moc.6.cs"


Microsoft (R) Visual C# 2008 Compiler version 3.5.30729.1
for Microsoft (R) .NET Framework version 3.5
Copyright (C) Microsoft Corporation. All rights reserved.

h:\blogengine\themes\Hawkinsstraat\PostView.ascx.cs(15,24): warning CS0109: The member 'themes_MarketPlace1_0_PostView.Page_Load(object, System.EventArgs)' does not hide an inherited member. The new keyword is not required.
h:\blogengine\themes\Hawkinsstraat\PostView.ascx.cs(17,14): error CS0117: 'BlogEngine.Core.Web.Controls.PostViewBase' does not contain a definition for 'Page_Load'
h:\blogengine\themes\Hawkinsstraat\site.master.cs(29,14): warning CS0219: The variable 'found' is assigned but its value is never used

--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.3615; ASP.NET Version:2.0.50727.3618 

Commenting out these lines will load the theme but - obviously - does not show the posts.

 

It is probably something really easy but I'm out of ideas ... so does anybody have any thoughts on how to solve this?

If it helps the theme can be downloaded here: http://www.hawkinsstraat.nl/downloads/hawkinsstraat_theme.zip

 

Thank you & kind regards,

Harold Kip

 

Coordinator
Jan 6, 2011 at 11:03 PM

Just glancing at the code (I haven't downloaded it), I would try removing the "new" keyword:

protected new void Page_Load(object sender, EventArgs e)

 

Jan 6, 2011 at 11:07 PM
Edited Jan 6, 2011 at 11:08 PM

Hi Ben,

Thank you for your swift answer. Unfortunately removing the 'new' keyword doesn't help although it does change the compiler output.

Any other ideas?

Compilation Error

Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: CS0117: 'BlogEngine.Core.Web.Controls.PostViewBase' does not contain a definition for 'Page_Load'

Source Error:

 
Line 15:     protected void Page_Load(object sender, EventArgs e)
Line 16:     {
Line 17:         base.Page_Load(sender, e);
Line 18:     }
Line 19: 


Source File: h:\blogengine\themes\Hawkinsstraat\PostView.ascx.cs    Line: 17


Show Detailed Compiler Output:

c:\windows\system32\inetsrv> "c:\WINDOWS\Microsoft.NET\Framework\v3.5\csc.exe" /t:library /utf8output /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Configuration\2.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.ServiceModel.Web\3.5.0.0__31bf3856ad364e35\System.ServiceModel.Web.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Web.Extensions\3.5.0.0__31bf3856ad364e35\System.Web.Extensions.dll" /R:"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\2f63353d\ef4e3cc2\App_Code.lqrsvduw.dll" /R:"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\2f63353d\ef4e3cc2\assembly\dl3\6034ffad\00bee392_c1aacb01\BlogEngine.Core.DLL" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Runtime.Serialization\3.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.ServiceModel\3.0.0.0__b77a5c561934e089\System.ServiceModel.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.IdentityModel\3.0.0.0__b77a5c561934e089\System.IdentityModel.dll" /R:"C:\WINDOWS\assembly\GAC_32\System.Data\2.0.0.0__b77a5c561934e089\System.Data.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Management\2.0.0.0__b03f5f7f11d50a3a\System.Management.dll" /R:"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\2f63353d\ef4e3cc2\App_global.asax.cltjb13b.dll" /R:"C:\WINDOWS\assembly\GAC_32\System.EnterpriseServices\2.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Web.Mobile\2.0.0.0__b03f5f7f11d50a3a\System.Web.Mobile.dll" /R:"C:\WINDOWS\assembly\GAC_32\System.Web\2.0.0.0__b03f5f7f11d50a3a\System.Web.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Xml\2.0.0.0__b77a5c561934e089\System.Xml.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Xml.Linq\3.5.0.0__b77a5c561934e089\System.Xml.Linq.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.WorkflowServices\3.5.0.0__31bf3856ad364e35\System.WorkflowServices.dll" /R:"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\2f63353d\ef4e3cc2\assembly\dl3\51bd18b1\0056198c_b0a9cb01\AjaxMin.DLL" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Web.Services\2.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dll" /R:"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\2f63353d\ef4e3cc2\assembly\dl3\61a855a3\0056198c_b0a9cb01\BlogML.DLL" /R:"C:\WINDOWS\assembly\GAC_MSIL\System\2.0.0.0__b77a5c561934e089\System.dll" /R:"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\2f63353d\ef4e3cc2\App_GlobalResources.bibnoegs.dll" /R:"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mscorlib.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Core\3.5.0.0__b77a5c561934e089\System.Core.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Data.DataSetExtensions\3.5.0.0__b77a5c561934e089\System.Data.DataSetExtensions.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Drawing\2.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll" /out:"c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\2f63353d\ef4e3cc2\App_Web_15b8_lld.dll" /debug- /optimize+ /w:4 /nowarn:1659;1699;1701 /warnaserror-  "c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\2f63353d\ef4e3cc2\App_Web_15b8_lld.0.cs" "c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\2f63353d\ef4e3cc2\App_Web_15b8_lld.1.cs" "c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\2f63353d\ef4e3cc2\App_Web_15b8_lld.2.cs" "c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\2f63353d\ef4e3cc2\App_Web_15b8_lld.3.cs" "c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\2f63353d\ef4e3cc2\App_Web_15b8_lld.4.cs"


Microsoft (R) Visual C# 2008 Compiler version 3.5.30729.1
for Microsoft (R) .NET Framework version 3.5
Copyright (C) Microsoft Corporation. All rights reserved.

h:\blogengine\themes\Hawkinsstraat\PostView.ascx.cs(17,14): error CS0117: 'BlogEngine.Core.Web.Controls.PostViewBase' does not contain a definition for 'Page_Load'
Coordinator
Jan 6, 2011 at 11:14 PM

I downloaded the theme.  Just one more change to make.  Comment out or remove that line (line # 17) where the error is occurring.

base.Page_Load(sender, e);

Jan 6, 2011 at 11:25 PM
Edited Jan 6, 2011 at 11:41 PM

Thank you again, Ben.

I tried that before and then it didn't work. But now it does!

See http://www.hawkinsstraat.nl/nieuws/

 

I shouldn't post questions at 1 AM ... :o)