Object cannot be cast from DBNull to other types
Last Post 03/03/2006 5:08 AM by Lee Sykes. 1 Replies.
Author Messages
Lokesh Sharma
Nuke Active Member
Nuke Active Member
Posts:29


--
03/02/2006 2:12 PM  
Hi,

When  I go onto my website, Im have this error message. I really don't know what I have done wrong. For this website im using access database(dotnetnuke).

Can u pls help.

See error message below:

Object cannot be cast from DBNull to other types.

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.InvalidCastException: Object cannot be cast from DBNull to other types.

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:

[InvalidCastException: Object cannot be cast from DBNull to other types.]
System.DBNull.System.IConvertible.ToInt32(IFormatProvider provider) +48
System.Convert.ToInt32(Object value) +36
DotNetNuke.PortalSettings.GetPortalSettings(Int32 TabId, Int32 PortalId) +7053
DotNetNuke.PortalSettings..ctor(Int32 tabId, Int32 PortalId) +253
DotNetNuke.Global.Application_BeginRequest(Object sender, EventArgs e) +759
System.Web.SyncEventExecutionStep.System.Web.HttpApplication+IExecutionStep.Execute() +60
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +87


Version Information: Microsoft .NET Framework Version:1.1.4322.2300; ASP.NET Version:1.1.4322.2300
Lee Sykes
DNN Creative Staff
Nuke Master VI
Nuke Master VI
Posts:4945


--
03/03/2006 5:08 AM  
Hello,

I can't tell from that what the error could be. - Is this after creating your own module.
It seems as though there is a Null value in a table somewhere that is causing problems.

Have a look in Your Admin/Log files to see the error & it should tell you which module is causing
the problem, you might be able to track it down from there.

Thanks,
Lee Sykes
Site Administrator
Subscribe to the website : DotNetNuke Video Tutorials : The Skinning Toolkit : DotNetNuke Podcasts

Twitter: www.twitter.com/DNNCreative

Lee Sykes's Facebook Profile


---