error during re-install

Mar 30, 2009 at 9:57 AM
Hi Warren,

I'm playing around with your great kit, but I'm experiencing two problems:
  1. I installed umbraco 4.0.1 and your CWS, changed a lot of things, but get stuck when I tried to change the photo on the homepage. I was able to change the photo but not to change the alternative text. Even skipping the section in the template structure didn't help to get rid of the text.
  2. I decided to start from scratch: destroying and rebuilding the database at my hosting provider, deleting and uploading the file structure to the host (except for the webconfig). No problem with umbraco 4.0.1 but when I tried to install CWS 2.01 again I got the following message:

 

Server Error in '/' Application.

Item has already been added. Key in dictionary: 'cws_contact'  Key being added: 'cws_contact'

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ArgumentException: Item has already been added. Key in dictionary: 'cws_contact'  Key being added: 'cws_contact'

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[ArgumentException: Item has already been added. Key in dictionary: 'cws_contact'  Key being added: 'cws_contact']
   System.Collections.Hashtable.Insert(Object key, Object nvalue, Boolean add) +7482408
   System.Collections.Hashtable.Add(Object key, Object value) +11
   umbraco.cms.businesslogic.template.Template.initTemplateAliases() +170
   umbraco.cms.businesslogic.template.Template.set_Alias(String value) +156
   umbraco.cms.businesslogic.packager.Installer.InstallBusinessLogic(Int32 packageId, String tempDir) +1787
   umbraco.presentation.developer.packages.Installer.processInstall(String currentStep) +180
   umbraco.presentation.developer.packages.Installer.Page_Load(Object sender, EventArgs e) +334
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   umbraco.BasePages.BasePage.OnLoad(EventArgs e) +15
   System.Web.UI.Control.LoadRecursive() +50
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627

 


Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053

<!-- [ArgumentException]: Item has already been added. Key in dictionary: 'cws_contact' Key being added: 'cws_contact' at System.Collections.Hashtable.Insert(Object key, Object nvalue, Boolean add) at System.Collections.Hashtable.Add(Object key, Object value) at umbraco.cms.businesslogic.template.Template.initTemplateAliases() at umbraco.cms.businesslogic.template.Template.set_Alias(String value) at umbraco.cms.businesslogic.packager.Installer.InstallBusinessLogic(Int32 packageId, String tempDir) at umbraco.presentation.developer.packages.Installer.processInstall(String currentStep) at umbraco.presentation.developer.packages.Installer.Page_Load(Object sender, EventArgs e) at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) at System.Web.UI.Control.OnLoad(EventArgs e) at umbraco.BasePages.BasePage.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) [HttpUnhandledException]: Exception of type 'System.Web.HttpUnhandledException' was thrown. at System.Web.UI.Page.HandleError(Exception e) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest() at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) at System.Web.UI.Page.ProcessRequest(HttpContext context) at ASP.umbraco_developer_packages_installer_aspx.ProcessRequest(HttpContext context) in c:\windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\3fa495da\29dc9817\App_Web_installer.aspx.5d1c7564.yocer2il.0.cs:line 0 at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) --><!-- This error page might contain sensitive information because ASP.NET is configured to show verbose error messages using <customErrors mode="Off"/>. Consider using <customErrors mode="On"/> or <customErrors mode="RemoteOnly"/> in production environments.-->


Any idea? Any help would be appreciated

Thx

Christian
Coordinator
Mar 30, 2009 at 10:08 AM

Hello Christian.

The alt text for the homepage photo is inside the CWS_Home.master template inside the Masterpages folder or
in the Settings section under Templates
à Home.

In regards to the error of starting over again. Did you delete the files that package installed like the .master in the masterpages folder as the error below seems to be complaining due to a duplicate template with the same alias of CWS_Contact.master

If you want to start over a fresh I would recommend the following.

Delete all the files at the site root and make a backup of your web.config file

Delete the DB, you used for the umbraco site
and Start completely a fresh again.

I don’t think the package installer in Umbraco checks to see if these items already exist.

Let me know how this goes and give me any more feedback you have.

Many Thanks,
Warren

From: ChristianJ [mailto:notifications@codeplex.com]
Sent: 30 March 2009 10:58
To: Warren Buckley
Subject: error during re-install [umbracocws:51691]

From: ChristianJ

Hi Warren,

I'm playing around with your great kit, but I'm experiencing two problems:

1. I installed umbraco 4.0.1 and your CWS, changed a lot of things, but get stuck when I tried to change the photo on the homepage. I was able to change the photo but not to change the alternative text. Even skipping the section in the template structure didn't help to get rid of the text.

2. I decided to start from scratch: destroying and rebuilding the database at my hosting provider, deleting and uploading the file structure to the host (except for the webconfig). No problem with umbraco 4.0.1 but when I tried to install CWS 2.01 again I got the following message:

Server Error in '/' Application.


