Skip to content

System.ArgumentException: Argument types do not match error in Asp.Net App-52ABP.School #33160

@DotNetAppCompatFeiWang

Description

@DotNetAppCompatFeiWang

Describe the bug

An unhandled exception has occurred while executing the request.
System.ArgumentException: Argument types do not match

To Reproduce

  1. Clone repo from https://github.com/yoyomooc/52ABP.School and build it.
  2. On CMD, go to publish folder at C:\Repro\52ABP.School
  3. run : dotnet LTM.School.dll
  4. Open http://localhost:5000/Students/Details/1 with Edge

Further technical details

  • ASP.NET Core version
    ASP.NET Core version 5.0.0-preview.1.20124.5

  • Include the output of dotnet --info
    .NET Core SDK (reflecting any global.json):
    Version: 5.0.100-preview.1.20125.9
    Commit: 12e88ed2e5
    Runtime Environment:
    OS Name: Windows
    OS Version: 10.0.18363
    OS Platform: Windows
    RID: win10-x64
    Base Path: C:\Program Files\dotnet\sdk\5.0.100-preview.1.20125.9
    Host (useful for support):
    Version: 5.0.0-preview.1.20120.5
    Commit: 3c523a6
    .NET Core SDKs installed:
    5.0.100-preview.1.20125.9 [C:\Program Files\dotnet\sdk]
    .NET Core runtimes installed:
    Microsoft.AspNetCore.App 5.0.0-preview.1.20124.5 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
    Microsoft.NETCore.App 5.0.0-preview.1.20120.5 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
    Microsoft.WindowsDesktop.App 5.0.0-preview.1.20122.1 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
    To install additional .NET Core runtimes or SDKs:
    https://aka.ms/dotnet-download
    To install additional .NET Core runtimes or SDKs:
    https://aka.ms/dotnet-download

  • The IDE (VS / VS Code/ VS4Mac) you're running on, and it's version: CLI

Repro machine could be found at: https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1075299

Add exception log:
52AbpException.txt

@dotnet-actwx-bot FYI

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions