I’ve now got a solution for this, thankfully.
Just to recap on the original problem:
I had modified the templatebase.cs code behind file in order to include several vertical componentart menus. Despite this woking on my local machine, I was getting the following compilation error on the live site:
Code:
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: CS0101: The namespace 'AspDotNetStorefront' already contains a definition for 'TemplateBase'
Source Error:
Line 29: /// so users can create new skins WITHOUT having to recompile, or even have VS.NET, etc...
Line 30: /// </summary>
Line 31: public class TemplateBase : System.Web.UI.UserControl
Line 32: {
Line 33:
Source File: d:\Domains\trustytoys.co.uk\wwwroot\App_Code\Copy Of TemplateBase.cs Line: 31
Here's what he problem was:
I had kept a copy of the untouched templatebase.cs file, renamed copy of templatebase.cs in the app_code folder, in case I ever wanted to revert to the out-of-the-box menu layout. However, as the original file and the copy were in the same directory, the application was getting confused as to which one to use.
The *SHOW DETAILED COMPILER OUTPUT* section on the error message contained the pertinent information:
Code:
d:\Domains\trustytoys.co.uk\wwwroot\App_Code\Copy Of TemplateBase.cs(31,18): error CS0101: The namespace 'AspDotNetStorefront' already contains a definition for 'TemplateBase'
d:\Domains\trustytoys.co.uk\wwwroot\App_Code\templatebase.cs(31,18): (Location of symbol related to previous error)
The solution was simply to delete the copy of templatebase.cs and the site started working.
All credit goes to Hans Solomon at Applied Innovations where the site is hosted for figuring this out.
Regards,
Stuart
www.trustytoys.co.uk