Item has already been added. Key in dictionary: 'cws_contact' Key being added: 'cws_contact'

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.ArgumentException: Item has already been added. Key in dictionary: 'cws_contact' Key being added: 'cws_contact'

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


Stack Trace:

[ArgumentException: Item has already been added. Key in dictionary: 'cws_contact'  Key being added: 'cws_contact']
   System.Collections.Hashtable.Insert(Object key, Object nvalue, Boolean add) +7482408
   System.Collections.Hashtable.Add(Object key, Object value) +11
   umbraco.cms.businesslogic.template.Template.initTemplateAliases() +170
   umbraco.cms.businesslogic.template.Template.set_Alias(String value) +156
   umbraco.cms.businesslogic.packager.Installer.InstallBusinessLogic(Int32 packageId, String tempDir) +1787
   umbraco.presentation.developer.packages.Installer.processInstall(String currentStep) +180
   umbraco.presentation.developer.packages.Installer.Page_Load(Object sender, EventArgs e) +334
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   umbraco.BasePages.BasePage.OnLoad(EventArgs e) +15
   System.Web.UI.Control.LoadRecursive() +50
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627


Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053

<!-- [ArgumentException]: Item has already been added. Key in dictionary: 'cws_contact' Key being added: 'cws_contact' at System.Collections.Hashtable.Insert(Object key, Object nvalue, Boolean add) at System.Collections.Hashtable.Add(Object key, Object value) at umbraco.cms.businesslogic.template.Template.initTemplateAliases() at umbraco.cms.businesslogic.template.Template.set_Alias(String value) at umbraco.cms.businesslogic.packager.Installer.InstallBusinessLogic(Int32 packageId, String tempDir) at umbraco.presentation.developer.packages.Installer.processInstall(String currentStep) at umbraco.presentation.developer.packages.Installer.Page_Load(Object sender, EventArgs e) at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) at System.Web.UI.Control.OnLoad(EventArgs e) at umbraco.BasePages.BasePage.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) [HttpUnhandledException]: Exception of type 'System.Web.HttpUnhandledException' was thrown. at System.Web.UI.Page.HandleError(Exception e) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest() at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) at System.Web.UI.Page.ProcessRequest(HttpContext context) at ASP.umbraco_developer_packages_installer_aspx.ProcessRequest(HttpContext context) in c:\windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\3fa495da\29dc9817\App_Web_installer.aspx.5d1c7564.yocer2il.0.cs:line 0 at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) --><!-- This error page might contain sensitive information because ASP.NET is configured to show verbose error messages using <customErrors mode="Off"/>. Consider using <customErrors mode="On"/> or <customErrors mode="RemoteOnly"/> in production environments.-->


Any idea? Any help would be appreciated

Thx

Christian

Read the full discussion online.

To add a post to this discussion, reply to this email (umbracocws@discussions.codeplex.com)

To start a new discussion for this project, email umbracocws@discussions.codeplex.com

You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe or change your settings on codePlex.com.

Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at codeplex.com

Mar 30, 2009 at 1:36 PM
Hi Warren,

thx for your immediaate reply. Both issues are solved now - the text not really being an issue.
I did the same things I did before - also the same things you suggested - , but now
  1. I gave the new database another name
  2. installed everything from a fresh download from codeplex to make sure that I had no problems with file synchronisation via FTP

The result is positive. I'm curious to hear what part of the action actually solved the problem: Is there any content in the database which might be left if my hosting provider does not delete the database as fast as I'm redefine it with the same name or is the content stored in the filesystem and did I have an unwanted  sync?

Thx a lot
Christian 

Apr 9, 2009 at 7:27 PM
I got the same error.

And I followed the above. Created a new database, installed Umbraco into a new directory. Same problem.

In fact I've tried it three time (maybe I was doing something wrong the first times!), still with the same error!

So please help.
Coordinator
Apr 9, 2009 at 7:31 PM
You can't install umbraco into a sub directory which is probably the problem. Ensure you have installed umbraco correctly before trying to install CWS2.0.1

Thanks,

Warren Buckley
A Creative Web Specialist


On 9 Apr 2009, at 20:27, "erikernst" <notifications@codeplex.com> wrote:

From: erikernst

I got the same error.

And I followed the above. Created a new database, installed Umbraco into a new directory. Same problem.

In fact I've tried it three time (maybe I was doing something wrong the first times!), still with the same error!

So please help.
Apr 13, 2009 at 6:34 PM

You misunderstood me. I created a new root directory - removed to old - defined a new web server for my domain. So in my mind then the setup was as clean as possible. The only thing that remained the same was the SQL Server - but I installed into a new database...

And umbraco was working fine.

Coordinator
Apr 14, 2009 at 8:47 AM
Hiya Erikernst.
Can you sepcify in detail what exactly the problem is when installing CWS2.0.1 into Umbraco v4.0.1 ?
Do you have other content already installed in the website. Like documentTypes, CSS or anything else?

Thanks,
Warren