Skip to main content
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested answer

Issues with publishing BC24.3.21517.W1 - Publish-NAVApp does not recognize certificate

(1) ShareShare
ReportReport
Posted on by 4
Hello,
 
I try to upgrade BC20.0 to BC24.3 on customer server onprem version.
Customer license is without module 'Implemented code is not cloud-optimized'
First registration Date : 13 January 2023
 
Publish-NAVApp did not recognize certifiacate for the Microsoft_Base Application.app file. I was not able publish it.
 
When I use -SkipVerivication I upgraded the system!
 
But when I try to login I got an error (my extension was not listed):

The description for Event ID 705 from source MicrosoftDynamicsNavServer$N240_TEST cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.
If the event originated on another computer, the display information had to be saved with the event.
The following information was included with the event: 
Server instance: N240_TEST
Category: Runtime
ClientSessionId: 00000000-0000-0000-0000-000000000000
ClientActivityId: 00000000-0000-0000-0000-000000000000
ServerSessionUniqueId: 4c18cda2-d27f-4e28-9b1f-fa36aa31642d
ServerActivityId: de0d053d-653f-489f-8705-5de7656e6c69
EventTime: 08/15/2024 09:41:31
Message (NavLicenseViolationException): Sending exception to client. Session terminating: False
RootException: NavLicenseViolationException
Sorry, we can’t sign you in. You're using a customized version of the following Microsoft applications, which doesn’t meet our Universal Code requirement:
_Exclude_APIV1_ by Microsoft
_Exclude_APIV2_ by Microsoft
_Exclude_Bank Deposits by Microsoft
_Exclude_ClientAddIns_ by Microsoft
_Exclude_Email Logging Using Graph API by Microsoft
_Exclude_PlanConfiguration_ by Microsoft
_Exclude_ReportLayouts by Microsoft
API Reports - Finance by Microsoft
Application by Microsoft
Audit File Export by Microsoft
Bank Account Reconciliation With AI by Microsoft
Base Application by Microsoft
Business Foundation by Microsoft
Company Hub by Microsoft
Contoso Coffee Demo Dataset by Microsoft
Data Archive by Microsoft
Data Search by Microsoft
E-Document Core by Microsoft
E-Documents Connector with External Endpoints by Microsoft
Email - Current User Connector by Microsoft
Email - Microsoft 365 Connector by Microsoft
Email - Outlook REST API by Microsoft
Email - SMTP API by Microsoft
Email - SMTP Connector by Microsoft
Enforced Digital Vouchers by Microsoft
Error Messages with Recommendations by Microsoft
Essential Business Headlines by Microsoft
EU 3-Party Trade Purchase by Microsoft
Intrastat Core by Microsoft
Late Payment Prediction by Microsoft
OnPrem Permissions by Microsoft
Payment Links to PayPal by Microsoft
Payment Practices by Microsoft
Permissions Mock by Microsoft
Recommended Apps by Microsoft
Review General Ledger Entries by Microsoft
SAF-T by Microsoft
Sales and Inventory Forecast by Microsoft
Send To Email Printer by Microsoft
Service Declaration by Microsoft
Shopify Connector by Microsoft
Simplified Bank Statement Import by Microsoft
Statistical Accounts by Microsoft
Sustainability by Microsoft
Sustainability Contoso Coffee Demo Dataset by Microsoft
System Application by Microsoft
Troubleshoot FA Ledger Entries by Microsoft
Universal Print Integration by Microsoft
VAT Group Management by Microsoft
You must either upgrade the apps to meet the requirement or license the non-Universal Code module that grants an exception to the requirement.
For more information, see https://aka.ms/bcUniversalCode.
ExceptionStackTrace:
   at Microsoft.Dynamics.Nav.Runtime.NavSession.ValidateLicense()
   at Microsoft.Dynamics.Nav.Runtime.NavSession.Open(Boolean useUserPersonalization, Byte[] licenseToUse, Boolean allowAppsDisabledMode)
   at Microsoft.Dynamics.Nav.Runtime.NavSession.Open()
   at Microsoft.Dynamics.Nav.Service.NSService.OpenConnection(ConnectionRequest connectionRequest)
   at Microsoft.Dynamics.Nav.Service.NSService.Microsoft.Dynamics.Nav.Types.IClientApi.OpenConnection(ConnectionRequest connectionRequest, CancellationToken cancellationToken)
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodBaseInvoker.InvokeDirectByRefWithFewArgs(Object obj, Span`1 copyOfArgs, BindingFlags invokeAttr)
--- End of stack trace from previous location ---
   at Microsoft.Dynamics.Nav.Service.AspNetCore.ClientService.ServiceOperationPipelineHelper.CallWithHandlingTargetInvocationException[T](Func`1 asyncFunc)
   at Microsoft.Dynamics.Nav.Service.ServiceOperationPipeline.AddSessionToThreadSchedulerCombinator[T](ServiceOperationContext context, ServiceOperation`1 innerOperation)
   at Microsoft.Dynamics.Nav.Service.ServiceOperationPipeline.ErrorMappingCombinator[T](ServiceOperationContext context, ServiceOperation`1 innerOperation, Boolean useCoreWcfFaultException)
