Note that I am using Godaddy hosting
ERROR IS AS FOLLOWS:
Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or when the subquery is used as an expression.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Data.SqlClient.SqlE
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[SqlException (0x80131904): Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or when the subquery is used as an expression.]
System.Data.SqlClient.SqlC
System.Data.SqlClient.SqlI
System.Data.SqlClient.TdsP
System.Data.SqlClient.TdsP
System.Data.SqlClient.SqlC
System.Data.SqlClient.SqlC
System.Data.SqlClient.SqlC
System.Data.SqlClient.SqlC
System.Data.SqlClient.SqlC
Microsoft.ApplicationBlock
Microsoft.ApplicationBlock
Microsoft.ApplicationBlock
DotNetNuke.Data.SqlDataPro
DotNetNuke.Entities.Host.S
DotNetNuke.Common.Initiali
DotNetNuke.Common.Initiali
DotNetNuke.HttpModules.Req
System.Web.SyncEventExecut
System.Web.HttpApplication
ISSUE FIX IS AS FOLLOWS:
Goto SQL Server, Find the Stored Procedure called "UpdateServerActivity" and alter it as follows (change highlighted in RED):
ALTER PROCEDURE dbo.UpdateServerActivity
@ServerName nvarchar(50),
@IISAppName nvarchar(200),
@CreatedDate datetime,
@LastActivityDate datetime
AS
DECLARE @ServerID int
-- SET @ServerID = (SELECT ServerID FROM dbo.WebServers WHERE ServerName = @ServerName AND IISAppName = @IISAppName)
SET @ServerID = (SELECT Top 1 ServerID FROM dbo.WebServers WHERE ServerName = @ServerName AND IISAppName = @IISAppName order by LastActivityDate DESC)
IF @ServerID IS NULL
BEGIN
-- Insert
INSERT INTO dbo.WebServers (
ServerName,
IISAppName,
CreatedDate,
LastActivityDate,
[Enabled]
)
VALUES (
@ServerName,
@IISAppName,
@CreatedDate,
@LastActivityDate,
0
)
END
ELSE
BEGIN
-- Update
UPDATE dbo.WebServers
SET
LastActivityDate = @LastActivityDate
WHERE ServerName = @ServerName AND IISAppName = @IISAppName
END
GO
1 comment:
Solved my issue, thanks. Upgrading from 6.2.x to 7.0.0
Post a Comment