ASP – Access to path * is denied

I was trying to write to a file in ASP.Net and was getting the following error:


Access to the path “D:\WEB\******\dump.csv” is denied.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.UnauthorizedAccessException: Access to the path “D:\WEB\******\dump.csv” is denied.

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) 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 write access to a file, right-click the file in 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.

I thought this would be an easy fix. I added the permissions that the error specified but that did not fix the problem. In addition to the {MACHINE}\ASPNET account you also need to give permission to the NETWORK SERVICE account to the file/directory. Hope this helps you too 😉

Blackberry Admin “Send As” Permission

After installing blackberry Small Business Edition Server to our environment, and following all the blackberry documentation for installing blackberry server we still had issues. The issue was some users were able to receive messages but were not able to send from their blackberry. As t turns out it is a bug in Microsoft 2003 SP1 and Windows 2000 SP 4. The security changes in these service packs do to allow you to inherit permissions for certain built in groups such as Administrators, Domain Administrators, and Enterprise Administrators. After about an hour, the required Send As permission for the Balckberry Admin user was revoked or disappeared from the user in theses groups. This Microsoft Article explains why and how to change the behavior. Our work around was simpler than the Microsoft suggested one.


Note If you use Active Directory Users and Computers, make sure that Advanced Features is selected on the View menu or you will not see the “Security” tab in properties.
1. In AD Users and Computers, Create a new Organizational Unit called Blackberry Users
2. Right click on the Blackberry Users group and Click Properties
3. Click the Advanced button.
4. Uncheck

  1. If the BlackBerry Enterprise Server administration account that requires the Send As permission is not listed, click Add and select the BlackBerry Enterprise Server administration account name.
  2. Click OK.
  3. Double-click the BlackBerry Enterprise Server administration account name.
  4. In the Applies Onto list, select User Objects.
  5. Select the Send As check box.
  6. Click Apply, and then click OK.
  7. Close the Properties window, and then close Active Directory Users and Computers.
Copyright EverythingTech 2019
Tech Nerd theme designed by Siteturner