CallerStackTrace:
   at Microsoft.Dynamics.Nav.Service.ServiceExceptionHandling.MapServiceOperationException(Exception e, NavSession session, Boolean useCoreWcfFaultException)
   at Microsoft.Dynamics.Nav.Service.ServiceOperationPipeline.ErrorMappingCombinator[T](ServiceOperationContext context, ServiceOperation`1 innerOperation, Boolean useCoreWcfFaultException)
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
   at Microsoft.Dynamics.Nav.Service.ServiceOperationPipeline.ErrorMappingCombinator[T](ServiceOperationContext context, ServiceOperation`1 innerOperation, Boolean useCoreWcfFaultException)
   at Microsoft.Dynamics.Nav.Service.ServiceOperationPipeline.<>c__DisplayClass1_0`1.<Create>b__0(ServiceOperationContext context, ServiceOperation`1 operation)
   at Microsoft.Dynamics.Nav.Service.ServiceOperationPipeline.<>c__DisplayClass25_0`1.<Combine>b__1(ServiceOperationContext contexts)
   at Microsoft.Dynamics.Nav.Service.ServiceOperationPipeline.PartnerTelemetryPermissionErrorCombinator[T](ServiceOperationContext context, ServiceOperation`1 innerOperation)
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
   at Microsoft.Dynamics.Nav.Service.ServiceOperationPipeline.PartnerTelemetryPermissionErrorCombinator[T](ServiceOperationContext context, ServiceOperation`1 innerOperation)
   at Microsoft.Dynamics.Nav.Service.ServiceOperationPipeline.<>c__DisplayClass25_0`1.<Combine>b__1(ServiceOperationContext contexts)
   at Microsoft.Dynamics.Nav.Service.ServiceOperationPipeline.PushPopCombinator[T](ServiceOperationContext context, ServiceOperation`1 innerOperation, Boolean useCoreWcfFaultException)
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
   at Microsoft.Dynamics.Nav.Service.ServiceOperationPipeline.PushPopCombinator[T](ServiceOperationContext context, ServiceOperation`1 innerOperation, Boolean useCoreWcfFaultException)
   at Microsoft.Dynamics.Nav.Service.ServiceOperationPipeline.<>c__DisplayClass1_0`1.<Create>b__2(ServiceOperationContext context, ServiceOperation`1 operation)
   at Microsoft.Dynamics.Nav.Service.ServiceOperationPipeline.<>c__DisplayClass25_0`1.<Combine>b__1(ServiceOperationContext contexts)
   at Microsoft.Dynamics.Nav.Service.ServiceOperationPipeline.CreateNewSessionCombinator[T](ServiceOperationContext context, ServiceOperation`1 innerOperation, Boolean requireNavUser, Boolean useCoreWcfFaultException)
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
   at Microsoft.Dynamics.Nav.Service.ServiceOperationPipeline.CreateNewSessionCombinator[T](ServiceOperationContext context, ServiceOperation`1 innerOperation, Boolean requireNavUser, Boolean useCoreWcfFaultException)
   at Microsoft.Dynamics.Nav.Service.ServiceOperationPipeline.CreateNewNavUserSessionCombinator[T](ServiceOperationContext context, ServiceOperation`1 innerOperation, Boolean useCoreWcfFaultException)
   at Microsoft.Dynamics.Nav.Service.ServiceOperationPipeline.<>c__DisplayClass1_0`1.<Create>b__4(ServiceOperationContext context, ServiceOperation`1 operation)
   at Microsoft.Dynamics.Nav.Service.ServiceOperationPipeline.<>c__DisplayClass25_0`1.<Combine>b__1(ServiceOperationContext contexts)
   at Microsoft.Dynamics.Nav.Service.ServiceOperationTracer.TraceScopeCombinator[T](Category telemetryCategory, ServiceOperationContext context, ServiceOperation`1 innerOperation)
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
   at Microsoft.Dynamics.Nav.Service.ServiceOperationTracer.TraceScopeCombinator[T](Category telemetryCategory, ServiceOperationContext context, ServiceOperation`1 innerOperation)
   at Microsoft.Dynamics.Nav.Service.ServiceOperationPipeline.<>c__DisplayClass1_0`1.<Create>b__8(ServiceOperationContext context, ServiceOperation`1 innerOperation)
   at Microsoft.Dynamics.Nav.Service.ServiceOperationPipeline.<>c__DisplayClass25_0`1.<Combine>b__1(ServiceOperationContext contexts)
   at Microsoft.Dynamics.Nav.Service.ServiceOperationPipeline.<>c__DisplayClass7_0`1.<<PerformanceCounterCombinator>b__0>d.MoveNext()
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
   at Microsoft.Dynamics.Nav.Service.ServiceOperationPipeline.<>c__DisplayClass7_0`1.<PerformanceCounterCombinator>b__0()
   at Microsoft.Dynamics.Nav.Runtime.NavPerformanceCounterSetter.UpdatePerformanceCountersWithAverageServiceOperationDuration(Stopwatch stopWatch, Func`1 action)
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
   at Microsoft.Dynamics.Nav.Runtime.NavPerformanceCounterSetter.UpdatePerformanceCountersWithAverageServiceOperationDuration(Stopwatch stopWatch, Func`1 action)
   at Microsoft.Dynamics.Nav.Runtime.NavPerformanceCounterSetter.UpdatePerformanceCountersWithAverageServiceOperationAction(Func`1 action, NavSession session)
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
   at Microsoft.Dynamics.Nav.Runtime.NavPerformanceCounterSetter.UpdatePerformanceCountersWithAverageServiceOperationAction(Func`1 action, NavSession session)
   at Microsoft.Dynamics.Nav.Service.ServiceOperationPipeline.PerformanceCounterCombinator[T](ServiceOperationContext context, ServiceOperation`1 innerOperation)
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
   at Microsoft.Dynamics.Nav.Service.ServiceOperationPipeline.PerformanceCounterCombinator[T](ServiceOperationContext context, ServiceOperation`1 innerOperation)
   at Microsoft.Dynamics.Nav.Service.ServiceOperationPipeline.<>c__DisplayClass25_0`1.<Combine>b__1(ServiceOperationContext contexts)
   at Microsoft.Dynamics.Nav.Service.ServiceOperationPipeline.InitClientTelemetryIdsCombinator[T](ServiceOperationContext context, ServiceOperation`1 innerOperation)
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
   at Microsoft.Dynamics.Nav.Service.ServiceOperationPipeline.InitClientTelemetryIdsCombinator[T](ServiceOperationContext context, ServiceOperation`1 innerOperation)
   at Microsoft.Dynamics.Nav.Service.ServiceOperationPipeline.<>c__DisplayClass25_0`1.<Combine>b__1(ServiceOperationContext contexts)
   at Microsoft.Dynamics.Nav.Service.ServiceOperationPipeline.TlsClearCombinator[T](ServiceOperationContext context, ServiceOperation`1 innerOperation)
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.Start[TStateMachine](TStateMachine& stateMachine)
   at Microsoft.Dynamics.Nav.Service.ServiceOperationPipeline.TlsClearCombinator[T](ServiceOperationContext context, ServiceOperation`1 innerOperation)
   at Microsoft.Dynamics.Nav.Service.ServiceOperationPipeline.<>c__DisplayClass25_0`1.<Combine>b__1(ServiceOperationContext contexts)
   at Microsoft.Dynamics.Nav.Service.AspNetCore.ClientService.ServiceOperationPipelineHelper.<>c__DisplayClass3_0`1.<CreateTargetOperationWithPipeline>b__1(ServiceOperationContext currentContext)
   at Microsoft.Dynamics.Nav.Service.AspNetCore.ClientService.ServiceOperationPipelineDispatchProxy`1.Invoke(MethodInfo targetMethod, Object[] args)
   at generatedProxy_1.OpenConnection(ConnectionRequest, CancellationToken)
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodBaseInvoker.InvokeDirectByRefWithFewArgs(Object obj, Span`1 copyOfArgs, BindingFlags invokeAttr)
   at System.Reflection.MethodBaseInvoker.InvokeWithFewArgs(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)
   at StreamJsonRpc.TargetMethod.InvokeAsync(CancellationToken cancellationToken)
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.ExecutionContextCallback(Object s)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext(Thread threadPoolThread)
   at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1.AsyncStateMachineBox`1.MoveNext()
   at StreamJsonRpc.AwaitExtensions.SynchronizationContextAwaiter.<>c.<OnCompleted>b__5_0(Object action)
   at System.Threading.ExecutionContext.RunForThreadPoolUnsafe[TState](ExecutionContext executionContext, Action`1 callback, TState& state)
   at System.Threading.QueueUserWorkItemCallback`1.Execute()
   at System.Threading.ThreadPoolWorkQueue.Dispatch()
   at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart()
ProcessId: 32564
Tag: 00000HC
ThreadId: 11
CounterInformation: 
CustomParameters: {
}
GatewayCorrelationId: 
The message resource is present but the message was not found in the message table
 
Please help and thanks in advance
 


Get-AuthenticodeSignature return
D:\Nav\Install\BC24.3.21517.W1\applications\BaseApp\Source\Microsoft_Base Application.app
Signature Type: None
Status: UnknownError
Status Message: The form specified for the subject is not one supported or known by the specified trust provider
Name                           Value                                                                                                                 
----                           -----                                                                                                                 
PSVersion                      5.1.17763.1971                                                                                                        
PSEdition                      Desktop                                                                                                               
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}                                                                                               
BuildVersion                   10.0.17763.1971                                                                                                       
CLRVersion                     4.0.30319.42000                                                                                                       
WSManStackVersion              3.0                                                                                                                   
PSRemotingProtocolVersion      2.3                                                                                                                   
SerializationVersion           1.1.0.1  
 

 

$AppFiles = Get-ChildItem -Path 'D:\Nav\Install\' -Filter 'Mic*Base*.app' -Recurse
foreach ($AppFile in $AppFiles) {
    $cert = Get-AuthenticodeSignature $AppFile.FullName
    Write-Host $cert.Path
    Write-Host 'Signature Type: ' -NoNewline 
    Write-Host $cert.SignatureType
    #Write-Host 'Signer Certificate:'
    #Write-Host $cert.SignerCertificate
    Write-Host 'Status: ' -NoNewline
    Write-Host $cert.Status
    Write-Host 'Status Message: ' -NoNewline
    Write-Host $cert.StatusMessage
    #Write-Host 'Time Stamper Certificate:'
    #Write-Host $cert.TimeStamperCertificate
}
$PSVersionTable
  • Suggested answer
    YUN ZHU Profile Picture
    86,223 Super User 2025 Season 1 on at
    Issues with publishing BC24.3.21517.W1 - Publish-NAVApp does not recognize certificate
    Hi, it seems to be related to Universal code.
    More details:
    Dynamics 365 Business Central Universal code initiative
     
    Thanks.
    ZHU
  • MG-16080648-0 Profile Picture
    5 on at
    Issues with publishing BC24.3.21517.W1 - Publish-NAVApp does not recognize certificate
    we have the same problem on our german onPrem Installation DE Business Central 24.3 (Plattform 24.0.21458.0 + Anwendung 24.3.21374.21517)
    Is someone already in contact with the Microsoft Support? I want to be sure, that this issue is fixed in the "newer" BC 24.x Version
  • Suggested answer
    Mustafa Omerbegović Profile Picture
    1,429 Super User 2025 Season 1 on at
    Issues with publishing BC24.3.21517.W1 - Publish-NAVApp does not recognize certificate
    Hello,
     
    Maybe you will find something useful on the following link.
     
     
    I would trust Stefano Demiliani and try to do as he stated.
     
    Greetings

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

News and Announcements

Now Available: 2025 Release Wave 2

Quick Links

Ramesh Kumar – Community Spotlight

We are honored to recognize Ramesh Kumar as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 2,655

#2
Mansi Soni Profile Picture

Mansi Soni 1,574

#3
YUN ZHU Profile Picture

YUN ZHU 1,453 Super User 2025 Season 1

Featured topics

Product updates

Dynamics 365 release plans