logo

Warning: The forum is now for consultation only. Please use GitHub Discussions to post any questions or comments.


Welcome Guest ! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Sarada  
#1 Posted : Monday, January 9, 2023 12:39:12 PM(UTC)
Sarada

Rank: Newbie

Groups: Registered
Joined: 1/9/2023(UTC)
Posts: 0
India
Location: Odisha

Hi, I downloaded the latest zip file that is _Seal Report 6.7.2_.

I set the Seal Web Server as startup project.

Then I configured the appSettigns.json file with connection string as follows:

"SessionProvider": {
"SqlServer": {
"ConnectionString": "Server=ESSPLLAP52\\SQL2019;Database=SealReportDemo;user id=sa;password=sa123@123",
"SchemaName": "dbo",
"TableName": "MyDemoChat"
}
}

I did not make any change and when I run the application.

Then I got the following error:

System.Collections.Generic.KeyNotFoundException
HResult=0x80131577
Message=The given key '8b259a01-1071-4cc3-bd0a-fff3394343d6' was not present in the dictionary.
Source=System.Private.CoreLib
StackTrace:
at System.ThrowHelper.ThrowKeyNotFoundException[T](T key)
at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
at SealWebServer.Controllers.HomeController.getSessionValue(String key) in C:\Users\sarada\Desktop\Seal-Report-6.7.2.1\Projects\SealWebServer\Controllers\HomeControllerNETCore.cs:line 109
at SealWebServer.Controllers.HomeController.get_WebUser() in C:\Users\sarada\Desktop\Seal-Report-6.7.2.1\Projects\SealWebServer\Controllers\HomeController.cs:line 76
at SealWebServer.Controllers.HomeController.HandleException(Exception ex) in C:\Users\sarada\Desktop\Seal-Report-6.7.2.1\Projects\SealWebServer\Controllers\HomeController.cs:line 114
at SealWebServer.Controllers.HomeController.Main() in C:\Users\sarada\Desktop\Seal-Report-6.7.2.1\Projects\SealWebServer\Controllers\HomeController.cs:line 205
at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.SyncActionResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeActionMethodAsync()
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeNextActionFilterAsync()
epf  
#2 Posted : Monday, January 9, 2023 2:42:04 PM(UTC)
epf

Rank: Administration

Groups: Administrators
Joined: 12/20/2013(UTC)
Posts: 1,209
Switzerland

Thanks: 14 times
Was thanked: 206 time(s) in 199 post(s)
The SqlServer session was added from https://github.com/ariacom/Seal-Report/pull/46
You might check if there is a regression...
epf  
#3 Posted : Thursday, January 12, 2023 10:00:04 AM(UTC)
epf

Rank: Administration

Groups: Administrators
Joined: 12/20/2013(UTC)
Posts: 1,209
Switzerland

Thanks: 14 times
Was thanked: 206 time(s) in 199 post(s)
You should check errors in the Event Viewer.

I made a try with the connection string:
Server=localhost;Database=Audit;Trusted_Connection=True;TrustServerCertificate=True;

I created first the table in the database:
Code:
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

CREATE TABLE [dbo].CacheSessions(
	[Id] [nvarchar](449) NOT NULL,
	[Value] [varbinary](max) NOT NULL,
	[ExpiresAtTime] [datetimeoffset](7) NOT NULL,
	[SlidingExpirationInSeconds] [bigint] NULL,
	[AbsoluteExpiration] [datetimeoffset](7) NULL,
PRIMARY KEY CLUSTERED 
(
	[Id] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, 
	IGNORE_DUP_KEY = OFF, 
	ALLOW_ROW_LOCKS = ON, 
	ALLOW_PAGE_LOCKS = ON, 
	OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO


and it works fine.
Users browsing this topic
Guest (3)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.