YAFLogo

nguyenhuuanh
14 years ago
DotNetNuke.Services.Exceptions.ModuleLoadException: Exception has been thrown by the target of an invocation. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information. at System.Reflection.Module._GetTypesInternal(StackCrawlMark& stackMark) at System.Reflection.Module.GetTypes() at YAF.Modules.YafModuleManager`1.FindModules(IList assemblies, String moduleNamespace, String moduleBaseInterface) at YAF.Modules.YafModuleManager`1.AddModules(List`1 assemblies) at YAF.Modules.YafBaseModuleManager..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 YAF.Classes.Pattern.SingleClassInstanceFactory.GetInstance[T]() at YAF.Classes.Core.YafContext.get_BaseModuleManager() at YAF.Forum..ctor() at ASP.desktopmodules_yetanotherforumdotnet_yafdnnmodule_ascx.__BuildControlForum1() at ASP.desktopmodules_yetanotherforumdotnet_yafdnnmodule_ascx.__BuildControlpnlModuleContent() at ASP.desktopmodules_yetanotherforumdotnet_yafdnnmodule_ascx.__BuildControlTree(desktopmodules_yetanotherforumdotnet_yafdnnmodule_ascx __ctrl) at ASP.desktopmodules_yetanotherforumdotnet_yafdnnmodule_ascx.FrameworkInitialize() at System.Web.UI.UserControl.InitializeAsUserControlInternal() at System.Web.UI.TemplateControl.LoadControl(IWebObjectFactory objectFactory, VirtualPath virtualPath, Type t, Object[] parameters) at System.Web.UI.TemplateControl.LoadControl(VirtualPath virtualPath) at System.Web.UI.TemplateControl.LoadControl(String virtualPath) at DotNetNuke.UI.ControlUtilities.LoadControl[T](TemplateControl containerControl, String ControlSrc) at DotNetNuke.UI.Modules.ModuleHost.LoadModuleControl() --- End of inner exception stack trace ---

PLEASE HELP ME. I'M VIETNAMESE, ENGLISH BAD. hi

Sponsor
tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.1 BETA
14 years ago
Try my extended dnn module version

YAF-DNN5-Module 1.9.4.0 SVN 3431

http://my-dnn.de/t6BXk 

nguyenhuuanh
14 years ago
Thanks for tha_watcha. Very good.
nguyenhuuanh
14 years ago
When i create forum, Error

The INSERT statement conflicted with the FOREIGN KEY SAME TABLE constraint "FK_yaf_Forum_yaf_Forum". The conflict occurred in database "frlmkhdb", table "dbo.yaf_Forum", column 'ForumID'. Cannot insert the value NULL into column 'ForumID', table 'frlmkhdb.dbo.yaf_ForumAccess'; column does not allow nulls. INSERT fails. The statement has been terminated. The statement has been terminated.

Step following

UserPostedImage

Thanks for help me.:o

tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.1 BETA
14 years ago
This might look like a bug in the latest yaf svn source.

I guess this will be fixed soon.

tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.1 BETA
14 years ago
Already fixed [YAF-78]

My Dnn Package has been Updated to SVN 3433

YAF-DNN5-Module 1.9.4.0 SVN 3433

my-dnn.de/t6BXk 

Dont forget to run the DB Upgrade Installer (/DesktopModules/YetAnotherForumdotNET/Install/)

nguyenhuuanh
14 years ago
I have a problem:

I use the host account to log on to the forum, but I do not read articles by me or someone created, but if I can read that article in Active Discussions.

The forum I have setup guest: read only, administrator:admin, user regitered: member access...

Please help me

Demo here 

user admin: test pass:1234567

igrena.inc
14 years ago
Hi,

I am having the same issue as described in the original post.

I've got the latest installation package - version YAFDNN_Complete_1.94.0_SVN-3436.

My DNN version is 5.4.2; on the Module Definition page in DNN, YAF version is specified as 1.94.8.

Here is excerpt from the Log Viewer


Method: System.Reflection.Module._GetTypesInternal
StackTrace: 
Message: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information. at System.Reflection.Module._GetTypesInternal(StackCrawlMark& stackMark) at System.Reflection.Module.GetTypes() at YAF.Modules.YafModuleManager`1.FindModules(IList assemblies, String moduleNamespace, String moduleBaseInterface) at YAF.Modules.YafModuleManager`1.AddModules(List`1 assemblies) at YAF.Modules.YafBaseModuleManager..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 YAF.Classes.Pattern.SingleClassInstanceFactory.GetInstance[T]() at YAF.Classes.Core.YafContext.get_BaseModuleManager() at YAF.Forum..ctor() at YAF.DotNetNuke.YafDnnModule.InitializeComponent() at YAF.DotNetNuke.YafDnnModule.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 .....[skipped]....

