YAFLogo

mikeklare
  • mikeklare
  • 53% (Neutral)
  • YAF Forumling Topic Starter
14 years ago
Microsoft .NET Framework Version:2.0.50727.3082;
ASP.NET Version:2.0.50727.3082
DotNetNuke version: 4.9
LinQ is installed and mapped to .NET Framework 3.5.
YAF version: 1.93-FINAL, I am using the binaries directly from the downloads not compiling my own.
New YAF install, not upgrade.

I get the stack trace below (the top 5 lines) for any call that leads to YafContext.GetProfile(String userName) including:
DisplayPost.get_UserProfile
ProfileYourAccount
ASP.desktopmodules_yetanotherforumdotnet_pages_members_ascx.__DataBind__control4


[ArgumentNullException: Value cannot be null.
Parameter name: type]
   System.Activator.CreateInstance(Type type, Boolean nonPublic) +7467190
   System.Web.Profile.ProfileBase.CreateMyInstance(String username, Boolean isAuthenticated) +79
   System.Web.Profile.ProfileBase.Create(String username, Boolean isAuthenticated) +231
   System.Web.Profile.ProfileBase.Create(String username) +9
   YAF.Classes.Utils.YafContext.GetProfile(String userName) +6
   YAF.Controls.DisplayPost.get_UserProfile() +51
   YAF.Controls.DisplayPost.DisplayPost_PreRender(Object sender, EventArgs e) +2460
   System.Web.UI.Control.OnPreRender(EventArgs e) +8682870
   System.Web.UI.Control.PreRenderRecursiveInternal() +80
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Control.PreRenderRecursiveInternal() +171
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842

I am using this for Providers:

<membership defaultProvider="AspNetSqlMembershipProvider" userIsOnlineTimeWindow="15">
      <providers>
        <clear />
        <add name="AspNetSqlMembershipProvider" type="System.Web.Security.SqlMembershipProvider" connectionStringName="SiteSqlServer" enablePasswordRetrieval="true" enablePasswordReset="true" requiresQuestionAndAnswer="false" minRequiredPasswordLength="7" minRequiredNonalphanumericCharacters="0" requiresUniqueEmail="false" passwordFormat="Encrypted" applicationName="DotNetNuke" description="Stores and retrieves membership data from the local Microsoft SQL Server database" />
      </providers>
    </membership>
    <!-- YAF Support -->
    <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="YAFProfileProvider" inherits="YAF.Classes.Utils.YafUserProfile">
      <providers>
        <clear />
        <add connectionStringName="SiteSqlServer" applicationName="DotNetNuke" name="YafProfileProvider" type="YAF.Providers.Profile.YafProfileProvider" />
      </providers>
    </profile>
    <!-- END YAF -->

Thanks
Sponsor

mikeklare
  • mikeklare
  • 53% (Neutral)
  • YAF Forumling Topic Starter
14 years ago
This is fixed. I'm not sure what I did other than mess with Root in app.config and web.config and re-copy from the zip file YAF-v1.9.3-FINAL-SRC\YetAnotherForum.NET\Bin\Net2.0 to the /DotnetNuke virtual directory/bin
YAF Logo Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved
About Us

The YAF.NET is an open source .NET forum project. YAF.NET is supported by an team of international developers who are build community by building community software.

Powered by Resharper Donate with PayPal button