I can't send email via ASP.NET and sent an email to my web hosts for some help and was told to modify my security settings and was sent a link:
http://forums.asp.net/t/1111145.aspx/1
I've read what it said there and tried setting <trust level="Full" originUrl="" />
in web.config, but then I get the error:
This configuration section cannot be used at this path. This happens when the site administrator has locked access to this section using <location allowOverride="false"> from an inherited configuration file.
I've not set any other web.config file.
So I asked the web hosts again, and asked if it was a server setting which I cannot change, but the response I got was just:
You'll need to specify a more specific path.
Which is lovely, but I've no idea what that means!
Having done a bit more digging I am wondering if I have to set up a separate trust
file, is this correct?
Could someone point me in the direction of the correct way to set up my Trust level (I realise "full" is probably incorrect as well?) as I really don't understand what I am supposed to do!