Login

Username

Password





Register   Reset password

Get Cuyahoga at SourceForge.net. Fast, secure and Free Open Source software downloads

Forum

Welcome Guest Search | Active Topics | Members

The container has not been initialized! Options
alpa
Posted: Monday, August 15, 2011 1:50:16 PM
Rank: Member
Groups: Member

Joined: 2/16/2011
Posts: 12
Points: 36
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
Posted: Thursday, August 18, 2011 9:21:25 AM
Rank: Member
Groups: Member

Joined: 2/16/2011
Posts: 12
Points: 36
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
Posted: Friday, August 19, 2011 9:22:25 AM
Rank: Administration
Groups: Administration , Member

Joined: 10/7/2008
Posts: 505
Points: 1,515
alpa wrote:
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?


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
Posted: Friday, August 19, 2011 10:21:25 AM
Rank: Member
Groups: Member

Joined: 2/16/2011
Posts: 12
Points: 36
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
Posted: Saturday, August 20, 2011 7:31:36 AM
Rank: Member
Groups: Member

Joined: 2/16/2011
Posts: 12
Points: 36
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
Posted: Sunday, August 21, 2011 12:31:16 AM
Rank: Administration
Groups: Administration , Member

Joined: 10/7/2008
Posts: 505
Points: 1,515
Can you provide a link to the source code you are using?
alpa
Posted: Sunday, August 21, 2011 1:29:27 AM
Rank: Member
Groups: Member

Joined: 2/16/2011
Posts: 12
Points: 36
I am using "Cuyahoga-2.0-Alpha-161010". But now i can not find in sourceforge or in this site.
Constructor
Posted: Sunday, August 21, 2011 6:57:49 AM
Rank: Administration
Groups: Administration , Member

Joined: 10/7/2008
Posts: 505
Points: 1,515
alpa wrote:
I 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
Posted: Thursday, September 8, 2011 1:53:04 AM
Rank: Member
Groups: Member

Joined: 2/16/2011
Posts: 12
Points: 36
I changed into that version.But i still get same error.
Constructor
Posted: Thursday, September 8, 2011 1:08:26 PM
Rank: Administration
Groups: Administration , Member

Joined: 10/7/2008
Posts: 505
Points: 1,515
alpa wrote:
I 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
Posted: Thursday, September 8, 2011 2:55:13 PM
Rank: Member
Groups: Member

Joined: 2/16/2011
Posts: 12
Points: 36
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
Posted: Friday, September 9, 2011 6:55:31 AM

Rank: Member
Groups: Member

Joined: 11/12/2009
Posts: 23
Points: 69

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
Posted: Saturday, September 10, 2011 3:31:51 AM
Rank: Member
Groups: Member

Joined: 2/16/2011
Posts: 12
Points: 36
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.
Users browsing this topic
Guest


Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Main Forum RSS : RSS

Yet Another Forum.net version 1.9.0 running under Cuyahoga.
Copyright © 2003-2006 Yet Another Forum.net. All rights reserved.