Re: Unable to create SmtpClient due to missing permissions.
Rick,I copied the below configuration from the help topic you provided the link to, but it's still giving the same error.
<configuration>
<startup>
<!-- supportedRuntime version="v4.0.30319"/-->
<supportedRuntime version="v2.0.50727"/>
</startup>
<runtime>
<loadFromRemoteSources enabled="true"/>
</runtime>
</configuration>
The computer is running XP SP 3
My application name is analyzer.exe
The configuration file is analyzer.exe.config
Is the supportedRuntime version value something that should be changed based on the .Net or VFP runtime being used?
Thanks for any help you can provide, they still can't send out emails ...
Kevin
I don't think this has anything to do with the port or actually sending the mail, but the permissions required to load the .NET DLL that handles the emailing. If don't use SSL messages then try using the non-.NET mode as it doesn't have these requirements.
If you do need to use the .NET component and you have to load it off the network you need to setup the configuration to make it load from there.
Here's more info on that topic:
http://www.west-wind.com/webconnection/docs/?page=_36e0qlogr.htm
Greg & Rick
I'm getting the same thing on a workstation running XP SP 3. The odd thing is that we're using port 25, so I don't know why we would be getting this error. The login criteria for the SMTP server is with authentication and using enhanced mail mode and no SSL login.
We have the wwDotNetUtil.dll with a date of 4/30/2010 (93kb).
I'm not an expert in OS issues, so where do I set the Medium Trust setting for SmtpPermission?
Any suggestions would be greatly appreciated because emails aren't being sent out.
Thanks,
Kevin
I am getting the message at one of my client sites.
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.
I don't get the message and never have. I believe that the client is trying to sent through Yahoo mail. I don't believe that is the issue.
Is this a setting in Internet Explorer? How would I go about fixing this?
Thanks,
-Greg