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.
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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..
NUCLEAREAuthor Commented:
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.
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"/>

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Development

From novice to tech pro — start learning today.