"Cannot read configuration file" Error accessing image from virtual directory in IIS whose physical path is a network folder

I deployed my application on IIS 7.0. I wanted to use the Image shared folder in my application, so I created a virtual directory inside my deployed application in IIS.

I set the physical path for this virtual directory to a shared folder on another machine. Now, when I try to view any image from this shared folder, I get the following error:

HTTP Error 500.19 - Internal Server Error

The requested page cannot be accessed because the configuration data associated with it is invalid for the page.

Details of the error:
IIS Web Core Module
BeginRequest Notification
Handler Not yet defined
Error Code 0x8007052e
Configuration error Unable to read configuration file
Configuration File \? \ UNC \ WINSERVER1 \ hpu_images_staging \ web.config
Requested URL http: // [IPAddress] /Images/Temp_Harsh/photos/086b88b9-a228-4e0d-ba29-436c74ff5258.jpg
Physical path \ WINSERVER1 \ hpu_images_staging \ vetphotos \ 086b88b9-a228-4e0d-ba29-436c74ff5258.jpg
Login method Not yet defined
Login user Not yet defined
Failed Request Tracking Log C: \ inetpub \ logs \ FailedReqLogFiles

How to resolve this?

+6
source share
2 answers

Basically, adding the correct username and password for VD in the basic settings allowed this.

+1
source

Does this help http://support.microsoft.com/kb/942055 ? I see that reason number 2 matches what you are doing. See if it helps

0
source

Source: https://habr.com/ru/post/885649/


All Articles