Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WinForm Razor Template Network Share Error #371

Open
WellSomething opened this issue May 4, 2023 · 0 comments
Open

WinForm Razor Template Network Share Error #371

WellSomething opened this issue May 4, 2023 · 0 comments

Comments

@WellSomething
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant