简体   繁体   中英

IIS Virtual Directory triggers “The requested page cannot be accessed because the related configuration data for the page is invalid.”

I have added to my IIS8 site a virtual directory ( \\ANTERGOS1\\data\\heizungskeller ) that points to a Samba share residing on a different server. Trying to access the content through a browser, however, triggers the HTTP Error 500.19 (" Cannot read configuration file \\?\\UNC\\ANTERGOS1\\data\\heizungskeller\\web.config "). What might be the issue? Do I need to add IUSR to the users of the Samba share? If so, with which password as I understand that IUSR is devoid of a password?

I found the answer myself! The "advanced options" of the Virtual Directory allow to impersonate a specific user rather than the standard IUSR. See picture. 在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM