Hi,
Windows Server 2008 R2 Enterprise x64
IIS7.5 (default IIS installation)
Sorry if this is a FAQ, if so please just provide a link or appropriate search string. I did search this site and have Googled extensively before posting.
I need to create a new virtual directory pointing to a UNC path on another server. Here's what I've done:
* Add Virtual Directory
* Configured alias ("futrixStatic") and physical path. For the path, I've tried both \\machinename and T:\... (where T:\ is a network drive allocated by login script)
* Under Connect As, configured a local user account, which exists on both machines. I've temporarily added that account to Administrators for testing, but will need to undo that in production. I've not added the domain name, IOW the configuration is "JohnDoe", not "Machinename\JohnDoe"
* I've added a default document and enabled directory browsing. This created a web.config file in the UNC root folder:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<directoryBrowse enabled="true" />
<defaultDocument>
<files>
<add value="Menu.html" />
</files>
</defaultDocument>
</system.webServer>
</configuration>
If I navigate to http://localhost/futrixStatic/Public/CorporateCustomer/Menu.html in my browser, this works.
However, if I navigate to http://localhost/futrixStatic, I was hoping directory browsing would display the two sub-directories on the remote UNC path. Instead, I get this error:
Server Error in '/' Application.
--------------------------------------------------------------------------------
Configuration Error
Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.
Parser Error Message: An error occurred loading a configuration file: Failed to start monitoring changes to '\\machinename\t$\tier3\futrixStatic' because access is denied.
Source Error:
[No relevant source lines]
Source File: \\machinename\t$\tier3\futrixStatic\web.config Line: 0
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.272
Questions:
1) Are there any particular gotchas in configuring a virtual directory using a UNC path in IIS7?
2) Any ideas how I can enable directory browsing for my virtual directory?
3) Can you recommend any good IIS tutorial sites (I didn't really like learn.iis.net). Otherwise any good books? The WROX book on Amazon looks OK, but I'm not a day-to-day IIS administrator - my needs are very simple - and this book looks like overkill for me.
Regards,
Scott