locked
IIS7 and central file storage...best way to configure RRS feed

  • Question

  • User346663432 posted

    We would like to set up multiple IIS7 servers to access a central files storage device.

    What's the best way to go about setting this up ?

     

     

    -Brian

    Tuesday, December 23, 2008 4:58 PM

Answers

All replies

  • User1073881637 posted

    Here is an article I typed up using AD and web-farms.

    http://www.iislogs.com/articles/adwebfarm/

    • Marked as answer by Anonymous Tuesday, September 28, 2021 12:00 AM
    Wednesday, December 24, 2008 2:34 AM
  • User346663432 posted

    Thanks...some good info.

    We are running into a bit of trouble getting IIS7 to work properly.

    The shared storage area is NOT on another windows server....and actually I'm not sure of exactly what kind of platform it is running on.

    I can configure the share properly via windows explorer and that works Great...100% of the time.  We can access it thru windows explorer...and via custom VB.net apps without any issues.

    When I try to configure IIS7, however.....we get permissioning errors....like this..when we try to get to a test file via the browser........and we are stuck as to what to do to resolve them....

     

     

    Module IIS Web Core
    Notification BeginRequest
    Handler Not yet determined
    Error Code 0x80070005
    Config Error Cannot read configuration file due to insufficient permissions
    Config File \\?\UNC\Our-Share-Name\web.config
     
     
    Requested URLhttp://localhost:80/test/testshare.html
    Physical Path\\Our-Share-Name\test\testshare.html
    Logon MethodNot yet determined
    Logon UserNot yet determined
    Friday, December 26, 2008 1:57 PM
  • User511787461 posted

    Looks like you have mapped root of the site to \\Our-Share-Name - this will not work since \\Our-Share-Name is not a smb share but a server on which there are smb shares - you can verify this by doing "dir \\Our-Share-Name" from the command prompt.  You will need to map either the root of the website (or a virtual directory underneath) to \\Our-Share-Name\share

    Friday, December 26, 2008 2:13 PM
  • User346663432 posted

     We did map the share to a virtual directory  \bmdtest.

    I have tried a number of things...

    > to Z:  which is the drive letter the shared storage is assigned to

    > to Z:\testing  (a subfolder on the shared storage).

     

    (When I set up the virtual directory in IIS7 - I do see the subfolders of the share.)

    Keep getting the same error regardless....

     

    Module CustomErrorModule
    Notification SendResponse
    Handler Not yet determined
    Error Code 0x80070003
    Config Error Cannot read configuration file
    Config File \\?\z:\testing\web.config
    Requested URL http://localhost:80/bmdtest/test.html
    Physical Path z:\testing\test.html
    Logon Method Not yet determined
    Logon User Not yet determined

     

     

    Friday, December 26, 2008 2:22 PM
  • User511787461 posted

    You cannot use a mapped drive - mapped drives are per session and cannot be used cross session - note that IIS is running in a different session than your interactive logon.  If you want to use smb share, you have to use it in \\server\share format.

    Friday, December 26, 2008 2:33 PM
  • User346663432 posted

    We've tried that as well......and get this:

    Module IIS Web Core
    Notification BeginRequest
    Handler Not yet determined
    Error Code 0x80070005
    Config Error Cannot read configuration file due to insufficient permissions
    Config File \\?\UNC\16123.cloud.storage.gogrid.com\16123\testing\web.config
    Requested URL http://localhost:80/bmdtest/test.html
    Physical Path \\16123.cloud.storage.gogrid.com\16123\testing\test.html
    Logon Method Not yet determined
    Logon User Not yet determined

     

    and if I try to enter path credentials....I get error:  "Specified username does not exist"

     the username and pass are the same I entered when mapping the drive in Windows Explorer.

    ( Z: is what I had mapped in windows explorer to   \\16123.cloud.storage.gogrid.com\16123 -- which is our assigned storage area.)

    Friday, December 26, 2008 2:38 PM
  • User1073881637 posted

    Regardless if this is a windows based file server or SAMBA based, there should be a way to add permissions etc.  Here is a couple of threads I marked that might help

    http://forums.iis.net/t/1152018.aspx

    http://forums.iis.net/t/1150447.aspx

    Friday, December 26, 2008 2:54 PM
  • User346663432 posted

    Steve...

     

    in order to access the remote storage via the mapping I had set up in Windows Explorer...I am required to enter a username and password.

    In IIS7 I assume I will need to do the same ?? (but as I mentioned earlier...I get a username does not exist error...when entering info in the pathcredentials area...).

     

    Friday, December 26, 2008 3:14 PM
  • User1073881637 posted

    Without knowing the device's authentication scheme, (assuming it has it's own authentication store), you'll need to have a local or domain user with the same creds as the device.  In IIS, you can A) either set the application pool to run as this user B) Set the connect as creds. 

    I would try creating a local user that is the same as the logged in user or the creds you authenticated as.  Here is a way to set creds inside IIS.

    http://www.iislogs.com/images/connectas.jpg

    Friday, December 26, 2008 3:50 PM
  • User346663432 posted

    Creating a Windows User account with the same name and password as the NAS.....then setting up the virtual directory path credentials to that user......resolved the problem.

    My preference would be to set up an IIS user for this...if it works.....but I can't find the Add Users option in the IIS Mgr -- where's it hiding ?

     

    -Brian 
    Friday, December 26, 2008 8:21 PM
  • User1073881637 posted

    Making progress! :)  I"d setup your application pool as the dedicated user.  If this is a separate virtual directory.  You could setup a separate application pool and set the user to the custom user.  Here is a article about that.  Notice in the article is has steveschofield\i_example1com

    http://www.iislogs.com/articles/ADWebfarm/SetupIISToAccessRemoteShare/

    Just replace with your username and password, then browse the site.   The app pool creds will get passed, or should assuming you have set the anonymous to authenticate using the app pool user.

    Friday, December 26, 2008 9:05 PM