Skip to content

MageCLI .Validate(Manifest manifest) object reference not set #313

Closed

Description

@plutext
 Object reference not set to an instance of an object.
3>     at Microsoft.Deployment.MageCLI.Command.Validate(Manifest manifest) in C:\Users\jh\deployment-tools\src\clickonce\MageCLI\Command.cs:line 1639
3>     at Microsoft.Deployment.MageCLI.Command.ExecuteManifestRelated() in C:\Users\jh\deployment-tools\src\clickonce\MageCLI\Command.cs:line 1439
3>     at Microsoft.Deployment.MageCLI.Command.Execute() in C:\Users\jh\deployment-tools\src\clickonce\MageCLI\Command.cs:line 1486
3>     at Microsoft.Deployment.MageCLI.Application.Main(String[] args) in C:\Users\jh\deployment-tools\src\clickonce\MageCLI\Application.cs:line 44

Problem solved by checking manifest.EntryPoint.TargetPath is not null

Activity

  1. NikolaMilosavljevic commented on Jan 16, 2024

    @NikolaMilosavljevic
    Contributor

    [Triage] @plutext can you provide a simple repro?

  2. janthomasQS commented on Mar 31, 2025

    @janthomasQS

    I am looking at an ApplicationManifest that does not provide an entrypoint assembly but customhostrequired instead. During Validation (which runs even after -Update) Manifest.Entrypoint is null which causes a the crash here: https://github.com/dotnet/deployment-tools/blob/main/src/clickonce/MageCLI/Command.cs#L1607

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions