I have a Windows 2008 R2 server running IIS 7.5. I'd like to set up a virtual directory for my website to allow the download of video files from a file share on a server in another domain. I have a domain username and password that allows me to access this file share. However, when I try to setup the virtual directory in IIS, I get the following error message:
HTTP Error 500.19 - Internal Server Error
The requested page cannot be accessed because the related configuration data for the page is invalid.
- Module: IIS Web Core
- Handler: Not yet determined
- Error Code:
- Config Error: Cannot read configuration file
- Config File:
- Requested URL: http://localhost:8080/Video
- Physical Path:
- Logon Method: Not yet determined
- Logon User: Not yet determined
Weirdly, I can hit Explore on my virtual directory and IIS will launch Explorer showing me the files.
For my site's authentication settings I have Basic and Windows authentication settings enabled.
Here are the things I've tried unsuccessfully:
I've Googled until my eyes have gone blurry and spent hours trying many recommended suggestions but all to no avail.
How can I solve this problem?
I have found a couple ways around this, depending on what your problem is:
web.configfile in the shared directory.
<location path="video" inheritInChildApplications="false" />element in your main
web.configto specify that the virtual directory is not allowed to have
web.configsettings override its parent.
web.configin it, and use the URL Rewrite tool to make a set of rewrites to the actual content.
precondition="managedHandler"to its settings in
User contributions licensed under CC BY-SA 3.0