SciSharp / SciSharp/BotSharp

Unhandled exception. System.TypeLoadException: Method 'ActiveUser' in type 'BotSharp.Core.Users.Services.UserService'

Open
#495 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
3.1k
Forks
651
Avg merge
15h 2m
Merged PRs (30d)
36

Description

Hi,
I use .NET 8.0 and the command is 'dotnet run --project ./src/WebStarter/WebStarter.csproj -p SolutionName=PizzaBot
' to build and run the sample PizzaBot, after compiling pass then I have no idea why get an exception as below?

Unhandled exception. System.TypeLoadException: Method 'ActiveUser' in type 'BotSharp.Core.Users.Services.UserService' from assembly 'BotSharp.Core, Version=1.5.1.0, Culture=neutral, PublicKeyToken=null' does not have an implementation.
at BotSharp.Core.BotSharpCoreExtensions.AddBotSharpCore(IServiceCollection services, IConfiguration config, Action`1 configOptions)
at Program.

$(String[] args) in /eric.hu/BotSharp-master/src/WebStarter/Program.cs:line 32

  • Operation System: MacOS Sonoma 14.4(23E214)
  • DotNET Version: 8.0
  • BotSharp Branch: master

best regards,

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue with dotnet run --project ./src/WebStarter/WebStarter.csproj -p SolutionName=PizzaBot on the master branch. Read src/WebStarter/Program.cs around line 32, then trace AddBotSharpCore and BotSharp.Core.Users.Services.UserService, focusing on the missing ActiveUser implementation. Done means the PizzaBot sample starts without the TypeLoadException.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.