Seal Report Forum
»
General
»
General Discussions/Other
»
: 'The given key 'c5b75332-c9ac-4c38-80c4-2a39394b2fd8' was not present in the dictionary.'
Rank: Newbie
Groups: Registered
Joined: 1/9/2023(UTC) Posts: 0 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()
|
|
|
|
Rank: Administration
Groups: Administrators
Joined: 12/20/2013(UTC) Posts: 1,209 Thanks: 14 times Was thanked: 206 time(s) in 199 post(s)
|
|
|
|
|
Rank: Administration
Groups: Administrators
Joined: 12/20/2013(UTC) Posts: 1,209 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.
|
|
|
|
Seal Report Forum
»
General
»
General Discussions/Other
»
: 'The given key 'c5b75332-c9ac-4c38-80c4-2a39394b2fd8' was not present in the dictionary.'
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.