On my old computer, I had a web page running using Internet Information Services. The content was all on a second hard disk. When I got a new computer, I put the old second disk in the new computer, but I cannot seem to be able to make IIS see the old content. The old computer went through many generations of Windows, from Windows 2000, XP, and 7, with no problems. The new computer has Win 10 Pro.
How are you referencing the physical files?
Are you using a direct reference like “F:\my_site” or are you using a network share like “\MY_OTHER_DRIVE\MY_SITE”?
Also, when you use File Explorer, can you see the other drive and navigate to it?
Also ensure that the user or service under which IIS is running has read permissions to the directory.
Bob, I am using a direct reference. Troutman, I think every user has read permissions, but how would I check that?
You can check the user context of IIS by opening up the Services app - (click Start and type Services) - then locate the IIS service(s) - not sure what those are actually called, but it should be obvious - then look in the Log On As column - which will identify which user the service runs as. This will most likely be ‘local system’
Next, use File Explorer to navigate to the files/folders - right click one of them and select Properties, then Security>Advanced - and in the permissions tab, you can see whether the IIS Service user has permissions, and what kind. If ‘system’ has full permissions, then permissions probably aren’t the problem.
The IIS error message would be helpful
Possibly an AppPool impersonation account priv issue. Make sure your files’ ACL includes DefaultAppPool.