Posted on 2006-04-04
Last Modified: 2013-11-25
I have the following problem :
i want to copy an excel file from a remote server on my web server.
the network path is for example \\max71\excelmodels\file1.xls
From web server i see this directory.
when i run my application in i get the error could not find file \\max71\excelmodels\file1.xls.
I have read that this can be a security problem (but in other question i see error denied access for example).
in my web.config file i have already add identiy impersonate="true" but nothing change.
Question by:NUCLEARE
    LVL 3

    Expert Comment

    ok, first try mapping a network drive to \\max71\excelmodels...  just to make sure you can access that directory...

    don't use impersonation, just give and IUSR_machinename user full (or read) permissions on the \\max71\excelmodels folder. now, when you give the file path to copy, use full UNC path \\max71\excelmodels\file1.xls..

    i hope \\max71 has .net installed on it with IIS otherwise those users won't exist on max71.  if not, you may have to use impersonation with a specific account which has access to \\max71\excelmodels.
    <identity impersonate= "true" userName="User" password="password"/>

    when you try to map a network path with a user that doens't have the permissions, you might have noticed "path not found/directory doesn't exist" message..

    Author Comment

    i have give permission to my folder excelmodels to and iusr_machinename.
    In remote server there is IIS and .net framework.
    I my web.config file on web server i have delete identity impersonate.
    From web server if i run \\max71\excelmodels i see the directory(note that i have to enter a password, perhaps
    can be this the problem)
    I get always the same error in my from web server.
    LVL 3

    Accepted Solution

    you said you have to enter a username/password to see the directory on \\max71 ...

    can you try putting this line in web.config with that credentials and try.

    <identity impersonate= "true" userName="User" password="password"/>

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    User art_snob ( encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
    Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
    This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA.…
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    13 Experts available now in Live!

    Get 1:1 Help Now