Login

Username

Password





Register   Reset password

This is a read-only archive of the forum.

# alpa 8/15/2011 10:50 PM
I am using Cuyahoga 2.0 and Site runs under full trust.But sometimes not always i get this error.

The container has not been initialized!

What shoul I do?
# alpa 8/18/2011 6:21 PM
When I made a space(for example an enter), nothing changed in the web.config, but cuyahoga runs at that time.

But i am doing this always, Where is the main problem and is there a permanent solution?
# Constructor 8/19/2011 6:22 PM (edited 8/19/2011 6:23 PM)
alpaWhen I made a space(for example an enter), nothing changed in the web.config, but cuyahoga runs at that time.

But i am doing this always, Where is the main problem and is there a permanent solution?

What is your hosting environment?

What source code are you using? (link)

Check this regarding web.config

http://msdn.microsoft.com/en-us/library/ackhksh7.aspx

Configuration Changes Cause a Restart of the Application Domain

Changes to configuration settings in Web.config files indirectly cause the application domain to restart. This behavior occurs by design. You can optionally use the configSource attribute to reference external configuration files that do not cause a restart when a change is made. For more information, see configSource in General Attributes Inherited by Section Elements.
# alpa 8/19/2011 7:21 PM
Host provides framework 2.0 and asp.net. I am using C sharp language.

Ok web config cause a restart of the application domain. But why must i do always? What happens and after that I have to change the web.config.

# alpa 8/20/2011 4:31 PM
This is the error.Sometimes i get this error.
----------------------------------------------------------------------
The container has not been initialized!
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.InvalidOperationException: The container has not been initialized!

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:

[InvalidOperationException: The container has not been initialized!]
Cuyahoga.Core.Util.IoC.get_Container() in D:\Degisim\DeIMS\Cuyahoga.Core\Util\IoC.cs:22
Cuyahoga.Core.Util.IoC.Resolve() in D:\Degisim\DeIMS\Cuyahoga.Core\Util\IoC.cs:73
Cuyahoga.Web.HttpModules.AuthenticationModule.Init(HttpApplication context) in D:\Degisim\DeIMS\Cuyahoga.Web\HttpModules\AuthenticationModule.cs:23
System.Web.HttpApplication.InitModulesCommon() +65
System.Web.HttpApplication.InitModules() +43
System.Web.HttpApplication.InitInternal(HttpContext context, HttpApplicationState state, MethodInfo[] handlers) +729
System.Web.HttpApplicationFactory.GetNormalApplicationInstance(HttpContext context) +298
System.Web.HttpApplicationFactory.GetApplicationInstance(HttpContext context) +107
System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +289
# Constructor 8/21/2011 9:31 AM
Can you provide a link to the source code you are using?
# alpa 8/21/2011 10:29 AM
I am using "Cuyahoga-2.0-Alpha-161010". But now i can not find in sourceforge or in this site.
# Constructor 8/21/2011 3:57 PM
alpaI am using "Cuyahoga-2.0-Alpha-161010". But now i can not find in sourceforge or in this site.

Is that the version with MVC admin? If not then try this version : https://github.com/constructor/Cuyahoga
# alpa 9/8/2011 10:53 AM
I changed into that version.But i still get same error.
# Constructor 9/8/2011 10:08 PM (edited 9/8/2011 10:17 PM)
alpaI changed into that version.But i still get same error.

Describe the steps you take to get the error so I can replicate.

Make sure you have .net installed and up to date.

I can't think of anything else without more information.

I have not had any errors in use for a long time.
# alpa 9/8/2011 11:55 PM (edited 9/10/2011 12:32 PM)
I am using Version: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053

I just added modules to the cuyahoga.modules project.Each module is a file.

And after that, i published and i uploaded to the host.I use web site for ten minutes or more.I get this error.Actually i don't know when it happens and what causes to it.




When i get this error, i change the web config.It works correctly.The error goes.It needs to be restart.I did not change now.

I don't know what to do, how can i fix.I did not change cuyahoga architecture.
# modark 9/9/2011 3:55 PM

I have seen this error a few times when i was upgrading to Framework 4.0

Probably you're running your website is ASP.NET Integrated mode, try ASP.NET 2.0 Classic mode.

Hope this helps.
# alpa 9/10/2011 12:31 PM
I changed from integrated mode to classical mode.But Same thing happens.I still get same error. This error does not happens in the first time when i publish.I use web site for a short time. After that it happens. and it is like pandora.What is the real reason? i have no idea.