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

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsRepositoryRepositoryObject reference not set to an.....Object reference not set to an.....
Previous
 
Next
New Post
9/28/2005 5:24 AM
 
bryan_staggs@hotmail.com wrote

OK... Here is what I think is happening. I installed a fresh install of DNN 3.1.1 without aking any modifications to the web config other than SQL connection. Installed the Repository module and everything works great.

Duplicated the install that I use on my live site, web config changes are SQL settings and objectqualifer. Added the Repository Module and I get the same error. It looks like it might be tied to the objectqualifer.

 

Any ideas or would it be possible toget the source?

 

Thanks again...

 

I did the same test as Bryan with the same result.  The object qualifier seems to be the catch here.


www.MyWebAds.ca

MyWebAds.ca
Your Free internet Classifieds Resource and Buy, Sell, & Trade website.
 
New Post
9/28/2005 2:38 PM
 

Try running the following script on the Host->SQL page executing it as a scipt.

if exists (select * from dbo.sysobjects where id = object_id(N'{databaseOwner}{objectQualifier}grmGetRepositoryModules') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
drop procedure {databaseOwner}{objectQualifier}grmGetRepositoryModules
GO

CREATE procedure {databaseOwner}{objectQualifier}grmGetRepositoryModules
@PortalId int
as
SELECT   
    TabModules.TabID AS TabID,
    Modules.*,
    Modules.PortalID AS PortalID
FROM        
    {databaseOwner}{objectQualifier}ModuleDefinitions INNER JOIN
    {databaseOwner}{objectQualifier}Modules ON {databaseOwner}{objectQualifier}ModuleDefinitions.ModuleDefID = {databaseOwner}{objectQualifier}Modules.ModuleDefID INNER JOIN
    {databaseOwner}{objectQualifier}TabModules ON {databaseOwner}{objectQualifier}Modules.ModuleID = {databaseOwner}{objectQualifier}TabModules.ModuleID
WHERE    
    ({databaseOwner}{objectQualifier}ModuleDefinitions.FriendlyName = N'Gooddogs Repository') AND ({databaseOwner}{objectQualifier}Modules.PortalID = @PortalId)
    and {databaseOwner}{objectQualifier}Modules.IsDeleted=0
order by
    TabId

GO

 

 
New Post
10/1/2005 8:17 AM
 

I tried running the sql as a script and it threw back an error;

System.Data.SqlClient.SqlException: Line 20: Incorrect syntax near 'GO'. at System.Data.SqlClient.SqlCommand.ExecuteNonQuery() at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteNonQuery(SqlConnection connection, CommandType commandType, String commandText, SqlParameter[] commandParameters) at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteNonQuery(String connectionString, CommandType commandType, String commandText, SqlParameter[] commandParameters) at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteNonQuery(String connectionString, CommandType commandType, String commandText) at DotNetNuke.Data.SqlDataProvider.ExecuteScript(String Script, Boolean UseTransactions) CREATE procedure dbo.nuke311_grmGetRepositoryModules @PortalId int as SELECT TabModules.TabID AS TabID, Modules.*, Modules.PortalID AS PortalID FROM dbo.nuke311_ModuleDefinitions INNER JOIN dbo.nuke311_Modules ON dbo.nuke311_ModuleDefinitions.ModuleDefID = dbo.nuke311_Modules.ModuleDefID INNER JOIN dbo.nuke311_TabModules ON dbo.nuke311_Modules.ModuleID = dbo.nuke311_TabModules.ModuleID WHERE (dbo.nuke311_ModuleDefinitions.FriendlyName = N'Gooddogs Repository') AND (dbo.nuke311_Modules.PortalID = @PortalId) and dbo.nuke311_Modules.IsDeleted=0 order by TabId GO

 


www.MyWebAds.ca

MyWebAds.ca
Your Free internet Classifieds Resource and Buy, Sell, & Trade website.
 
New Post
10/1/2005 5:43 PM
 
remove the GO's
 
New Post
11/28/2005 4:30 PM
 

I'm getting the same error on the dashboard. The dashboard appears on the portal but does the "Object reference error" when I click on the dashboard settings link. I ran the SQL script shown above and it generates the following error - -

System.Data.SqlClient.SqlException: The column prefix 'TabModules' does not match with a table name or alias name used in the query. The column prefix 'Modules' does not match with a table name or alias name used in the query. The column prefix 'Modules' does not match with a table name or alias name used in the query. at System.Data.SqlClient.SqlCommand.ExecuteNonQuery() at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteNonQuery(SqlConnection connection, CommandType commandType, String commandText, SqlParameter[] commandParameters) at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteNonQuery(String connectionString, CommandType commandType, String commandText, SqlParameter[] commandParameters) at Microsoft.ApplicationBlocks.Data.SqlHelper.ExecuteNonQuery(String connectionString, CommandType commandType, String commandText) at DotNetNuke.Data.SqlDataProvider.ExecuteScript(String Script, Boolean UseTransactions) CREATE procedure dbo.WW2Waypoints_grmGetRepositoryModules @PortalId int as SELECT TabModules.TabID AS TabID, Modules.*, Modules.PortalID AS PortalID FROM dbo.WW2Waypoints_ModuleDefinitions INNER JOIN dbo.WW2Waypoints_Modules ON dbo.WW2Waypoints_ModuleDefinitions.ModuleDefID = dbo.WW2Waypoints_Modules.ModuleDefID INNER JOIN dbo.WW2Waypoints_TabModules ON dbo.WW2Waypoints_Modules.ModuleID = dbo.WW2Waypoints_TabModules.ModuleID WHERE (dbo.WW2Waypoints_ModuleDefinitions.FriendlyName = N'Gooddogs Repository') AND (dbo.WW2Waypoints_Modules.PortalID = @PortalId) and dbo.WW2Waypoints_Modules.IsDeleted=0 order by TabId

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsRepositoryRepositoryObject reference not set to an.....Object reference not set to an.....


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