Unable to send email from within an ASP.NET webform application in dev environment. Working fine in Test & Production.
The following line of code:
smptClient.Send(message)
Generates this exception:
"Loading this assembly would produce a different grant set from other instances. (Exception from HRESULT: 0x80131401)"
I've tried everything I can find on the web and in this forum, but still get the exception.
Anyone know how to resolve this? Using .Net Framework 4.7.2 and latest version of Windows 10 with all updates as of June 8, 2021.
TIA, Gary.