Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Upgrade 4.0.3 to 4.3 Displayname ErrorUpgrade 4.0.3 to 4.3 Displayname Error
Previous
 
Next
New Post
6/14/2006 11:17 AM
 

I tried to upgrade my working 4.0.3 site to 4.3. I first copied the new 4.3 install over my old 4.0.3 site. Then I replaced my values in the new release.config and renamed to web.config like I always do. Then when I startup the web site I get a Displayname Error as shown below. How do I fix this? Thanks.

DisplayName

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.IndexOutOfRangeException: DisplayName

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[IndexOutOfRangeException: DisplayName]
   System.Data.ProviderBase.FieldNameLookup.GetOrdinal(String fieldName) +1358599
   System.Data.SqlClient.SqlDataReader.GetOrdinal(String name) +102
   System.Data.SqlClient.SqlDataReader.get_Item(String name) +12
   DotNetNuke.Security.Membership.AspNetMembershipProvider.FillUserInfo(Int32 portalId, IDataReader dr, Boolean isHydrated, Boolean CheckForOpenDataReader) +247
   DotNetNuke.Security.Membership.AspNetMembershipProvider.GetUser(Int32 portalId, Int32 userId, Boolean isHydrated) +43
   DotNetNuke.Entities.Portals.PortalSettings.GetPortalSettings(Int32 TabId, PortalAliasInfo objPortalAliasInfo) +799
   DotNetNuke.Common.Globals.GetHostPortalSettings() +214
   DotNetNuke.Common.Globals.GetPortalSettings() +79
   DotNetNuke.HttpModules.AuthenticationModule.Init(HttpApplication application) +12
   System.Web.HttpApplication.InitModules() +267
   System.Web.HttpApplication.InitInternal(HttpContext context, HttpApplicationState state, MethodInfo[] handlers) +1251
   System.Web.HttpApplicationFactory.GetNormalApplicationInstance(HttpContext context) +243
   System.Web.HttpApplicationFactory.GetApplicationInstance(HttpContext context) +106
   System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +214


Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42


Jerry J. Jansen Developer/Webmaster
 
New Post
6/17/2006 4:46 PM
 

Note that I am using the source version (DotNetNuke_4.3.0_Source.zip). I unzipped it over my 4.0.3 version. When I just tried to open the site with IE I got the same error. I then used VS 2005 to execute a Rebuild on the solution and then executed a Build Web Site. Everything works now.  Note that if you run VS 2005 in debug you will get an IndexOutOfRange warning  in this function:

 

       Public Shared Function GetUser(ByVal portalId As Integer, ByVal   userId As Integer, ByVal isHydrated As Boolean) As UserInfo

 

            Return memberProvider.GetUser(portalId, userId, isHydrated)

 

        End Function

 

I just clicked Continue and everything worked. Note that I have just tried this on my experimental 4.0.3 site not on anything that matters yet!

 
New Post
6/26/2006 1:22 PM
 

I just tried 4.3.1 and again I still get the same displayname error. I found out that the error is line 310 of aspnetmembershipprovider.vb.

objUserInfo.DisplayName = Convert.ToString(dr("DisplayName"))

Anyone know who to fix this? Sorry but a bit new to asp .net programming. Thanks.


Jerry J. Jansen Developer/Webmaster
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...Upgrade 4.0.3 to 4.3 Displayname ErrorUpgrade 4.0.3 to 4.3 Displayname Error


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

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

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. 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.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out