-
Notifications
You must be signed in to change notification settings - Fork 73
Closed
Labels
not-a-usync-thingnot a uSync issue - can't be fixed here.not a uSync issue - can't be fixed here.
Description
Describe the bug
After upgrading an existing Umbraco 16 website to Umbraco 17 RC, the application fails to start. uSync throws a System.TypeLoadException indicating a missing method implementation in the uSyncClientOperationSecurityFilter class.
Exception Message:
System.TypeLoadException: Method 'Apply' in type 'uSync.Backoffice.Management.Api.Configuration.uSyncClientOperationSecurityFilter' from assembly 'uSync.Backoffice.Management.Api, Version=17.0.0.0, Culture=neutral, PublicKeyToken=null' does not have an implementation.
To Reproduce
- Start with an existing solution running Umbraco 16.3.4.
- Upgrade the project references to Umbraco 17.0.0-rc3.
- Upgrade the uSync package from version 16.1.0 to 17.0.0-rc3.
- Build and run the project.
Expected behavior
The application should build and boot up successfully without throwing runtime exceptions.
About your Site (please complete the following information):
- Umbraco Version: 17.0.0-rc3
- uSync Version: 17.0.0-rc3
- Browser: Zen Browser
Additional context
- This issue does not occur on a clean installation of Umbraco 17.0.0-rc3; it appears specific to the upgrade path from v16.
- I attempted to rule out configuration issues by replacing my Program.cs with the default file from a fresh v17 install, but the error persists.
- The stack trace does not reference any user-land code (my project files), making it difficult to pinpoint the conflict.
Stacktrace
Unhandled exception. System.Reflection.ReflectionTypeLoadException: Could not load all types from "uSync.Backoffice.Management.Api, Version=17.0.0.0, Culture=neutral, PublicKeyToken=null" due to LoaderExceptions, skipping:
. System.TypeLoadException on uSync.Backoffice.Management.Api.Configuration.uSyncClientOperationSecurityFilter: Method 'Apply' in type 'uSync.Backoffice.Management.Api.Configuration.uSyncClientOperationSecurityFilter' from assembly 'uSync.Backoffice.Management.Api, Version=17.0.0.0, Culture=neutral, PublicKeyToken=null' does not have an implementation.
Method 'Apply' in type 'uSync.Backoffice.Management.Api.Configuration.uSyncClientOperationSecurityFilter' from assembly 'uSync.Backoffice.Management.Api, Version=17.0.0.0, Culture=neutral, PublicKeyToken=null' does not have an implementation.
at Umbraco.Cms.Core.Composing.TypeFinder.GetTypesWithFormattedException(Assembly a)
at Umbraco.Cms.Core.Composing.TypeFinder.GetClassesWithBaseType(Type baseType, IEnumerable`1 assemblies, Boolean onlyConcreteClasses, Func`2 additionalFilter)
at Umbraco.Cms.Core.Composing.TypeFinder.FindClassesOfType(Type assignTypeFrom, IEnumerable`1 assemblies, Boolean onlyConcreteClasses)
at Umbraco.Extensions.TypeFinderExtensions.FindClassesOfType[T](ITypeFinder typeFinder, IEnumerable`1 assemblies, Boolean onlyConcreteClasses)
at Umbraco.Cms.Core.Composing.TypeLoader.<>c__DisplayClass13_0`1.<GetTypes>b__1()
at Umbraco.Cms.Core.Composing.TypeLoader.GetTypesInternalLocked(Type baseType, Type attributeType, Func`1 finder, String action, Boolean cache)
at Umbraco.Cms.Core.Composing.TypeLoader.GetTypesInternal(Type baseType, Type attributeType, Func`1 finder, String action, Boolean cache)
at Umbraco.Cms.Core.Composing.TypeLoader.GetTypes[T](Boolean cache, IEnumerable`1 specificAssemblies)
at Umbraco.Cms.Core.DependencyInjection.UmbracoBuilderExtensions.AddAllCoreCollectionBuilders(IUmbracoBuilder builder)
at Umbraco.Cms.Core.DependencyInjection.UmbracoBuilder.AddCoreServices()
at Umbraco.Cms.Core.DependencyInjection.UmbracoBuilder..ctor(IServiceCollection services, IConfiguration config, TypeLoader typeLoader, ILoggerFactory loggerFactory, IProfiler profiler, AppCaches appCaches)
at Umbraco.Extensions.UmbracoBuilderExtensions.AddUmbraco(IServiceCollection services, IWebHostEnvironment webHostEnvironment, IConfiguration config)
at Umbraco.Extensions.WebApplicationBuilderExtensions.CreateUmbracoBuilder(WebApplicationBuilder builder)
at Program.<Main>$(String[] args) in C:\Users\XXXXXXXXXXXXXXXXX\Program.cs:line 3
at Program.<Main>(String[] args)
System.TypeLoadException: Method 'Apply' in type 'uSync.Backoffice.Management.Api.Configuration.uSyncClientOperationSecurityFilter' from assembly 'uSync.Backoffice.Management.Api, Version=17.0.0.0, Culture=neutral, PublicKeyToken=null' does not have an implementation.
Metadata
Metadata
Assignees
Labels
not-a-usync-thingnot a uSync issue - can't be fixed here.not a uSync issue - can't be fixed here.
