« Previous Next »

Thread: Webserver unable to read from share

Last post 10-24-2009 9:28 AM by sjender. 9 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (10 items)

Sort Posts:

  • 10-21-2009, 4:36 AM

    • sjender
    • Not Ranked
    • Joined on 10-21-2009, 3:43 AM
    • Posts 10

    Webserver unable to read from share

    Hello,

    I am working a couple of days on the next problem:

    1 windows 2008 server with shared partition.
    1 windows 2008 webserver with iis7. (wil become more)

    I want the webserver to get his data from the windows share, but it fails every time.
    The servers are on a domain which works fine.
    I have given EVERYONE full access on the share to rule out it's a permissions problem.
    I let the site connect as a domain user which I also given full access to the share and the folder.
    When I click "test settings" via "BASIC SETTINGS" I get the next messages:
    AUTHENTICATION: (OK)
    AUTHORIZATION: THE PATH DOES NOT EXIST OR ENVIRONMENT VARIABLES IN THE PATH COULD NOT BE EXPANDED TO VERIFY WHETHER IT EXISTS

    This is strange, because I have specified the folder using the mini-explorer in IIS7.

    When I access the website I get the next error.

    CANNOT READ CONFIGURATION FILE.
    \\?\E:\root\localuser\mapje\web.config

    I can't find what I'm doing wrong, when I access the share using explorer I can delete, change, etc all files.

    I have also tried to setup "shared configuration".
    Export the configuration to the share works fine, but when I try to enable it on the same share I get the next error:

    CANNOT FIND ALL CONFIGURATION FILES AT THE SPECIFIED PATH. SHARED CONFIGURATION CANNOT BE ENABLED

    I think it's all the same problem, but I can't seem to find what I'm doing wrong.
    I think it's about user rights, but I can't seem to find what's wrong.

  • 10-21-2009, 4:48 AM In reply to

    • lextm
    • Top 10 Contributor
    • Joined on 10-22-2008, 12:18 AM
    • Shanghai, PRC
    • Posts 1,407

    Re: Webserver unable to read from share

    Sounds like this is your first time to configure such settings.

    You can access the share from the IIS server does not mean IIS can, as IIS worker process/application pool is not running under your account.

    You need to grant application pool identity enough permissions on the file share, so as to allow it access the data.

    It is recommended to set up a service account in your domain, and then change the pool identity to it. After that you can grant this service account enough permissions on the file share and everything should start to work.

    Regards,

    Lex Li
    Support Engineer at Microsoft
    ---------------------------
    This posting is provided "AS IS" with no warranties, and confers no rights.
  • 10-21-2009, 6:12 AM In reply to

    • sjender
    • Not Ranked
    • Joined on 10-21-2009, 3:43 AM
    • Posts 10

    Re: Webserver unable to read from share

    This is indeed the first time I setup this setting...

    But I already changed the application pool user to an user in the administrators group in the domain.

    And when enabling the "shared configuration" I must specify a username and password, so I also specify the same user which is in the administrators group.

    To be sure I also granted full access to the specific user on the share and the subfolder in the share.

    Are there any more user accounts which I should give access to the share or to the folder where the website is located?

    p.s. In the event log I see errors that the site could start because not all ISAPI components are loaded, but it's a fresh installation of IIS7, I started testing with the default website.

  • 10-21-2009, 10:19 PM In reply to

    • lextm
    • Top 10 Contributor
    • Joined on 10-22-2008, 12:18 AM
    • Shanghai, PRC
    • Posts 1,407

    Re: Webserver unable to read from share

    Just noticed that you have mapped the remote file share to drive E. That can bring troubles as we document in KB207671. (http://support.microsoft.com/kb/207671),

    Do not use drive letters mapped to network shares. Not only are there only 26 potential driver letters to select from, but if you try to use a drive letter that is mapped in a different security context, problems can occur. Instead, you must always use Universal Naming Convention (UNC) names to access resources. The format must look similar to the following: \\MyServer\filesharename\directoryname\filename

    Lex Li
    Support Engineer at Microsoft
    ---------------------------
    This posting is provided "AS IS" with no warranties, and confers no rights.
  • 10-23-2009, 9:09 AM In reply to

    • sjender
    • Not Ranked
    • Joined on 10-21-2009, 3:43 AM
    • Posts 10

    Re: Webserver unable to read from share

    That works!

    Thank you very much!

  • 10-24-2009, 6:01 AM In reply to

    • sjender
    • Not Ranked
    • Joined on 10-21-2009, 3:43 AM
    • Posts 10

    Re: Webserver unable to read from share

    Oops.

    I answered to soon....

    When I exit the IIS manager and restart it again it cannot find the config files.
    I am asked to specify my credentials.

    error:
    There was an error while trying to connect.
    Do you want to retype your credentials and try again?

    Filename:
    \\?\UNC\data\data\config\iis\administration.config
    error: cannot read configuration file

    When I retype my credentials it won't work either.
    I use the same credentials as the one I used to setup "shared configuration" in the first place.

    What am I missing this time?

  • 10-24-2009, 7:27 AM In reply to

    Re: Webserver unable to read from share

    I am not sure you have the same problem here I think you have 2 different problems.

    At the moment forget about the shared configs.

    Keep it simple have the website on one server and the data on another. Get that working first. For this all the config settings will be on the IIS webserver machien not on the data machine.

    I am not sure you even need shared config. It sounds too much like a headache for you. It will not save you very much time unless you have dozens of server and/or dozens configs per server.

    From the impression you give you have a smaller setup than this and I do not see the need, you are creating more work for yourself in the real world. And for a smaller setup it will save you very little time. It is not much more effort to have 2 configs on 2 separate machines. I know there is a need for people to want to try new feature and for MS to push them but I don't see the need. Previous versions of IIS didn't have this and we ran perfectly adequate web farms true it helps larger environment but you do not need it.

  • 10-24-2009, 8:14 AM In reply to

    • sjender
    • Not Ranked
    • Joined on 10-21-2009, 3:43 AM
    • Posts 10

    Re: Webserver unable to read from share

    I want to run a NLB cluster with about 8 servers.
    I need the IIS configuration to be identical on every server.

    Sure there is a way around that by just adding every site to every server.
    But I think shared configuation can help me save a lot of time trying to keep the servers synchronised.

    I already have set up an IIS server with data on another server.
    And I succesfully enabled shared configuration.

    Everything works fine, untill I restart the IIS management console, then the error occurs...

  • 10-24-2009, 8:39 AM In reply to

    Re: Webserver unable to read from share

    The point is you can have the configuration identical on multiple servers in a farm without shared config. First the priority should be getting a working version then look at additional labour saving solutions.

     

    Also I would have a hardware load balanced solution rather than NLB for 8 servers in a farm. I would only use NLS for a couple of servers. It would reduce the risk and have better manageability and scalability.

  • 10-24-2009, 9:28 AM In reply to

    • sjender
    • Not Ranked
    • Joined on 10-21-2009, 3:43 AM
    • Posts 10

    Re: Webserver unable to read from share

    You may be right.

    But at this time I would like to have "shared configuration" enabled.
    This should work right?

    If you have another option for synchronising IIS servers, please let me know.

Page 1 of 1 (10 items)
Microsoft Communities