Production Site Down - HELP PLEASE
Last Post 03/08/2011 8:01 PM by Joseph Craig. 8 Replies.
Author Messages
visa
Nuker
Nuker
Posts:14


--
02/23/2011 2:01 AM  

Hi

I got the below error for my production site

500 Server Error
An error occured during processing : if possible, check the event log of the server
Exception:
The type initializer for 'DotNetNuke.Security.Roles.RoleController' threw an exception.
Stack Trace:
at DotNetNuke.Security.Roles.RoleController..ctor() at DotNetNuke.Entities.Portals.PortalInfo.get_Adminis tratorRoleName() at DotNetNuke.Entities.Portals.PortalSettings.GetPort alSettings(Int32 tabID, PortalInfo portal) at DotNetNuke.Entities.Portals.PortalSettings..ctor(I nt32 tabID, PortalAliasInfo objPortalAliasInfo) at DotNetNuke.Common.Globals.GetHostPortalSettings() at DotNetNuke.Common.Globals.GetPortalSettings() at iFinity.DNN.Modules.UrlMaster.UrlMasterController. GetTabs(Int32 portalId, Boolean includeStdUrls) at iFinity.DNN.Modules.UrlMaster.TabDictController.Bu ildTabDictionary(PathSizes& pathSizes, FriendlyUrlSettings settings) at iFinity.DNN.Modules.UrlMaster.TabDictController.Fe tchTabDictionary(Int32& minTabPathDepth, Int32& maxTabPathDepth, Int32& minAliasPathDepth, Int32& maxAliasPathDepth, FriendlyUrlSettings settings, Boolean forceRebuild, Boolean bypassCache) at iFinity.DNN.Modules.UrlMaster.RewriteController.Ge tTabFromDictionary(String url, FriendlyUrlSettings settings, UrlAction result) at iFinity.DNN.Modules.UrlMaster.RewriteController.Id entifyByTabPathEx(String absoluteUri, String queryString, UrlAction result, FriendlyUrlSettings settings) at iFinity.DNN.Modules.UrlMaster.UrlRewriteModule.Che ckForRewrite(String fullUrl, String querystring, UrlAction result, Boolean useFriendlyUrls, NameValueCollection queryStringCol, FriendlyUrlSettings settings, Boolean& isPhysicalResource) at iFinity.DNN.Modules.UrlMaster.UrlRewriteModule.Pro cessRequest(HttpContext context, HttpRequest request, HttpServerUtility Server, HttpResponse response, Boolean useFriendlyUrls, String requestType, Uri requestUri, UrlAction result, NameValueCollection queryStringCol, FriendlyUrlSettings settings)


Can anyone help me for this ?

Thanks
Visa
Joseph Craig
DNN MVP
Posts:11667


--
02/23/2011 7:29 AM  
I have more questions than answers to start:

Which version of DotNetNuke?
Has this site been running and now has started throwing the error?
Have you made any changes to the site?
Can you get to any pages?

Some things to try include restarting the site and/or the server. It's possible that this is really a manifestation of not being able to connect to the database server. So, check and make sure that is working. Check to see that the database's transaction log has not filled. If it is, you can clean up some space by backing up the database.

Joe Craig, Patapsco Research Group
Complete DNN Support
Joseph Craig
DNN MVP
Posts:11667


--
02/23/2011 7:30 AM  
Oh, and this is a server error as opposed to a DotNetNuke error, correct? Following the suggestion to have someone look at the server logs might help.

Joe Craig, Patapsco Research Group
Complete DNN Support
visa
Nuker
Nuker
Posts:14


--
02/24/2011 12:47 AM  
Hi

Thanks for your reply.

i am using dnn version 05.02.02.

i have restarted my iis. the site came up. however some times this site going down. especially the week end .

that time usually we will do the iis restart.


I saw the event log. It is showing the below message.

--
TYPE: DotNetNuke.Services.ModuleCache.PurgeModuleCache
EXCEPTION: Exception has been thrown by the target of an invocation.
RESCHEDULED FOR: 2/22/2011 2:02:36 AM
SOURCE: STARTED_FROM_BEGIN_REQUEST
ACTIVE THREADS: -2
FREE THREADS: 3
READER TIMEOUTS: 6
WRITER TIMEOUTS: 7
IN PROGRESS: 0
IN QUEUE: 5




