Installation and deployment Questions on installation, system configuration and deployment to the live server.
Version 5.x > Installation and deployment > Site Import on Webfarm View modes: 
User avatar
Member
Member
Knox - 3/28/2011 9:29:44 AM
   
Site Import on Webfarm
I am trying to import some updates to my site. My site is running on a 2 server web farm.

When I do I receive the following error:
=============================================
Server Error in '/' Application.
--------------------------------------------------------------------------------

[ImportWizard.ImportSettings]: Import settings has been lost.
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.Exception: [ImportWizard.ImportSettings]: Import settings has been lost.

Source Error:


Line 148: if (settings == null)
Line 149: {
Line 150: throw new Exception("[ImportWizard.ImportSettings]: Import settings has been lost.");
Line 151: }
Line 152: return settings;


Source File: CMSModules\ImportExport\Controls\ImportWizard.ascx.cs Line: 150

Stack Trace:


[Exception: [ImportWizard.ImportSettings]: Import settings has been lost.]
CMSModules_ImportExport_Controls_ImportWizard.get_ImportSettings() in CMSModules\ImportExport\Controls\ImportWizard.ascx.cs:150
CMSModules_ImportExport_Controls_ImportWizard.Page_Load(Object sender, EventArgs e) in CMSModules\ImportExport\Controls\ImportWizard.ascx.cs:249
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
CMS.ExtendedControls.AbstractUserControl.OnLoad(EventArgs e) +47
CMS.UIControls.CMSUserControl.OnLoad(EventArgs e) +73
System.Web.UI.Control.LoadRecursive() +50
System.Web.UI.Control.LoadRecursive() +141
System.Web.UI.Control.LoadRecursive() +141
System.Web.UI.Control.LoadRecursive() +141
System.Web.UI.Control.LoadRecursive() +141
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627




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

The event log shows:

=============================================
EventID: 21307

EventType: E

EventTime: 3/28/2011 8:28:34 AM

Source: Application_Error

EventCode: EXCEPTION

UserID: 70

UserName: MyAdminUser

IPAddress: MyIPAddress

EventDescription: Message: [ImportWizard.ImportSettings]: Import settings has been lost.
Stack Trace:
at CMSModules_ImportExport_Controls_ImportWizard.get_ImportSettings() in CMSModules\ImportExport\Controls\ImportWizard.ascx.cs:line 150
at CMSModules_ImportExport_Controls_ImportWizard.Page_Load(Object sender, EventArgs e) in CMSModules\ImportExport\Controls\ImportWizard.ascx.cs:line 249
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 CMS.ExtendedControls.AbstractUserControl.OnLoad(EventArgs e)
at CMS.UIControls.CMSUserControl.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)


Site: CMS Portal

EventUrl: /CMSModules/ImportExport/SiteManager/ImportSite.aspx

EventMachineName: MyWebServer2

EventUserAgent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; AskTbFXTV5/5.9.1.14019)

EventUrlReferrer: CMSModules/ImportExport/SiteManager/ImportSite.aspx
=============================================

Any ideas what might be causing this problem?

Thanks for any help.


User avatar
Kentico Developer
Kentico Developer
kentico_ivanat - 3/28/2011 2:45:31 PM
   
RE:Site Import on Webfarm
Hi,

Could you please answer following questions?

1. Could you please check whether you have Write permissions set on ~/App_Data/Persistent folder? This folder is used, when the site is imported (import settings are stored here). When the application is restarted, the settings are read from the file in this folder. It seems that file was not created for some reason.

2. Is your Managed Pipeline Mode setting for your Application pool on IIS set to Classic or Integrated? Could you please select Classic?

3. Is enough application memory assigned to your account on your server, system probably got restated and therefore all the import settings have been lost. You could try to increase it according to limit application memory article.

4. Is this the only app on the server?

5. What does Task manager show while the app is running and what happens up to app crash?

6. This could be also database based/related issue. Could you please let me know your database size?

7. Also, please try to read blogpost about hosting environment exceptions.

8. Alternatively, you could try to use content staging to make changes on one web farm server. This in not as much memory consuming as site import.

Best regards,
Ivana Tomanickova