Hello,
the problem I have is that DotNetNuke doesn't give me the desired detailed debug output when an operation in a module fails.
The error I get right know is the red error message from module message in the Skins folder.
e.g. A critical error has occurred.
Exception has been thrown by the target of an invocation.
I would like to know wich target and wich invocation of course.
so I added this line to the Page_load of ModuleMessage :
Case UI.Skins.Controls.ModuleMessage.ModuleMessageType.RedError
strMessage += Me.Text
strMessage += Server.GetLastError().ToString() ' added
I don't know if this is going to give me the desired output because I've got problems compiling 4.6.2
The error message I get is the following :
Server Error in '/DotNetNuke' Application.
Value cannot be null.
Parameter name: type
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.ArgumentNullException: Value cannot be null.
Parameter name: type
Source Error:
Line 80:
Line 81: 'Determine the Upgrade status and redirect to Install.aspx
Line 82: Select Case GetUpgradeStatus()
Line 83: Case Globals.UpgradeStatus.Install
Line 84: If AutoUpgrade Then
|
Source File: D:\websites\DotNetNuke\App_Code\Global.asax.vb Line: 82
Stack Trace:
[ArgumentNullException: Value cannot be null.
Parameter name: type]
System.Activator.CreateInstance(Type type, Boolean nonPublic) +2861599
System.Activator.CreateInstance(Type type) +6
DotNetNuke.Framework.Reflection.CreateObject(String TypeName, String CacheKey, Boolean UseCache) +49
DotNetNuke.Framework.Reflection.CreateObject(String ObjectProviderType, String ObjectProviderName, String ObjectNamespace, String ObjectAssemblyName, Boolean UseCache) +892
DotNetNuke.Framework.Reflection.CreateObject(String ObjectProviderType, String ObjectNamespace, String ObjectAssemblyName) +45
DotNetNuke.Data.DataProvider.CreateProvider() +54
DotNetNuke.Data.DataProvider..cctor() +28
[TypeInitializationException: The type initializer for 'DotNetNuke.Data.DataProvider' threw an exception.]
DotNetNuke.Data.DataProvider.Instance() +0
DotNetNuke.Entities.Portals.PortalSettings.GetProviderPath() +24
DotNetNuke.Common.Globals.GetUpgradeStatus() +147
DotNetNuke.Common.Global.CheckVersion() in D:\websites\DotNetNuke\App_Code\Global.asax.vb:82
DotNetNuke.Common.Global.Application_Start(Object Sender, EventArgs E) in D:\websites\DotNetNuke\App_Code\Global.asax.vb:310
|
Version Information: Microsoft .NET Framework Version:2.0.50727.1378; ASP.NET Version:2.0.50727.1378
What can I do about this, can someone point me in the right direction please?