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...Getting StartedGetting Startedlinq2sql works in visstud but not when deployed on other machinelinq2sql works in visstud but not when deployed on other machine
Previous
 
Next
New Post
6/9/2010 11:31 AM
 
I developped a module for internal use in the company, but when deployed it gives

A critical error has occurred.
Object reference not set to an instance of an object.

I have searched the web, tried different things to fix it, but no avail. What am i doing wrong?
http://adefwebserver.com/dotnetnukehelp/LinqTutorial/LinqTutorial2.htm
So, it works fine when i run it in visstud, but bogs when i copy the files and run it on the target machine.

When checking in the eventlog it shows this.

Error 1: (the oldest)
General Exception

AssemblyVersion
: 5.3.1
PortalID: 0
PortalName: Acknowledge Lokaal test
UserID: 1
UserName: host
ActiveTabID: 63
ActiveTabName: VLC tapes
RawURL: /lt/VLCtapes.aspx
AbsoluteURL: /lt/Default.aspx
AbsoluteURLReferrer: http://test-web-01.testdomain.local/lt/Default.aspx
UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 ( .NET CLR 3.5.30729; .NET4.0E)
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: 877e9d31-bc5c-4ac7-bcb0-9a4a339f02a5
InnerException: Object reference not set to an instance of an object.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: Acknowledge.tapeoverzichtDataContext..ctor
StackTrace:
Message: System.NullReferenceException: Object reference not set to an instance of an object. at Acknowledge.tapeoverzichtDataContext..ctor() at Acknowledge.tapesdatabase.overzichtdbinit() at Acknowledge.tapesdatabase.overzicht_Init(Object sender, EventArgs e) at System.Web.UI.Control.OnInit(EventArgs e) at System.Web.UI.WebControls.BaseDataBoundControl.OnInit(EventArgs e) at System.Web.UI.WebControls.ListView.OnInit(EventArgs e) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.InitRecursive(Control namingContainer) at System.Web.UI.Control.AddedControl(Control control, Int32 index) at System.Web.UI.ControlCollection.Add(Control child) at DotNetNuke.UI.Modules.ModuleHost.InjectModuleContent(Control content) at DotNetNuke.UI.Modules.ModuleHost.CreateChildControls() at System.Web.UI.Control.EnsureChildControls() at DotNetNuke.UI.Modules.ModuleHost.get_ModuleControl() at DotNetNuke.UI.Containers.Container.get_ModuleControl() at DotNetNuke.UI.Containers.Container.ProcessModule() at DotNetNuke.UI.Skins.Pane.InjectModule(ModuleInfo objModule)
Source:
Server Name: TEST-WEB-01


Module Load Exception

ModuleId: -1
ModuleDefId: -1
FriendlyName:
ModuleControlSource:
AssemblyVersion: 5.3.1
PortalID: 0
PortalName: Acknowledge Lokaal test
UserID: 1
UserName: host
ActiveTabID: 63
ActiveTabName: VLC tapes
RawURL: /lt/VLCtapes.aspx
AbsoluteURL: /lt/Default.aspx
AbsoluteURLReferrer: http://test-web-01.testdomain.local/lt/Default.aspx
UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 ( .NET CLR 3.5.30729; .NET4.0E)
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: 43300247-7f2c-4f97-97a1-45c6b8b439f5
InnerException: Object reference not set to an instance of an object.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: DotNetNuke.UI.Containers.ActionBase.get_ActionRoot
StackTrace:
Message: DotNetNuke.Services.Exceptions.ModuleLoadException: 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.Containers.ActionBase.get_ActionRoot() at DotNetNuke.UI.Containers.ActionBase.Page_Load(Object sender, EventArgs e) --- End of inner exception stack trace ---
Source:
Server Name: TEST-WEB-01

Module Load Exception

ModuleId: -1
ModuleDefId: -1
FriendlyName:
ModuleControlSource:
AssemblyVersion: 5.3.1
PortalID: 0
PortalName: Acknowledge Lokaal test
UserID: 1
UserName: host
ActiveTabID: 63
ActiveTabName: VLC tapes
RawURL: /lt/VLCtapes.aspx
AbsoluteURL: /lt/Default.aspx
AbsoluteURLReferrer: http://test-web-01.testdomain.local/lt/Default.aspx
UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 ( .NET CLR 3.5.30729; .NET4.0E)
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: a3424e37-344a-4e98-bba0-19dc3d4c2915
InnerException: Object reference not set to an instance of an object.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: DotNetNuke.UI.Containers.Visibility.Page_Load
StackTrace:
Message: DotNetNuke.Services.Exceptions.ModuleLoadException: 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.Containers.Visibility.Page_Load(Object sender, EventArgs e) --- End of inner exception stack trace ---
Source:
Server Name: TEST-WEB-01



Page Load Exception

AssemblyVersion: 5.3.1
PortalID: 0
PortalName: Acknowledge Lokaal test
UserID: 1
UserName: host
ActiveTabID: 63
ActiveTabName: VLC tapes
RawURL: /lt/VLCtapes.aspx
AbsoluteURL: /lt/Default.aspx
AbsoluteURLReferrer: http://test-web-01.testdomain.local/lt/Default.aspx
UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 ( .NET CLR 3.5.30729; .NET4.0E)
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: b955f07a-cf83-4602-9fe1-a4cebbfb3bad
InnerException: Object reference not set to an instance of an object.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: Acknowledge.tapeoverzichtDataContext..ctor
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 Acknowledge.tapeoverzichtDataContext..ctor() at Acknowledge.tapesdatabase.overzichtdbinit() at Acknowledge.tapesdatabase.overzicht_Load(Object sender, EventArgs e) at System.Web.UI.Control.OnLoad(EventArgs e) at System.Web.UI.WebControls.DataBoundControl.OnLoad(EventArgs e) at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Control.LoadRecursive() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace ---
Source:
Server Name: TEST-WEB-01
 
New Post
6/30/2010 4:46 PM
 
I think your connection string may have changed in the dbml configuration. Check to see that the connection string is set to SiteSqlServer in the connection properties of your dbml file
 
New Post
7/6/2010 9:26 AM
 
I think you are new at linq ...
- first try to remove all your codes from page load .. exept linq and other classes..

then try just a show simple linq abject to run.

i am using same procedure that you gave adef web sample and works.

- second if you are using 5.4.3 really u must upgrade to 5.4.4 it solved nearly all my problems.

- and last thing is if you are using attached file thing stop using it. use regular db with sqlexpress/sqlserver

i wish you solve your problems.
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Getting StartedGetting Startedlinq2sql works in visstud but not when deployed on other machinelinq2sql works in visstud but not when deployed on other machine


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