DNN Forums

Ask questions about your website to get help learning DNN and help resolve issues.

ToggleUserMode 500

 7 Replies
 2 Subscribed to this topic
 40 Subscribed to this forum
Sort:
Author
Messages
New Around Here
Posts: 13
New Around Here

I have searched and tested everything I found on google concerning this error, maybe someone can translate these error codes
Your help will be very much valued

Chrome Console

https://mydomain.XX/API/i...olBar/ToggleUserMode 500 (Internal Server Error)
send @ jquery.js?cdv=1446:11
ajax @ jquery.js?cdv=1446:11
rawCall @ sf.js?cdv=1446:89
call @ sf.js?cdv=1446:100
post @ sf.js?cdv=1446:104
toogleUserMode @ main.js?cdv=1446:1086
(anonymous) @ main.js?cdv=1446:1089
handleClosePersonarBar @ main.js?cdv=1446:146
handleEdit @ main.js?cdv=1446:1088
dispatch @ jquery.js?cdv=1446:6
q.handle @ jquery.js?cdv=1446:6

ERROR LOG
2020-11-20
 00:04:33,200 [RD00155D586853][Thread:11][ERROR] DotNetNuke.Common.Internal.EventHandlersContainer`1[[DotNetNuke.Entities.Tabs.Actions.ITabSyncEventHandler, DotNetNuke, Version=9.8.0.0, Culture=neutral, PublicKeyToken=null]] - The type initializer for 'DotNetNuke.ExtensionPoints.ExtensionPointManager' threw an exception.
System.TypeInitializationException: The type initializer for 'DotNetNuke.ExtensionPoints.ExtensionPointManager' threw an exception. ---> System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.CodeAnalysis, Version=2.9.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified.
   at System.ModuleHandle.ResolveType(RuntimeModule module, Int32 typeToken, IntPtr* typeInstArgs, Int32 typeInstCount, IntPtr* methodInstArgs, Int32 methodInstCount, ObjectHandleOnStack type)
   at System.ModuleHandle.ResolveTypeHandleInternal(RuntimeModule module, Int32 typeToken, RuntimeTypeHandle[] typeInstantiationContext, RuntimeTypeHandle[] methodInstantiationContext)
   at System.Reflection.RuntimeModule.ResolveType(Int32 metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments)
   at System.Reflection.CustomAttribute.FilterCustomAttributeRecord(CustomAttributeRecord caRecord, MetadataImport scope, Assembly& lastAptcaOkAssembly, RuntimeModule decoratedModule, MetadataToken decoratedToken, RuntimeType attributeFilterType, Boolean mustBeInheritable, Object[] attributes, IList derivedAttributes, RuntimeType& attributeType, IRuntimeMethodInfo& ctor, Boolean& ctorHasParameters, Boolean& isVarArg)
   at System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeModule decoratedModule, Int32 decoratedMetadataToken, Int32 pcaCount, RuntimeType attributeFilterType, Boolean mustBeInheritable, IList derivedAttributes, Boolean isDecoratedTargetSecurityTransparent)
   at System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeAssembly assembly, RuntimeType caType)
   at System.Reflection.RuntimeAssembly.GetCustomAttributes(Type attributeType, Boolean inherit)
   at Microsoft.Internal.AttributeServices.GetAttributes[T](ICustomAttributeProvider attributeProvider)
   at Microsoft.Internal.AttributeServices.GetFirstAttribute[T](ICustomAttributeProvider attributeProvider)
   at System.ComponentModel.Composition.Hosting.AssemblyCatalog.get_InnerCatalog()
   at System.ComponentModel.Composition.Hosting.AssemblyCatalog.GetEnumerator()
   at System.Linq.EnumerableQuery`1.GetEnumerator()
   at System.Linq.EnumerableQuery`1.System.Collections.Generic.IEnumerable.GetEnumerator()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at DotNetNuke.ExtensionPoints.SafeDirectoryCatalog..ctor(String directory)
   at DotNetNuke.ExtensionPoints.ExtensionPointManager.InitializeMefCompositionContainer()
   at DotNetNuke.ExtensionPoints.ExtensionPointManager..cctor()
   --- End of inner exception stack trace ---
   at DotNetNuke.ExtensionPoints.ExtensionPointManager.ComposeParts(Object[] attributeParts)
   at DotNetNuke.Common.Internal.EventHandlersContainer`1..ctor()

toggleusermode

New Around Here
Posts: 13
New Around Here

when using personabar PAGES/
and selecting a page menu dropdown EDIT

Page loads with error. https://website.org/Defau...nvocation.&content=0
Reloading the page maintains the error

Admin Log shows:

AbsoluteURL:/Default.aspx

DefaultDataProvider:DotNetNuke.Data.SqlDataProvider, DotNetNuke

ExceptionGUID:f7f7ddd2-3593-4a06-9c47-25118fa79609

AssemblyVersion:9.8.0

PortalId:0

UserId:1

TabId:114

RawUrl:/Default.aspx?tabid=114&error=Exception+has+been+thrown+by+the+target+of+an+invocation.&content=0

Referrer:https://nvl.org/om-nvl/in-english

UserAgent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.67 Safari/537.36

