Skip to content

WinForm Razor Template Network Share Error #371

@WellSomething

Description

@WellSomething

Hello,

I'm trying to send an email using Razor Template on my c# WinForm. It works when I run the program locally, but once I place it on network share it gives me this error:

System.IO.DirectoryNotFoundException: Could not find a part of the path '\SERVER\DIRECTORY1\DIRECTORY1\PROGRAMDIRECTORY\FluentEmail.Core.dll'.

The thing is, that the program and all the dll are actually in \SERVER\DIRECTORY1\PROGRAMDIRECTORY.

For some reason, DIRECTORY1 is being duplicated when trying to find that dll. Anyone has any idea why this happens?

If I remove the Email.DefaultRenderer = new RazorRenderer(); from the code and use a simple .Body for the email it sends without problems.

Any help would be appreciated.

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions