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

HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...An error has occuredAn error has occured
Previous
 
Next
New Post
1/12/2006 12:49 PM
 

Have just installed DNN 4.0.2 on a hosted web server. Everything working fine until I was messing about with the ad banners. Now everytime I access the site I am greeted with a little red triangle of death and the message "An error has occured". The URL is the menu bar is suggesting that the stored procedure dnn_FindBanners doesn't exist. The URL is right! And it doesn't seem to exist in the scripts either. Can somebody tell me what I need to do to recover from this?

Regards

Colm.


Colm Ryan Director
3rd i IT and Business Services Limited

www.actravia.com
Registration and Booking Solutions for Dotnetnuke
www.3rdi.ie
IMCA Registered Management Consulting Practice. Business and IT Strategy, IT Project Management and Product Development
 
New Post
1/12/2006 5:32 PM
 

Guess this is why...Tables seem to have been created OK though?

 

System.Data.SqlClient.SqlException: The column prefix 'Banners' does not match with a table name or alias name used in the query.
The column prefix 'Banners' does not match with a table name or alias name used in the query.
The column prefix 'Files' does not match with a table name or alias name used in the query.
The column prefix 'Files' does not match with a table name or alias name used in the query.
The column prefix 'Files' does not match with a table name or alias name used in the query.
The column prefix 'Banners' does not match with a table name or alias name used in the query.
The column prefix 'Banners' does not match with a table name or alias name used in the query.
The column prefix 'Banners' does not match with a table name or alias name used in the query.
The column prefix 'Banners' does not match with a table name or alias name used in the query.
   at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
   at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
   at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
   at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
   at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async)
   at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe)
   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 colm3rd_mssql.dnn_FindBanners

@PortalId     int,
@BannerTypeId int,
@GroupName    nvarchar(100)

AS

SELECT  BannerId,
        Banners.VendorId,
        BannerName,
        URL,
        'ImageFile' = case when Files.FileName is null then Banners.ImageFile else Files.Folder + Files.FileName end,
        Impressions,
        CPM,
        Banners.Views,
        Banners.ClickThroughs,
        StartDate,
        EndDate,
        BannerTypeId,
        Description,
        GroupName,
        Criteria,
        Banners.Width,
        Banners.Height
FROM    dnn_Banners
INNER JOIN dnn_Vendors ON dnn_Banners.VendorId = dnn_Vendors.VendorId
LEFT OUTER JOIN dnn_Files ON dnn_Banners.ImageFile = 'fileid=' + convert(varchar,dnn_Files.FileID)
WHERE   (dnn_Banners.BannerTypeId = @BannerTypeId or @BannerTypeId is null)
AND     (dnn_Banners.GroupName = @GroupName or @GroupName is null)
AND     ((dnn_Vendors.PortalId = @PortalId) or (@PortalId is null and dnn_Vendors.PortalId is null))
AND     dnn_Vendors.Authorized = 1
ORDER BY BannerId


Colm Ryan Director
3rd i IT and Business Services Limited

www.actravia.com
Registration and Booking Solutions for Dotnetnuke
www.3rdi.ie
IMCA Registered Management Consulting Practice. Business and IT Strategy, IT Project Management and Product Development
 
New Post
1/12/2006 5:45 PM
 

Solved! Seems the objectqualifier has not been used to reference the table names in the creation of the stored procedure. Hence the procedure failed to create and the the application keeled over.

I took the procedure creation script from the log failure entry, edited to add the objectqualifiers to the script and ran it straight in QueryViewer. Procedure created, problem solved and website accessable again.


Colm Ryan Director
3rd i IT and Business Services Limited

www.actravia.com
Registration and Booking Solutions for Dotnetnuke
www.3rdi.ie
IMCA Registered Management Consulting Practice. Business and IT Strategy, IT Project Management and Product Development
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedInstalling DNN ...Installing DNN ...An error has occuredAn error has occured


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