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

HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModuleserror-Object reference not set to an instance of an object.error-Object reference not set to an instance of an object.
Previous
 
Next
New Post
3/21/2010 11:55 PM
 

 hi, i'm new to dotnetnuke

while trying to create a module using LINQ

suddenly this error -Object reference not set to an instance of an object.- appear

i check the log viewer :

AssemblyVersion: 5.3.0
PortalID: 0
PortalName: My Website
UserID: 1
UserName: host
ActiveTabID: 62
ActiveTabName: Books2See
RawURL: /betadirview/Books2See.aspx
AbsoluteURL: /BetaDirView/Default.aspx
AbsoluteURLReferrer: http://id-bpn-tst14/betadirview/Books2See.aspx
UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022)
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: 8734f044-bfbd-48b4-824a-238770e3edae
InnerException: Object reference not set to an instance of an object.
FileName: http://server/BetaDirView/DesktopModules/Books2See/View.ascx.vb
FileLineNumber: 34
FileColumnNumber: 13
Method: DotNetNuke.Modules.Books2See.View.LinqDataSource1_Inserting
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.Modules.Books2See.View.LinqDataSource1_Inserting(Object sender, LinqDataSourceInsertEventArgs e) in http://server/BetaDirView/DesktopModules/Books2See/View.ascx.vb:line 34 at System.Web.UI.WebControls.LinqDataSourceView.OnInserting(LinqDataSourceInsertEventArgs e) at System.Web.UI.WebControls.LinqDataSourceView.ExecuteInsert(IDictionary values) at System.Web.UI.DataSourceView.Insert(IDictionary values, DataSourceViewOperationCallback callback) at System.Web.UI.WebControls.FormView.HandleInsert(String commandArg, Boolean causesValidation) at System.Web.UI.WebControls.FormView.HandleEvent(EventArgs e, Boolean causesValidation, String validationGroup) at System.Web.UI.WebControls.FormView.OnBubbleEvent(Object source, EventArgs e) at System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) at System.Web.UI.WebControls.FormViewRow.OnBubbleEvent(Object source, EventArgs e) at System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args) at System.Web.UI.WebControls.Button.OnCommand(CommandEventArgs e) at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) at System.Web.UI.WebControls.Button.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 ---

i don't quite understand it, please help

 

 
New Post
3/22/2010 9:07 AM
 

Around line 34 in View.ascx.vb there is a null reference error - in other words, some object has not been properly initialized. Beyond that, I can't say without seeing your code. If you don't quickly spot the problem, I would suggest setting a breakpoint just before that line and stepping through the code to see where it is blowing up.


Bill, WESNet Designs
Team Lead - DotNetNuke Gallery Module Project (Not Actively Being Developed)
Extensions Forge Projects . . .
Current: UserExport, ContentDeJour, ePrayer, DNN NewsTicker, By Invitation
Coming Soon: FRBO-For Rent By Owner
 
New Post
3/25/2010 3:13 AM
 
thx for the information, but didn't quite helpful so i build it again now it works find i must have delete a line of code or something and didn't realise it
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModuleserror-Object reference not set to an instance of an object.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