Page view counter

DNN 3.0.13 after install error An unhandled error has occurred

Last post 04-05-2006 2:48 PM by rmerritt. 13 replies.

Sort Posts:

  • DNN 3.0.13 after install error An unhandled error has occurred

    04-07-2005, 8:38 PM
    • Loading...
    • netrunner1987
    • Joined on 06-19-2002, 8:47 PM
    • Posts 12
    • Points 55

    I already searched and didn't find anything that would help me, so leads me to post here.  After 2nd clean install of DNN 3.0.13 and DB, I am still getting "An unhandled error has occurred."  when I hit the site. The url is http://localhost/dotnetnuke/Default.aspx?error=Object+reference+not+set+to+an+instance+of+an+object.&content=0

    Hitting http://localhost or http://localhost/dotnetnuke gets the same error.

    I don't have VS.NET, so I can't compile it here at work.

    Any suggestions would be great.  Windows 2K Server, SQL 2K, MS .Net Framework 1.1 hotfix.

     

    thanks

    mjc

  • Re: DNN 3.0.13 after install error An unhandled error has occurred

    04-07-2005, 11:23 PM
    • Loading...
    • ecktwo
    • Joined on 02-18-2003, 11:51 PM
    • Posts 564
    • Points 2,830

    Post the full error message.

  • Re: DNN 3.0.13 after install error An unhandled error has occurred

    04-08-2005, 6:40 PM
    • Loading...
    • netrunner1987
    • Joined on 06-19-2002, 8:47 PM
    • Posts 12
    • Points 55

    The only thing displayed on the web browser is

     An unhandled error has occurred.

     

    and the url now says http://localhost/Default.aspx?error=Object+reference+not+set+to+an+instance+of+an+object.&content=0

    but I typed in http://localhost , I get the same response if I do http://localhost/dotnetnuke

    Any suggestions

    thanks

     

  • Re: DNN 3.0.13 after install error An unhandled error has occurred

    04-08-2005, 9:02 PM
    • Loading...
    • ecktwo
    • Joined on 02-18-2003, 11:51 PM
    • Posts 564
    • Points 2,830

    How did you mapped both //localhost and //localhost/dotnetnuke?  Do you have two instances installed?

    If you have one set of files in //localhost, and another at //localhost/dotnetnuke, remove the //localhost instance..

     

  • Re: DNN 3.0.13 after install error An unhandled error has occurred

    04-12-2005, 2:45 PM
    • Loading...
    • jshockley
    • Joined on 04-10-2005, 2:45 PM
    • Seattle, WA
    • Posts 5
    • Points 25

    I am getting the same error after updating 2.1.2 to 3.0.13. All it says on the page is "An unhandled error has occured" with the link that the original poster put in.

    Now, I complied it on my VS.Net and got no errors there. Any ideas?

    Need more information?

    Jared Shockley
    http://www.empowersmallbusiness.com
    http://www.jaredshockley.com
  • Re: DNN 3.0.13 after install error An unhandled error has occurred

    04-19-2005, 5:35 PM
    • Loading...
    • lablack
    • Joined on 04-18-2004, 3:47 PM
    • Posts 11
    • Points 55

    I have the exact same problem on a complet fresh install of DNN 3.0.13 on Windows 2003 Small Business Server using SQLServer.
    Installation went smooth, but when I click the "Click here to access your portal", I get "An error has occurred" (written twice actually)

    What options do I have to try to locate this error? Can I get any useful info by enabling debug in the web.config?

    Cheers,
    Lars

  • Re: DNN 3.0.13 after install error An unhandled error has occurred

    05-05-2005, 10:53 PM
    • Loading...
    • netrunner1987
    • Joined on 06-19-2002, 8:47 PM
    • Posts 12
    • Points 55

    I am still having this error when I do a fresh install of DB and DNN.  I can't be the only one having this type of problem?  I also tried this on my laptop and it worked.. I odd thing, I got DNN 3.0.12 working on my dev server and that worked 100%, then I did an upgrade to DNN 3.0.13, and was hit with the same error.  Have been trying to get DNN 3.0.12 back working and now I am getting that error now.  So both of my DNN 3.0.12 and 3.0.13 installs won't work.. It says in the install page that everything was ok, and when you click to see your portal.. http://localhost/dotnetnuke/Default.aspx?error=Object+reference+not+set+to+an+instance+of+an+object.&content=0

    An unhandled error has occurred.

    I even watched the video to install and got the same error.

    thanks

    netrunner

  • Re: DNN 3.0.13 after install error An unhandled error has occurred

    05-11-2005, 10:45 AM
    • Loading...
    • rfinsel
    • Joined on 04-17-2004, 1:09 PM
    • Mobile, AL
    • Posts 21
    • Points 105

    Same problem here too.

    I ugraded my local DNN 3.1.2 to 3.1.3 Upgrade went smoothly and everything worked. I then uploaded the files and database to my production server. On my first visit the install ran without any errors. I clicked on click here to view your portal and now I am getting the same error as netrunner.

    Does anybody have a suggestion as to how to correct this or even what might be causing it?

     

    thanx

     

    Update:

    I actually got an error message on one of my attempts to browse the portal.

    Server Error in '/' Application.

    Object reference not set to an instance of an object.

    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.NullReferenceException: Object reference not set to an instance of an object.

    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:

    [NullReferenceException: Object reference not set to an instance of an object.]
       DotNetNuke.Services.Localization.Localization.GetString(String name, String ResourceFileRoot, PortalSettings objPortalSettings) +130
       DotNetNuke.Services.Localization.Localization.GetString(String name, String ResourceFileRoot) +60
       DotNetNuke.Services.Localization.Localization.LocalizeTabStripDetails(ArrayList arrTabStripDetails) +152
       DotNetNuke.Services.Localization.Localization.LocalizePortalSettings() +56
       DotNetNuke.Framework.PageBase.OnInit(EventArgs e) +220
       System.Web.UI.Control.InitRecursive(Control namingContainer) +241
       System.Web.UI.Page.ProcessRequestMain() +197
    
    [PageLoadException: Object reference not set to an instance of an object.]
       DotNetNuke.Services.Exceptions.Exceptions.ProcessPageLoadException(Exception exc, String URL) +350
       DotNetNuke.Framework.PageBase.Page_Error(Object Source, EventArgs e) +366
       System.Web.UI.TemplateControl.OnError(EventArgs e) +109
       System.Web.UI.Page.HandleError(Exception e) +68
       System.Web.UI.Page.ProcessRequestMain() +2100
       System.Web.UI.Page.ProcessRequest() +218
       System.Web.UI.Page.ProcessRequest(HttpContext context) +18
       System.Web.CallHandlerExecutionStep.System.Web.HttpApplication+IExecutionStep.Execute() +179
       System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +87

  • Re: DNN 3.0.13 after install error An unhandled error has occurred

    05-25-2005, 7:09 PM
    • Loading...
    • Jesarino
    • Joined on 05-24-2005, 8:54 PM
    • Posts 5
    • Points 25
    I'm having the same problem, has anyone figured this out?
  • Re: DNN 3.0.13 after install error An unhandled error has occurred

    06-11-2005, 12:01 AM
    • Loading...
    • twister
    • Joined on 08-12-2002, 11:59 PM
    • Posts 10
    • Points 50

    *bump*

    I'm having this same issue with a clean install of 3.0.13 over at Interland...

    Chris

  • Re: DNN 3.0.13 after install error An unhandled error has occurred

    06-11-2005, 2:17 PM
    • Loading...
    • twister
    • Joined on 08-12-2002, 11:59 PM
    • Posts 10
    • Points 50
    You're not going to believe this one... !?!?!?!

    As you know, DNN has an 'admin' directory on its root directory. My host's (Interland) control panel is set to be accessible via a virtual alias named "admin" off the web root. I believe there's a direct conflict between the two.

    So, every time DNN tries to hit the DNN admin directory (http://xxx.xxx.xxx.xxx/admin/), it gets redirected over to the control panel.

    Last night, I sent Interland a support email requesting they resolve this somehow and suggested they might change the control panel alias to something that wouldn't conflict with DNN, like (http://xxx.xxx.xxx.xxx/cp/). In part, here was their response:

    "Since you are in the shared servers, the URL: http://xxx.xxx.xxx.xxx/admin has already been set in the servers as the URL to access your admin page. We cannot do the changes that you have requested. We apologize for any inconvenience this may have caused. Please contact us should you have additional issues or questions."

    In the first case, I can't believe a host as big as Interland hasn't run up on this before... second, I can't believe anyone would put up with "We cannot do the changes that you have requested" as a legitimate response to this issue. Give me a break - I would have expected this kind of response out of a host that charges $2.95/month; not from a leading provider that I just siged a 24 month contract with.

    Thanks to IcthusTech for pointing this solution out: http://forums.asp.net/562020/ShowPost.aspx.

    Now if I can just reach someone at Interland that understands a thing or two about customer service...

    Chris

  • solution: DNN 3.0.13 after install error An unhandled error has occurred:

    07-07-2005, 7:07 AM
    • Loading...
    • docteurDenis
    • Joined on 06-17-2005, 11:23 AM
    • web programmer
    • Posts 2
    • Points 10
    Hi,

    I had the same problem: "Object reference not set exception" thrown in LocalizeTabStripDetails function.

    This comes from a bug in Localisation.vb. This happens when "ShowMissingKeys" is set to False in Web.config and no translation is found in localisation ressources files. The GetString function load translations in a hasthtable and return the value associated with a key. If there is no translation and ShowMissingKeys is set to true, it returns the "RESX: " + the key. But if ShowMissingKeys is set to false, it still try to return the unexistant value of the hashtable. This hasthtable does not nave this key, that's why it throw the "object reference  not set exception".

    SOLUTION:
    You have to either set ShowMissingKeys to true, or correct the bug in the source file, compile the DotNetNuke core and deploy it. You have to change the function with this signature (line 505 in Localisation\Localisation.vb):
    Public Shared Function GetString(ByVal name As String, ByVal ResourceFileRoot As String, ByVal objPortalSettings As PortalSettings) As String

    In the If resources(name) Is Nothing part of the function, it should return something either if ShowMissingKeys is set to true or false in Web.config. Here is the portion of the function to change. The added part is in red:

    If showMissingKeys Then
        Return "RESX:" & name
     
    Else
       
    Return name.Replace(".Text", "").Replace(".String", "")
    End If


    The Replace method is only use to erase the suffixes, it is mandatory to correct the bug.
    ---------------------------------------------------------------------------

    Complete function listing:
    Public Shared Function GetString(ByVal name As String, ByVal ResourceFileRoot As String, ByVal objPortalSettings As PortalSettings) As String

                'Load the Local Resource Files resources
                Dim resources As Hashtable = GetResource(ResourceFileRoot, objPortalSettings)

                'make the default translation property ".Text"
                If name.IndexOf(".") < 1 Then
                    name += ".Text"
                End If

                'If the key can't be found try the Shared Resource Files resources
                If resources Is Nothing OrElse resources(name) Is Nothing Then
                    resources = GetResource(Localization.SharedResourceFile, objPortalSettings)
                End If

                'If the key still can't be found then it doesn't exist in the Localization Resources
                If resources(name) Is Nothing Then
                    'This has to be replaced with a function that will add the key to the xml file (autofill)
                    'Throw New Exception("Value not found in resources.xml for: " + name)
                    Debug.WriteLine("Value not found in resources.xml for: " + name + " in " + ResourceFileRoot)
                    'simply return the localization key if nothing is found in the resource file.
                    'This will at least prevent an error
                    'check for setting in web.config
                    Dim showMissingKeys As Boolean
                    If System.Configuration.ConfigurationSettings.AppSettings("ShowMissingKeys") Is Nothing Then
                        showMissingKeys = False
                    Else
                        showMissingKeys = Boolean.Parse(System.Configuration.ConfigurationSettings.AppSettings("ShowMissingKeys"))
                    End If
                    If showMissingKeys Then
                        Return "RESX:" & name
                    Else
                        Return name.Replace(".Text", "").Replace(".String", "")

                    End If
                End If

                Return CStr(resources(name))

            End Function


    Regards
    Denis Sauvé

    DS
  • Re: DNN 3.0.13 after install error An unhandled error has occurred

    12-26-2005, 8:58 PM
    • Loading...
    • tungdh
    • Joined on 07-10-2005, 9:14 AM
    • Posts 13
    • Points 65
    I have the same problem. You can try to open this website to see more http://elearningvn.com
  • Re: DNN 3.0.13 after install error An unhandled error has occurred

    04-05-2006, 2:48 PM
    • Loading...
    • rmerritt
    • Joined on 06-17-2005, 11:26 AM
    • Posts 30
    • Points 150

    Object reference not set to an instance of an object.

    What happened to me was that i had upgraded my Web site to 3.2.2 by unzipping the the new version 3.2.2 over the top of version 3.1.1 on the production server and everything went great.

    and then i changed my web.config on my development server and uploaded it to the production server and I got Object reference not set to an instance of an object.

    I never transfered the upgraded web.config file to development before I made my edits.

    I fixed it by transfering my release.config to my development machine copy and pasted my settings (see below) from web.config to the release.config and renamed the release.config to web.config uploaded it and everything is back to normal.

     <add key="SiteSqlServer" value="Server=***;Database=***;uid=***;pwd=***;" />
        <add key="MachineValidationKey" value="4F55CB7D0186E80C025E0CEFF5FF8B353936FCE7" />
        <add key="MachineDecryptionKey" value="53AA0D039422AEE9E93EAB06BC9B46051DC7E39F32A18989" />

    I also needed to get my FCK Editor changes put back into my web.config

    Hope this helps.

     

Page 1 of 1 (14 items)