Thanks for your help!

tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.1 BETA
14 years ago
Did you Upgrade from and previous version?
igrena.inc
14 years ago

Did you Upgrade from and previous version?

tha_watcha wrote:

no, it was a new installation

nCdy
  • nCdy
  • 57.2% (Neutral)
  • YAF Camper
14 years ago
hm... installed lastest versions got same error as on first post
tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 4.0.1 BETA
14 years ago

hm... installed lastest versions got same error as on first post

nCdy wrote:

Did you try the build from yesterday 3454?

nCdy
  • nCdy
  • 57.2% (Neutral)
  • YAF Camper
14 years ago
Made installation (http://localhost/DesktopModules/YetAnotherForumDotNet/install/) using it :

    <roleManager enabled="true" defaultProvider="AspNetSqlRoleProvider">
      <providers>
        <clear />
        <add connectionStringName="SiteSqlServer" applicationName="DotNetNuke" name="AspNetSqlRoleProvider" type="System.Web.Security.SqlRoleProvider" />
      </providers>
    </roleManager>
    <profile enabled="true" defaultProvider="AspNetSqlProfileProvider" inherits="YAF.Classes.Utils.YafUserProfile">
      <providers>
        <clear />
        <add connectionStringName="SiteSqlServer" applicationName="DotNetNuke" name="YafProfileProvider" type="YAF.Providers.Profile.YafProfileProvider" />
        <add connectionStringName="SiteSqlServer" applicationName="DotNetNuke" name="AspNetSqlProfileProvider" type="System.Web.Profile.SqlProfileProvider" />
      </providers>
    </profile>

But anyways got this error when adding module on portal :

DotNetNuke.Services.Exceptions.ModuleLoadException: Exception has been thrown by the target of an invocation. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information. at System.Reflection.Module._GetTypesInternal(StackCrawlMark& stackMark) at System.Reflection.Module.GetTypes() at YAF.Modules.YafModuleManager`1.FindModules(IList assemblies, String moduleNamespace, String moduleBaseInterface) at YAF.Modules.YafModuleManager`1.AddModules(List`1 assemblies) at YAF.Modules.YafBaseModuleManager..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 YAF.Classes.Pattern.SingleClassInstanceFactory.GetInstance[T]() at YAF.Classes.Core.YafContext.get_BaseModuleManager() at YAF.Forum..ctor() at ASP.desktopmodules_yetanotherforumdotnet_yafdnnmodule_ascx.__BuildControlForum1() at ASP.desktopmodules_yetanotherforumdotnet_yafdnnmodule_ascx.__BuildControlpnlModuleContent() at ASP.desktopmodules_yetanotherforumdotnet_yafdnnmodule_ascx.__BuildControlTree(desktopmodules_yetanotherforumdotnet_yafdnnmodule_ascx __ctrl) at ASP.desktopmodules_yetanotherforumdotnet_yafdnnmodule_ascx.FrameworkInitialize() at System.Web.UI.UserControl.InitializeAsUserControlInternal() at System.Web.UI.TemplateControl.LoadControl(IWebObjectFactory objectFactory, VirtualPath virtualPath, Type t, Object[] parameters) at System.Web.UI.TemplateControl.LoadControl(VirtualPath virtualPath) at System.Web.UI.TemplateControl.LoadControl(String virtualPath) at DotNetNuke.UI.ControlUtilities.LoadControl[T](TemplateControl containerControl, String ControlSrc) at DotNetNuke.UI.Modules.ModuleHost.LoadModuleControl() --- End of inner exception stack trace ---

:(

nguyenhuuanh
14 years ago
Try dnn module version

YAF-DNN5-Module 1.9.4.0 SVN 3454

http://my-dnn.de/t6BXk 

Working.

nCdy
  • nCdy
  • 57.2% (Neutral)
  • YAF Camper
14 years ago
I'm using this version . . .

So , I'll try to reinstall it.

Yes ! It's alive 🙂 Thank you !