AssemblyVersion: 5.2.2
PortalID: -1
PortalName:
UserID: -1
UserName:
ActiveTabID: -1
ActiveTabName:
RawURL:
AbsoluteURL:
AbsoluteURLReferrer:
UserAgent:
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: 54891eb3-f866-42d9-a341-6e31960579e9
InnerException: Exception has been thrown by the target of an invocation.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: System.ThrowHelper.ThrowArgumentException
StackTrace:
Message: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentException: An item with the same key has already been added. at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource) at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add) at System.Collections.ObjectModel.KeyedCollection`2.AddKey(TKey key, TItem item) at System.Collections.ObjectModel.KeyedCollection`2.InsertItem(Int32 index, TItem item) at System.Collections.ObjectModel.Collection`1.Add(T item) at DotNetNuke.ComponentModel.SimpleContainer.RegisterComponentInstance(String name, Type contractType, Object instance) at DotNetNuke.ComponentModel.AbstractContainer.RegisterComponentInstance[TContract](Object instance) at DotNetNuke.ComponentModel.ComponentFactory.RegisterComponentInstance[TContract](Object instance) at DotNetNuke.Professional.Providers.ModuleCachingProviders.DatabaseProvider.DatabaseProvider..ctor() --- End of inner exception stack trace --- at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandle& ctor, Boolean& bNeedSecurityCheck) at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean fillCache) at System.RuntimeType.CreateInstanceImpl(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean fillCache) at System.Activator.CreateInstance(Type type, Boolean nonPublic) at System.RuntimeType.CreateInstanceImpl(BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) at System.Activator.CreateInstance(Type type, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes) at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams) at System.Type.InvokeMember(String name, BindingFlags invokeAttr, Binder binder, Object target, Object[] args, CultureInfo culture) at DotNetNuke.Framework.Reflection.CreateInstance(Type Type) at DotNetNuke.ComponentModel.SingletonComponentBuilder.CreateInstance() at DotNetNuke.ComponentModel.SingletonComponentBuilder.BuildComponent() at DotNetNuke.ComponentModel.SimpleContainer.GetComponent(IComponentBuilder builder) at DotNetNuke.ComponentModel.SimpleContainer.GetComponent(String name, Type contractType) at DotNetNuke.ComponentModel.AbstractContainer.GetComponent[TContract](String name) at DotNetNuke.ComponentModel.ComponentFactory.GetComponent[TContract](String name) at DotNetNuke.ComponentModel.ComponentFactory.GetComponents[TContract]() at DotNetNuke.Services.ModuleCache.PurgeModuleCache.DoWork()
Joseph Craig
DNN MVP
Posts:11667


--
02/24/2011 7:14 AM  
Are you using any custom modules?

I don't think that the exception you listed is the problem that is bringing down the site.

Is it possible for me to look at the site?

Joe Craig, Patapsco Research Group
Complete DNN Support
visa
Nuker
Nuker
Posts:14


--
02/24/2011 11:19 PM  
Hi

Thanks for your reply.

Sorry you may not be able to view the site.

We are using some special features in our site like ,

Localization

Telerik controls

iFinity



Bruce Chapman
Posts:10


--
02/28/2011 9:37 PM  
The Url Master module is the 'root' of this exception, (as in the call to process request is where it started) but not the cause.

The underlying cause is probably some type of instability in your site. The problem is that the 'portalSettings' object cannot be created correctly. The portalSettings object contains all of the current request portal information, like the domain name, current tab, etc.

See here for other occurences of this issue:
http://www.dotnetnuke.com/Community...fault.aspx
http://www.ifinity.com.au/Products/...cope/posts

This may be related to some type of caching error or something similar. I would clear the cache, recycle the application pool and in general restart everything.
visa
Nuker
Nuker
Posts:14


--
03/01/2011 11:12 PM  
Hi

Thanks for your reply.

We have no iis cache or logs running , it has been disabled
Everyday at 2 am we clear the app pool.
Joseph Craig
DNN MVP
Posts:11667


--
03/08/2011 8:01 PM  
Have you had any success getting things running again?

Joe Craig, Patapsco Research Group
Complete DNN Support


---