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...DNN Platform (o...DNN Platform (o...Error in Linq Data Source after posting module from localhost to live siteError in Linq Data Source after posting module from localhost to live site
Previous
 
Next
New Post
2/12/2009 5:53 PM
 

Folks,

I have a LinqToSQL module running fine in localhost install.  I've packaged the source module and installed it on my live site, but it's throwing an exception there.  Any ideas?

Thanks!

AldenG

AssemblyVersion: 04.09.01
PortalID: 0
PortalName: Seattle Insight Meditation Society
UserID: 1
UserName: host
ActiveTabID: 87
ActiveTabName: Teachers
RawURL: /tabid/87/Default.aspx
AbsoluteURL: /Default.aspx
AbsoluteURLReferrer: http://simsbeta.com/tabid/87/Default.aspx
UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.0.6) Gecko/2009011913 Firefox/3.0.6 (.NET CLR 3.5.30729)
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke.SqlDataProvider
ExceptionGUID: 14cddd6a-7292-4ce9-a768-b75b069d5307
InnerException: Exception has been thrown by the target of an invocation.
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: DharmaTalks.DharmaTalksDataContext..ctor
StackTrace:
Message: DotNetNuke.Services.Exceptions.PageLoadException: Exception has been thrown by the target of an invocation. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object. at DharmaTalks.DharmaTalksDataContext..ctor() --- End of inner exception stack trace --- at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandle& ctor, Boolean& bNeedSecurityCheck) at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean fillCache) at System.RuntimeType.CreateInstanceImpl(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean fillCache) at System.Activator.CreateInstance(Type type, Boolean nonPublic) at System.Web.HttpRuntime.FastCreatePublicInstance(Type type) at System.Web.UI.WebControls.LinqDataSourceView.CreateContext(Type contextType) at System.Web.UI.WebControls.LinqDataSourceView.CreateContextAndTable(DataSourceOperation operation) at System.Web.UI.WebControls.LinqDataSourceView.CreateContextAndTableForSelect() at System.Web.UI.WebControls.LinqDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments) at System.Web.UI.DataSourceView.Select(DataSourceSelectArguments arguments, DataSourceViewSelectCallback callback) at System.Web.UI.WebControls.DataBoundControl.PerformSelect() at System.Web.UI.WebControls.ListView.PerformSelect() at System.Web.UI.WebControls.BaseDataBoundControl.DataBind() at System.Web.UI.WebControls.BaseDataBoundControl.EnsureDataBound() at System.Web.UI.WebControls.ListView.CreateChildControls() at System.Web.UI.Control.EnsureChildControls() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Control.PreRenderRecursiveInternal() at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) --- End of inner exception stack trace ---
Source:
Server Name: GENERIC52

 
New Post
2/12/2009 6:14 PM
 

Do I need to install this?

 

DotNetNuke Linq to Sql Model Adapter

http://www.codeplex.com/DNNLinqToSqlAdapter

AldenG

 
New Post
2/13/2009 11:26 AM
 

If you use objectqualifer in your database you need the adapter.

Never tested the adapter, never use OQ.

 

 
New Post
2/13/2009 11:30 AM
 

You could try googling:

dotnetnuke "Exception has been thrown by the target of an invocation." "System.Reflection.TargetInvocationException".

It's a difficult one, there could be a number of reasons I think... anything from wrong permissions to not copying the correct files accross, or a previously failed DNN upgrade. Or even an issue with a specific module (Jan has probably got the right idea here).



Alex Shirley


 
New Post
2/13/2009 11:41 AM
 

Maybe you just forgot to change the connection string in the code if you didnt use the string in web.config.

 

 
Previous
 
Next
HomeHomeDevelopment and...Development and...DNN Platform (o...DNN Platform (o...Error in Linq Data Source after posting module from localhost to live siteError in Linq Data Source after posting module from localhost to live site


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