ExceptionHash:I/Mp/KHISCzxAaXgCig6AtA/JF4=

Message:Exception has been thrown by the target of an invocation.

StackTrace:


 

 

InnerMessage:Exception has been thrown by the target of an invocation.

InnerStackTrace:

   at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)
   at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
   at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
   at System.Activator.CreateInstance[T]()
   at DotNetNuke.Framework.ServiceLocator`2.InitInstance() in D:\a\1\s\DNN Platform\Library\Framework\ServiceLocator.cs:line 47
   at System.Lazy`1.CreateValue()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Lazy`1.get_Value()
   at DotNetNuke.Framework.ServiceLocator`2.get_Instance() in D:\a\1\s\DNN Platform\Library\Framework\ServiceLocator.cs:line 74
   at Dnn.EditBar.UI.Items.AddModuleMenu.Visible() in D:\a\1\s\Dnn.AdminExperience\EditBar\Dnn.EditBar.UI\Items\AddModuleMenu.cs:line 56
   at Dnn.EditBar.UI.Controllers.EditBarController.<>c.b__3_0(BaseMenuItem m) in D:\a\1\s\Dnn.AdminExperience\EditBar\Dnn.EditBar.UI\Controllers\EditBarController.cs:line 72
   at System.Linq.Enumerable.WhereListIterator`1.MoveNext()
   at System.Linq.Buffer`1..ctor(IEnumerable`1 source)
   at System.Linq.OrderedEnumerable`1.d__1.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at Dnn.EditBar.UI.Controllers.EditBarController.GetMenuItems() in D:\a\1\s\Dnn.AdminExperience\EditBar\Dnn.EditBar.UI\Controllers\EditBarController.cs:line 71
   at Dnn.EditBar.UI.Controllers.ContentEditorManager.OnInit(EventArgs e) in D:\a\1\s\Dnn.AdminExperience\EditBar\Dnn.EditBar.UI\Controllers\ContentEditorManager.cs:line 113
   at System.Web.UI.Control.InitRecursive(Control namingContainer)
   at System.Web.UI.Control.AddedControl(Control control, Int32 index)
   at System.Web.UI.ControlCollection.Add(Control child)
   at Dnn.EditBar.UI.HttpModules.EditBarModule.OnSkinInit(Object sender, SkinEventArgs e) in D:\a\1\s\Dnn.AdminExperience\EditBar\Dnn.EditBar.UI\HttpModules\EditBarModule.cs:line 80
   at DotNetNuke.UI.Skins.Skin.InvokeSkinEvents(SkinEventType skinEventType) in D:\a\1\s\DNN Platform\Library\UI\Skins\Skin.cs:line 799
   at DotNetNuke.UI.Skins.Skin.OnInit(EventArgs e) in D:\a\1\s\DNN Platform\Library\UI\Skins\Skin.cs:line 541
   at Mandeeps.DNN.Skins.Porto.Home.OnInit(EventArgs e)
   at System.Web.UI.Control.InitRecursive(Control namingContainer)
   at System.Web.UI.Control.AddedControl(Control control, Int32 index)
   at System.Web.UI.ControlCollection.Add(Control child)
   at DotNetNuke.Framework.DefaultPage.OnInit(EventArgs e) in D:\a\1\s\DNN Platform\Website\Default.aspx.cs:line 296
   at System.Web.UI.Control.d__225.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Util.WithinCancellableCallbackTaskAwaitable.WithinCancellableCallbackTaskAwaiter.GetResult()
   at System.Web.UI.Page.d__523.MoveNext()

 

Source:

FileName:

FileLineNumber:0

FileColumnNumber:0

Method:

Server Name: RD0015xxx53

Veteran Member
Posts: 1246
Veteran Member
MVP
MVP
You're an MVP!
Is this a new install? An upgrade?
New Around Here
Posts: 13
New Around Here

its an upgrade from 9.3.2
as said works fine locally but unfortunatly not on  production Azure server

Veteran Member
Posts: 1246
Veteran Member
MVP
MVP
You're an MVP!
That's probably a clue ...
New Around Here
Posts: 13
New Around Here
I installed website with most of install / release files and then upgraded over that. and got it working.
thanks for suggestion Joe Craig
Veteran Member
Posts: 1246
Veteran Member
MVP
MVP
You're an MVP!
I'm glad yo got it working!
New Around Here
Posts: 0
New Around Here
The installation works locally, but not on the production Azure server since it's an upgrade from 9.3.2. My method was to install most of the installation and release files, then upgrade them later. I got it to work from https://calculerunpourcentage.net/.

These Forums are for the discussion of the open source CMS DNN platform and ecosystem.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. If you have (suspected) security issues, please DO NOT post them in the forums but instead follow the official DNN security policy
  2. No Advertising. This includes the promotion of commercial and non-commercial products or services which are not directly related to DNN.
  3. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  4. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  5. No Flaming or Trolling.
  6. No Profanity, Racism, or Prejudice.
  7. Site Moderators have the final word on approving / removing a thread or post or comment.
  8. English language posting only, please.

Would you like to help us?

Awesome! Simply post in the forums using the link below and we'll get you started.

Get Involved