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 StartedNew to DNN Plat...New to DNN Plat...Critical Error - Object reference not set to an instance of an object.Critical Error - Object reference not set to an instance of an object.
Previous
 
Next
New Post
2/8/2011 12:25 PM
 
I'm pretty new at DotNetNuke. I'm developing my 2nd site using DNN and had no problems whatsoever with the first site. However, I developed the 2nd site on one server (my development server) and then moved it to another server (my client's server) to launch. However, when we got to the new server, we discovered an error on the home page. I've searched the forums and, although I've found other posts that have a similar error message, I haven't found anything that has helped me.

There is a module that contains a flash file on the home page. When logged out of the site, it does not appear at all. When I log in (as a superuser) and attempt to edit the module, a critical error occurs as soon as I save that indicates "Object reference not set to an instance of an object."  I tried re-uploading the flash file and re-inserting it into the module, but I always get the same error. After doing some testing, I discovered that I seem to get this error for other modules on the home page, but not any other page on the site. The home page uses a different template; could this be a contributing factor? If so, how can I test this?

The client has not granted me FTP access to their servers, so everything I do has to be through the interface. I also have not been granted SQL access (nor am I experienced at directly editing db tables).

Here are the details of the error from the Event Log:

AssemblyVersion: 5.6.0
PortalID: 0
PortalName: CGE Development
UserID: 1
UserName: frogisland
ActiveTabID: 40
ActiveTabName: Home
RawURL: /Home/tabid/40/ctl/Edit/mid/462/Default.aspx
AbsoluteURL: /Default.aspx
AbsoluteURLReferrer: http://test.gocge.com/Home/tabid/40/ctl/Edit/mid/462/Default.aspx
UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8 ( .NET CLR 3.5.30729; .NET4.0E)
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: de59760c-4400-43ae-82e3-db1a5d054596
InnerException: Object reference not set to an instance of an object.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: DotNetNuke.UI.Skins.Skin.AddModuleMessage
StackTrace:
Message: DotNetNuke.Services.Exceptions.PageLoadException: Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object. at DotNetNuke.UI.Skins.Skin.AddModuleMessage(Control objControl, String Heading, String Message, ModuleMessageType objModuleMessageType, String IconSrc) at DotNetNuke.UI.Skins.Skin.AddModuleMessage(Control objControl, String Heading, String Message, ModuleMessageType objModuleMessageType) at DotNetNuke.Modules.Html.EditHtml.cmdSave_Click(Object sender, EventArgs e) at DotNetNuke.UI.WebControls.CommandButton.OnButtonClick(EventArgs e) at DotNetNuke.UI.WebControls.CommandButton.RaiseClick(Object sender, EventArgs e) at System.Web.UI.WebControls.LinkButton.OnClick(EventArgs e) at System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument) at System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace ---
Source:
Server Name: LINCWEB1


I'm also including a second entry in the event log, which is showing in the log under my username, but I don't know if it's relevant or not. If not, please ignore it. I assume too much information is better than not enough.

AssemblyVersion: 5.6.0
PortalID: 0
PortalName: CGE Development
UserID: 1
UserName: frogisland
ActiveTabID: 40
ActiveTabName: Home
RawURL: /Home/tabid/40/ctl/Edit/mid/462/Default.aspx
AbsoluteURL: /Default.aspx
AbsoluteURLReferrer: http://test.gocge.com/Home/tabid/40/ctl/Edit/mid/462/Default.aspx
UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8 ( .NET CLR 3.5.30729; .NET4.0E)
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: 4fc35793-47eb-42fc-ada1-b9326a0f318a
InnerException: Deleted 0 files, however, some files are locked. Could not delete the following files: C:\Websites\CGE_DNN\Portals\0\Cache\Pages\182_ACABA51644A302FBB325E30E7931BAF8.attrib.resources;C:\Websites\CGE_DNN\Portals\0\Cache\Pages\182_ACABA51644A302FBB325E30E7931BAF8.data.resources;
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: DotNetNuke.Services.ModuleCache.FileProvider.Remove
StackTrace:
Message: System.IO.IOException: Deleted 0 files, however, some files are locked. Could not delete the following files: C:\Websites\CGE_DNN\Portals\0\Cache\Pages\182_ACABA51644A302FBB325E30E7931BAF8.attrib.resources;C:\Websites\CGE_DNN\Portals\0\Cache\Pages\182_ACABA51644A302FBB325E30E7931BAF8.data.resources; at DotNetNuke.Services.ModuleCache.FileProvider.Remove(Int32 tabModuleId) at DotNetNuke.Entities.Modules.ModuleController.SynchronizeModule(Int32 moduleID) at DotNetNuke.Modules.Html.HtmlTextController.UpdateHtmlText(HtmlTextInfo htmlContent, Int32 MaximumVersionHistory) at DotNetNuke.Modules.Html.EditHtml.cmdSave_Click(Object sender, EventArgs e)
Source:
Server Name: LINCWEB1
 
New Post
2/8/2011 5:30 PM
 
What module is it? Did you check that it has view permission for all users in the module settings?

One thing you can check is to make sure that asp.net or the network service account as read/write/modify permissions on the root directory. Try this, go to host settings and click Restart Application at the bottom of the page. If you get an error, likely the correct permissions are not employed.
 
New Post
2/8/2011 5:32 PM
 
BTW, I see the flash when I go to http://test.gocge.com/
 
New Post
2/8/2011 7:18 PM
 
Thanks for the feedback. After posting this, I decided to just rebuild the entire page. I think it was actually the text module on the page that was throwing out the error, but not sure why it affected the display of the Flash module.

When you visited the page, it was probably shortly after I rebuilt it.

It would be nice if the error message indicated the module or the code that was throwing the error. It seemed as if the error message pointed to the DNN method, but not the affected module.

Thanks for responding to my question.
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedNew to DNN Plat...New to DNN Plat...Critical Error - Object reference not set to an instance of an object.Critical Error - Object reference not set to an instance of an object.


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