Skip to content

Single file executable causes System.IO.FileNotFoundException  #29581

@cpohk26

Description

@cpohk26

Description

Single file executable causes System.IO.FileNotFoundException in long running applications after the application run for few days (around 5 - 15 days).

Configuration

Version: ASP.NET Core 3.1
OS: Windows 10 Enterprise 1809 & 1909
Architecture: x86-64
Long-running, non-containerized, console application.

Other information

There is a cron worker inside the long-running app.

When

When the cron triggers (eg every 30 minute mark) a specific action will execute, for the stack trace below is sending email (but not limited to). This usually occurs when the application run for few days.

Please note _ is the organizational information removed.

System.IO.FileNotFoundException: Could not load file or assembly 'System.Net.Mail, Version=4.0.2.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. The system cannot find the file specified.
File name: 'System.Net.Mail, Version=4.0.2.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'
   at _.Implementations.Common.MessengerService.SendEmail(IBodyComposer composer, MessageContent content, String host)
   at _.Implementations._.MailDispatcher.SendToAdmin(Boolean escalationMode)

Metadata

Metadata

Assignees

No one assigned

    Labels

    ExternalThis is an issue in a component not contained in this repository. It is open for tracking purposes.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions