Technical support This forum is closed.
Version 1.x > Technical support > Error when login into the CMSDesk View modes: 
User avatar
Member
Member
wtijsma - 5/24/2005 1:30:07 PM
   
Error when login into the CMSDesk
Object reference not set to an instance of an object.
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.NullReferenceException: Object reference not set to an instance of an object.

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:


[NullReferenceException: Object reference not set to an instance of an object.]
Kentico.CMS.TreeEngine.VersionManager.PublishVersion(Int32 versionHistoryId)
Kentico.CMS.TreeEngine.VersionManager.PublishAllScheduled()
Kentico.CMS.CMSDesk.Logon.RunScheduledJobs()
Kentico.CMS.CMSDesk.Logon.Page_Load(Object sender, EventArgs e)
System.Web.UI.Control.OnLoad(EventArgs e) +67
System.Web.UI.Control.LoadRecursive() +35
System.Web.UI.Page.ProcessRequestMain() +750



User avatar
Guest
admin - 6/8/2005 6:31:30 PM
   
Re: Error when login into the CMSDesk
Hi Wiebe,

This is usually caused by some configuration issue. Does the problem persist?

Thank you.

Best Regards,

User avatar
Member
Member
wtijsma - 6/9/2005 1:43:56 PM
   
Re: Error when login into the CMSDesk
Don't know, I didn't have time to dive into it because it was in the production environment. I've made a quickfix by putting a try...catch around the

Kentico.CMS.CMSDesk.Logon.RunScheduledJobs()

in

Kentico.CMS.CMSDesk.Logon.Page_Load(Object sender, EventArgs e)

because we don't use the scheduling functionality anyway.

I think I've said this sometimes before, but if it's a configuration issue, please raise an Exception with a useful error message when the configuration settings are read/validated, instead of just assuming the user has already configured his/her application correctly.

I don't have time anymore to step through your code all the time to figure where it goes wrong, and finding out that there's some configuration setting with an invalid value 3 methods back in the stack trace.

Remember, assumption is the mother of all ****ups ;-)

Thanks, Wiebe

User avatar
Member
Member
janusz - 7/25/2005 11:24:22 AM
   
Re: Error when login into the CMSDesk
I am having some problems when starting the web application as well. I have several Kentico instances on different IIS websites and sometimes the Kentico does not want to start. I am waiting for couple of minutes, sometimes trying to refresh the page and nothing happens. Sometime even my computer is going slow and I can see from the task manager that aspnet process has 100% of system resources. From my experience this ussualy happens when the .NET code is looping. I wonder if this is only issue on my machine or it happened to somebody as well? I have not added any code to application_onstart and I am not using scheduled publishing.

Today I got an error message the same as Wiebe. However, after restarting the IIS Kentico starts up well.

Thanks,

Janusz

User avatar
Guest
admin - 7/25/2005 1:45:27 PM
   
Re: Error when login into the CMSDesk
Hi Janusz,

Could you please write me on which operating system this happens to you?

Thank you.

Best Regards,

User avatar
Member
Member
janusz - 7/25/2005 2:08:57 PM
   
Re: Error when login into the CMSDesk
I have MS Windows XP Pro SP2.

And I am using some tweak to be able to use more websites in IIS - but only one can be active at the same time. (cscript adsutil.vbs COPY W3SVC/1 W3SVC/2)

Janusz

User avatar
Member
Member
janusz - 7/25/2005 2:24:19 PM
   
Re: Error when login into the CMSDesk
and IIS version is 5.1

User avatar
Guest
admin - 7/26/2005 1:17:30 PM
   
Re: Error when login into the CMSDesk
Hi Janusz,

Thank you for details. Another customer had a problem on Windows Server 2003 with IIS 6 that resulted in 100% load of processor on the server. It was fixed by setting the application to IIS5 mode. Version 1.7 will contain rewritten CMS Controls that will use StringBuilder instead of string concatenation that could cause such problem.

Unfortunately, I'm not sure if this the same issue and we do not have any similar report from other customers on Windows XP. Still, version 1.7 will be available in a few days and you will see if it has any impact on this strange behavior.

Thank you.

Best Regards,

User avatar
Member
Member
wtijsma - 8/31/2005 4:32:41 PM
   
Re: Error when login into the CMSDesk
Hi,

I had the 100% problems (resulting in a 'Application Unavailable error'), because the main view in the database wasn't set up correctly, because somewhere in the tree provider the database was queried again if a query failed. Resulting in an infinite loop.

The other issue is probably a threading issue, try using the lock(object) statement, and look up how the 'System.Threading.Mutex' object works, wich allows cross-application domain locking of resources.

Luck, Wiebe