Unhandled exception. System.TypeLoadException: Method 'ActiveUser' in type 'BotSharp.Core.Users.Services.UserService'
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.
- Operation System: MacOS Sonoma 14.4(23E214)
- DotNET Version: 8.0
- BotSharp Branch: master
best regards,
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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