-
Notifications
You must be signed in to change notification settings - Fork 5.4k
[dotnet-sdk-10.0.100-rc.2.25474.116] grandnode2 launch failed with error: System.NotSupportedException: 'Specified method is not supported.' #120251
Description
Description
After retargeting the third-party app to .NET 10 with dotnet-sdk-10.0.100-rc.2.25474.116, when access "http://localhost:5000/admin", an error occurred "System.NotSupportedException: 'Specified method is not supported.'"
Reproduction Steps
Repro steps on repro machine:
The machine has dotnet-sdk-10.0.100-rc.2.25474.116 and MongoDB installed.
- Open "C:\AppSourceCode\grandnode2\GrandNode.sln" with Visual Studio.
- Launch Grand.Web from Visual Studio.
- If the application installation page appears, please install with below steps. If not, go to step 4 directly.
1).Input ***@163.com in admin user email textbox.
2).Input password in Password textbox.
3).Input password in confirm Password textbox.
4).Check “create sample data”.
5).Check “Connection string”.
6).Input “mongodb://localhost:27017/grandnode2DB”.
7).Click install.
8).Wait for application installation finished.
9).Restart the application - Access http://localhost:5000/admin in browser.
- Input "***@163.com" to "Email" and *** to "Password".
- Click "Log In".
Expected behavior
Access the Admin page successfully without any exception.
Actual behavior
The Admin page load successful but there is exception thrown from Visual Studio.
System.NotSupportedException
HResult=0x80131515
Message=Specified method is not supported.
Source=System.Private.CoreLib
StackTrace:
at System.Reflection.RuntimeMethodInfo.ThrowNoInvokeException()
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at System.Delegate.DynamicInvokeImpl(Object[] args)
at MongoDB.Driver.Linq.Linq3Implementation.Misc.PartialEvaluator.SubtreeEvaluator.Evaluate(Expression expression)
at System.Dynamic.Utils.ExpressionVisitorUtils.VisitArguments(ExpressionVisitor visitor, IArgumentProvider nodes)
at System.Linq.Expressions.ExpressionVisitor.VisitMethodCall(MethodCallExpression node)
at System.Linq.Expressions.ExpressionVisitor.VisitLambda[T](Expression`1 node)
at System.Dynamic.Utils.ExpressionVisitorUtils.VisitArguments(ExpressionVisitor visitor, IArgumentProvider nodes)
at System.Linq.Expressions.ExpressionVisitor.VisitMethodCall(MethodCallExpression node)
at System.Linq.Expressions.ExpressionVisitor.VisitLambda[T](Expression`1 node)
at System.Linq.Expressions.ExpressionVisitor.VisitUnary(UnaryExpression node)
at System.Dynamic.Utils.ExpressionVisitorUtils.VisitArguments(ExpressionVisitor visitor, IArgumentProvider nodes)
at System.Linq.Expressions.ExpressionVisitor.VisitMethodCall(MethodCallExpression node)
at System.Dynamic.Utils.ExpressionVisitorUtils.VisitArguments(ExpressionVisitor visitor, IArgumentProvider nodes)
at System.Linq.Expressions.ExpressionVisitor.VisitMethodCall(MethodCallExpression node)
at System.Dynamic.Utils.ExpressionVisitorUtils.VisitArguments(ExpressionVisitor visitor, IArgumentProvider nodes)
at System.Linq.Expressions.ExpressionVisitor.VisitMethodCall(MethodCallExpression node)
at MongoDB.Driver.Linq.Linq3Implementation.Misc.PartialEvaluator.EvaluatePartially(Expression expression)
at MongoDB.Driver.Linq.Linq3Implementation.Translators.ExpressionToExecutableQueryTranslators.ExpressionToExecutableQueryTranslator.TranslateScalar[TDocument,TResult](MongoQueryProvider`1 provider, Expression expression)
at MongoDB.Driver.Linq.Linq3Implementation.MongoQueryProvider`1.Execute[TResult](Expression expression)
at Grand.Web.Admin.Controllers.HomeController.<PrepareActivityModel>d__1.MoveNext() in C:\Users\v-yibiaozhu\Desktop\grandnode2\src\Web\Grand.Web.Admin\Controllers\HomeController.cs:line 71
at Grand.Web.Admin.Controllers.HomeController.<DashboardActivity>d__14.MoveNext() in C:\Users\v-yibiaozhu\Desktop\grandnode2\src\Web\Grand.Web.Admin\Controllers\HomeController.cs:line 113
at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.TaskOfIActionResultExecutor.<Execute>d__0.MoveNext()
at System.Runtime.CompilerServices.ValueTaskAwaiter`1.GetResult()
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<<InvokeActionMethodAsync>g__Logged|12_1>d.MoveNext()
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<<InvokeNextActionFilterAsync>g__Awaited|10_0>d.MoveNext()
Regression?
Yes
Verify Scenarios
Windows10 22h2 x64 + dotnet-sdk-9.0.305: Pass
Windows10 22h2 x64 + dotnet-sdk-10.0.100-preview.7.25380.108: Pass
Windows10 22h2 x64 + dotnet-sdk-10.0.100-rc.1.25451.107: Fail
Windows10 22h2 x64 + dotnet-sdk-10.0.100-rc.2.25474.116: Fail
Known Workarounds
No response
Configuration
Application Name: grandnode2
OS: Windows 10 22H2
CPU: X64
.NET Build Number: dotnet-sdk-10.0.100-rc.2.25474.116
AppSource on repro machine, checking at https://devdiv.visualstudio.com/DevDiv/_workitems/edit/2583894
Other information
DotNet Info:
.NET SDK:
Version: 10.0.100-rc.2.25474.116
Commit: 54303ce0f4
Workload version: 10.0.100-manifests.62cb6acc
MSBuild version: 18.0.0-preview-25474-116+54303ce0f
Runtime Environment:
OS Name: Windows
OS Version: 10.0.19045
OS Platform: Windows
RID: win-x64
Base Path: C:\Program Files\dotnet\sdk\10.0.100-rc.2.25474.116\
Host:
Version: 10.0.0-rc.2.25474.116
Architecture: x64
Commit: 54303ce0f4
.NET SDKs installed:
10.0.100-rc.2.25474.116 [C:\Program Files\dotnet\sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 10.0.0-rc.2.25474.116 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 10.0.0-rc.2.25474.116 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 10.0.0-rc.2.25474.116 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
@dotnet-actwx-bot @dotnet/compat