|
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?
|
|
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?
|
|
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.aspxConfiguration 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.
|
|
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.
|
|
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
|
|
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?
|
|
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.
|
|
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
|
|
Rank: Member Groups: Member
Joined: 2/16/2011 Posts: 12 Points: 36
|
I changed into that version.But i still get same error.
|
|
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.
|
|
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.
|
|
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.
-=-=-=-=-=-=-
|
|
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.
|
|
Guest |