I have a web site written with ASP.NET(VB) that sends out a newsletter monthly, using Amazon SES. The previous month's newsletter had gone out normally, but I received a warning from Amazon that it would soon be a requirement to update security to level TLS 1.2.
I attempted to send out this month's newsletter, but I got a message
Access to the path '\www.famnet.org.nz...\NewsletterEmail.htm' is denied
I remembered the email from Amazon, and so I added into the method that sends newsletters (btnNewsletter_Click): -
System.Net.ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12
However, although the web site was updated, I got the same error messages.
Message detail included
ASP.NET is not authorized to access the requested resource. Consider granting access rights to the resource to the ASP.NET request identity. ASP.NET has a base process identity (typically {MACHINE}\ASPNET on IIS 5 or Network Service on IIS 6 and IIS 7, and the configured application pool identity on IIS 7.5) that is used if the application is not impersonating. If the application is impersonating via <identity impersonate="true"/>, the identity will be the anonymous user (typically IUSR_MACHINENAME) or the authenticated request user.
To grant ASP.NET access to a file, right-click the file in File Explorer, choose "Properties" and select the Security tab. Click "Add" to add the appropriate user or group. Highlight the ASP.NET account, and check the boxes for the desired access.
What file is meant? Is it <path>GroupAdmin.aspx.vb, which is the object containing the btnNewsetter_Click method? Or the html page that is being sent out as the message? There is a problem with either of these: they are both on the server, and I can't see them with Windows File Explorer. I can however see them in the Server-side window of SmartFTP. I can right click and choose properties, and I see three tabs General, Permissions, and Summary. I guessed that Security has been renamed to Permissions and opened this, but it said "This server does not support changing permissions".
So how do I fix this problem? What am I doing wrong? I suspect that I'm looking in the wrong place.
Thank you, Robert Barnes