Asked by:
HTTP Error 500.19 - Internal Server Error - Error Code 0x80070005

Question
-
User-1398824828 posted
I have created a virtual directory in IIS > MySite as /Media to a network drive. //129.1.1.44/media/.
This is opening without any issues in explorer and i have the full permission to the folder,when i right click the media folder from iis and select explore it's opening without any issues.
i also have given Full Control permission for IUSR, ISS_IUSRS, Network_Services on this folder.
But when i right click > Manage Virtual Directory > Browse i'm getting below error.
reading file (using Dim path As String = Server.MapPath("~/MEDIA/123456.jpg") ) is working fine for me.
but i'm not able to upload.SaveAs any file to this folder. getting error "Access to the path '\\129.1.1.44\media\xyz.pdf' is denied."
HTTP Error 500.19 - Internal Server Error The requested page cannot be accessed because the related configuration data for the page is invalid. Detailed Error Information: Module IIS Web Core Notification BeginRequest Handler Not yet determined Error Code 0x80070005 Config Error Cannot read configuration file due to insufficient permissions Config File \\?\UNC\mysite\media\web.config Requested URL http://localhost:8080/MEDIA Logon Method Not yet determined Logon User Not yet determined
Config Source: -1: 0:Can someone help me on this please
Monday, July 18, 2016 3:53 PM
All replies
-
User-166373564 posted
HI ramiahragu
According to the error message above, the IIS_IUSRS group does not have the appropriate permissions for the ApplicationHost.config file, for the Web.config file, or for the virtual/application directories of IIS.
Grant the Read permission to the IIS_IUSRS group for the ApplicationHost.config file or for the Web.config file. To do this, follow these steps:
- In Windows Explorer, locate the folder that contains the ApplicationHost.config file that is associated with the Web site, or locate the virtual directories or the application directories that contain the Web.config file that is associated with the Web site. Note The Web.config file may not be in the virtual directories or the application directories in IIS. Even in this situation, you need to follow these steps.
- Right-click the folder that contains the ApplicationHost.config file, or right-click the virtual or application directories that may contain the Web.config file.
- Click Properties.
- Click the Security tab, and then click Edit.
- Click Add.
- In the Enter the object names to select box, type computername\IIS_IUSRS, click Check Names, and then click OK. Note Computername is a placeholder for the computer name.
- Click to select the Read check box, and then click OK.
- In the Properties dialog box for the folder, click OK. Note Make sure the folder's properties are inherited by the ApplicationHost.config and Web.config files so that IIS_IUSRS has the Read permission for those files.
Please let me know if it can fix it.
Regards,
Angie
Tuesday, July 19, 2016 1:37 AM -
User-1398824828 posted
Dear Angie,
My web.config file is in the root folder of the project and the permission full control permission is given for the user MyPcName\IIS_IUSRS.
But still getting the same error as mentioned above
Tuesday, July 19, 2016 3:20 AM -
User1869050296 posted
try granting access to IUSRS and NETWORK SERVICE
Tuesday, July 19, 2016 6:12 AM -
User-1398824828 posted
Dear Jamplines
that's already there as mentioned in my first post
Tuesday, July 19, 2016 10:57 AM -
User475983607 posted
Yeah, I don't think you can use a network share as virtual directory.Tuesday, July 19, 2016 10:57 PM -
User-1398824828 posted
Reading file (using Dim path As String = Server.MapPath("~/MEDIA/123456.jpg") ) is working without any issues.
The issue what i'm facing is when i upload the file to this path i'm getting error "Access to the path '\\129.1.1.44\media\xyz.pdf' is denied." even after giving Full control permission.
Wednesday, July 20, 2016 3:31 AM -
User475983607 posted
You're referencing two different errors which is confusing. See the following kb article.
Wednesday, July 20, 2016 8:42 AM -
User-1398824828 posted
Ok, sorry for that.
My priority is to upload the file to Virtual Directory. but i'm getting access denied error there
Wednesday, July 20, 2016 11:46 AM -
User-166373564 posted
Hi,
reading file (using Dim path As String = Server.MapPath("~/MEDIA/123456.jpg") ) is working fine for me.
but i'm not able to upload.SaveAs any file to this folder. getting error "Access to the path '\\129.1.1.44\media\xyz.pdf' is denied."
This is a workaround, set the root of the website as a specified user. see: Server.MapPath Access to the Path is Denied.
Regards,
Angie
Wednesday, August 3, 2016 6:39 AM