dotnet / runtime

.NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.
https://docs.microsoft.com/dotnet/core/
MIT License
15.22k stars 4.72k forks source link

TypeLoadException: The generic type '<>A{00000004}`3' was used with an invalid instantiation in assembly 'kktsxund.iql, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'. #61316

Closed ralfbalzer closed 2 years ago

ralfbalzer commented 2 years ago

When I upgrade Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation from 6.0.0-rc.1.21452.15 to 6.0.0-rc.2.21480.10, I am encountering the above error when I am starting the app.

It is a MVC app with Blazor server side integrated. Any idea what could cause this? The assembly name does not make any sense to me.

I am using: Windows 10 Rider 2021.3 EAP6 .NET 6 RC2

And here are the referenced packages:

  <ItemGroup>
    <PackageReference Include="Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation" Version="6.0.0-rc.2.21480.10" />
    <PackageReference Include="Microsoft.Extensions.Caching.SqlConfig.Tools" Version="2.0.2" />
    <PackageReference Include="Microsoft.Extensions.Caching.SqlServer" Version="6.0.0-rc.2.21480.10" />
    <PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="6.0.0-rc.2.21480.5" />
    <PackageReference Include="Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore" Version="6.0.0-rc.2.21480.10" />
    <PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="6.0.0-rc.2.21480.10" />
    <PackageReference Include="Microsoft.AspNetCore.Identity.UI" Version="6.0.0-rc.2.21480.10" />
    <PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="6.0.0-rc.2.21480.5" />
    <PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="6.0.0-rc.2.21480.5">
      <PrivateAssets>all</PrivateAssets>
      <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
    </PackageReference>
    <PackageReference Include="Chart.js" Version="2.9.3" />
    <PackageReference Include="Mime" Version="3.2.3" />
    <PackageReference Include="MudBlazor" Version="5.2.0" />
    <PackageReference Include="QRCoder" Version="1.4.1" />
    <PackageReference Include="Serilog.AspNetCore" Version="4.1.0" />
    <PackageReference Include="DinkToPdfIncludesDependencies" Version="1.0.8" />
    <PackageReference Include="System.Linq.Dynamic.Core" Version="1.2.13" />
    <PackageReference Include="WebMarkupMin.AspNetCore5" Version="2.10.0" />
    <PackageReference Include="Microsoft.VisualStudio.Web.BrowserLink" Version="2.2.0" />
    <PackageReference Include="EPPlus" Version="4.5.3.3" />
    <PackageReference Include="GeoCoordinate.NetCore" Version="1.0.0.1" />
    <PackageReference Include="Sakura.AspNetCore.Mvc.PagedList" Version="3.0.2" />
    <PackageReference Include="Sakura.AspNetCore.PagedList" Version="2.0.2" />
  </ItemGroup>
dotnet-issue-labeler[bot] commented 2 years ago

I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.

eerhardt commented 2 years ago

@ralfbalzer - can you provide a minimal project that reproduces the problem? That would be the easiest way to investigate this error.

Also, a callstack of the exception would be greatly appreciated.

Also, did you change anything else when upgrading from rc1 to rc2?

ghost commented 2 years ago

Tagging subscribers to this area: @buyaa-n See info in area-owners.md if you want to be subscribed.

Issue Details
When I upgrade Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation from 6.0.0-rc.1.21452.15 to 6.0.0-rc.2.21480.10, I am encountering the above error when I am starting the app. It is a MVC app with Blazor server side integrated. Any idea what could cause this? The assembly name does not make any sense to me. I am using: Windows 10 Rider 2021.3 EAP6 .NET 6 RC2 And here are the referenced packages: ``` all runtime; build; native; contentfiles; analyzers; buildtransitive ```
Author: ralfbalzer
Assignees: -
Labels: `area-System.Reflection`, `untriaged`
Milestone: -
ralfbalzer commented 2 years ago

I have actaully just seen that 6.0.0 is now available on nutget and have update to the release version. Here it is working again. So you can close the issue. Sorry