FoxPro and .NET Interop
Sending emails to gmail SMTP with dotnetbridge
Gravatar is a globally recognized avatar based on your email address. Sending emails to gmail SMTP with dotnetbridge
  Paul Dipre
  All
  Jul 24, 2021 @ 01:03am

I am using wwdotnetbridge on vfp9 windows 10 to send emails from a VFP app. Works fine from the local drive, but as soon as I move to a network drive then it fails with the message "unable to create smtpclient due to missing permissions. If you are using a port other than 25 for your email server smtppermission has to be explicitly added in medium trust" My exe file is called cafacreg.exe and I have a config file cafcreg.exe.config with the recommended loadFromRemoteSources syntax, but it makes no difference. Been pulling my hair out trying to work out the problem, any help appreciated. many Thanks Paul

Gravatar is a globally recognized avatar based on your email address. re: Sending emails to gmail SMTP with dotnetbridge
  Rick Strahl
  Paul Dipre
  Jul 25, 2021 @ 10:17pm

What version of .NET are you running and on what OS?

CAS permissions are negated by the settings in the config file. Are you sure you have the syntax exactly right and have the cafacreg.exe.config file in the same location as the exe and you are running the EXE from Explorer? If you're running from within the VFP IDE the file that needs those settings is VFP9.exe.config.

What OS and what version of .NET is installed? On anything above Windows 7 this should all work automatically - unless there's explicit Windows Policy set to not allow these overrides.

+++ Rick ---

© 1996-2024