Products » Support Forums 

Support Forums

HomeHomeDotNetNuke Modu...DotNetNuke Modu...Friendly Url Pr...Friendly Url Pr...Object reference not set to an instance of an object. on domain.com,but not domain.com/default.aspx Object reference not set to an instance of an object. on domain.com,but not domain.com/default.aspx
Previous
 
Next
New Post
1/13/2010 9:05 AM
 

Hi Bruce,

On development enviroment all run great, but in production enviroment i have following problem:
when i type to web browser root domain url: www.domain.com i get error "Object reference not set to an instance of an object." (see below)
when i type to web browser url: www.domain.com/default.aspx - home start, but when i login, DNN administration panel is invisible on home page, but on other is visible. Interesting is when i type FIRST www.domain.com i get error. when i type www.domain.com/default.aspx and then type www.domain.com home page show.
Additional info: DNN 5.1.4 with slovak language, english is not enable, iFinity.FriendlyUrlProvider_05.01.00, w2k8 (IIS7),
Can you help me, please?

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:

The source code that generated this unhandled exception can only be shown when compiled in debug mode. To enable this, please follow one of the below steps, then request the URL:

1. Add a "Debug=true" directive at the top of the file that generated the error. Example:

  <%@ Page Language="C#" Debug="true" %>

or:

2) Add the following section to the configuration file of your application:

<configuration>
   <system.web>
       <compilation debug="true"/> -->this i have allow in my web.config, but this page still shows
   </system.web>
</configuration>

Note that this second technique will cause all files within a given application to be compiled in debug mode. The first technique will cause only that particular file to be compiled in debug mode.

Important: Running applications in debug mode does incur a memory/performance overhead. You should make sure that an application has debugging disabled before deploying into production scenario.

Stack Trace:

[NullReferenceException: Object reference not set to an instance of an object.]
   DotNetNuke.Framework.PageBase.get_PageCulture() +694
   DotNetNuke.Framework.PageBase.OnInit(EventArgs e) +156
   System.Web.UI.Control.InitRecursive(Control namingContainer) +333
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +378

[PageLoadException: Object reference not set to an instance of an object.]
   DotNetNuke.Services.Exceptions.Exceptions.ProcessPageLoadException(Exception exc, String URL) +278
   DotNetNuke.Framework.PageBase.OnError(EventArgs e) +395
   System.Web.UI.Page.HandleError(Exception e) +84
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +6776
   System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +242
   System.Web.UI.Page.ProcessRequest() +80
   System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) +21
   System.Web.UI.Page.ProcessRequest(HttpContext context) +49
   ASP.default_aspx.ProcessRequest(HttpContext context) +37
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +181
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75


Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3072

 
New Post
1/13/2010 11:54 AM
 

First thing to check - do you have /default.aspx setup as the default document for your website?

Was this site working OK before you added in the friendly url provider?  Did the www.domain.com Url work before you turned on the Friendly Url Provider?

 
New Post
1/14/2010 6:11 PM
 

Thank you Bruce for your jet-speed reply, i was waiting, but notification didn't come.
So..
1.Yes default.aspx is the default document in IIS
2.Yes
www.domain.com work before turned on the Friendly Url Provider

Try:
drevstav
.nazaret.sk - page with turned ON the Friendly Url Provider - ERROR
drevstavslovakia.sk - identical page with turned OFF the Friendly Url Provider - OK

When i switch configuration as following:

drevstav.nazaret.sk - page with turned OFF the Friendly Url Provider - OK
drevstavslovakia.sk - identical page with turned ON the Friendly Url Provider- ERROR

Here is the threat on this problem in dotnetnuke forum:
http://www.dotnetnuke.com/Community/Forums/tabid/795/forumid/107/postid/344445/scope/posts/Default.aspx

Thank you very much for your interesting and reply.

 
New Post
1/15/2010 8:56 AM
 

The linked DNN forum post says that it's an infinite loop problem.  Is that what the issue is?  Have you verified a 301 redirect loop with Firefox (ie won't load, Firefox will show an 'infinite loop' warning.

If so, it may be that you have selected the option to redirect the /default.aspx Url to the site root ?  You can't do this unless you set up 'wildcard' extensions on the server.

 
New Post
1/15/2010 11:57 AM
 

Hi Bruce,
Sorry, you are right, linked DNN forum post is about another problem(infinite loop),
in my case FF and IE have same behavior:error(Object reference not set..) and
I experimented:I set
redirection in IIS to the site root and then FF report me about redirect loop,
so I have another problem, no redirect loop.

http://localhost/drevstavslovakia - ON and OFF Friendly URL provider - OK

but in production-hosted enviroment work only with OFF Friendly URL provider.

What setting would i set in dev-local IIS, that i
reproduce this error behavior like on the hosted page.

Can you give me another suggestions, please?

 
Previous
 
Next
HomeHomeDotNetNuke Modu...DotNetNuke Modu...Friendly Url Pr...Friendly Url Pr...Object reference not set to an instance of an object. on domain.com,but not domain.com/default.aspx Object reference not set to an instance of an object. on domain.com,but not domain.com/default.aspx


Support Guidelines.. Please read before posting

To get support on iFinity products and services, please search the forums for the the answer to the problem you are seeking. If you cannot find a solution, post a question in the relevant forum.   Ensure that you specify the relevant versions of the problem, and the actual error message or a detailed description of the problem.    You will need to register with this site to post on the forum.  If you have a Microsoft Live (Hotmail/Passport) account you can use that.  If you have a Open Id account you can use that.  If you neither of these, you will need to register a user Id and password.