IIS and Web Servers
Cannot see all files in a virtual directory
Gravatar is a globally recognized avatar based on your email address. Cannot see all files in a virtual directory
  Michael B
  All
  May 28, 2019 @ 07:44pm

I have a virtual directory setup with some js files in it. I can see some of the files when browsing to them but not all of them. I tried deleting the file and re-creating it, no love. I tried setting the permissions to match the files that I can see, still nothing.

This link - https://catalogue.supraz2000.com/sophio-shared-assets/data/aces-catalog-1-make-year-ca.js is the problem one, this one https://catalogue.supraz2000.com/sophio-shared-assets/data/aces-catalog-1-make-year.js works fine. The content of the files are basically the same, (one for US and one for CA).

The server is a 2012 R2.

Gravatar is a globally recognized avatar based on your email address. re: Cannot see all files in a virtual directory
  Rick Strahl
  Michael B
  May 29, 2019 @ 02:31am

Hopefully your permissions are set on the folder not on individual files.

Could it be that you're hitting IIS Request Filter restrictions? Maybe something in the names that's making them not work? Are you getting 404's?

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: Cannot see all files in a virtual directory
  Michael B
  Rick Strahl
  May 29, 2019 @ 04:33am

Thanks for the suggestions Rick. Yes is the answer to your question. 404's. I confirmed that IUSR has permission to the whole folder, and I did check the actual file itself. I tried re-creating it as well. I activated directory browsing and it is NOT visible in the browser. I tried to rename the file and extension and it does not render either (clearly a conspiracy!)

Gravatar is a globally recognized avatar based on your email address. re: Cannot see all files in a virtual directory
  Michael B
  Michael B
  May 29, 2019 @ 01:30pm

Figured this out. Turned out to be my issue. Sorry to have wasted your time.

© 1996-2019