Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Asp.net Web Application trying to write to UNC virtual directory on another member server

Posted on 2007-11-20
4
Medium Priority
?
440 Views
Last Modified: 2013-11-07
Currently we have a virtual directory setup on our web server, and it is pointing to a unc share on a member server.  

I.E Server A has Virtual Directory 1 pointing to a share on Server B.

We have created a domain user account, and given full control permissions to the share.  We also have taken advantage of the "Connect As" option in IIS 6.0.  
We can see the contents of the share when browsing the virtual directory in IIS manager, but when trying to upload a file to the directory we are presented with the following error.  "Access to the path \\localhost\scandocs\rready is denied".  Our virtual directory is the scandocs portion and the rready portion is pulled from login on the web site.  What should happen is if there is no directory matching the user that is logged in it should create the parent i.e rready and then put the uploaded file under that directory.  If the directory already exists it should write the file under the existing directory.  
This works neither when trying to write a new directory or using an existing.  

Also it is very important to note that on our development machine (windows xp) everything works as it should, and that we have multiple websites using host headers.  With that said we do have the virtual under the default website in IIS.  We do not have a host header setup for that though.  Any help will be greatly appreciated.
0
Comment
Question by:c2csurveys
  • 2
  • 2
4 Comments
 
LVL 15

Expert Comment

by:Solar_Flare
ID: 20322381
check that the IUSER_MACHINENAME account has access to the share - that is the account that the asp.net process runs under and it needs permissions to do any file access.
0
 

Author Comment

by:c2csurveys
ID: 20322426
I am not sure as to where you are talking about.  If you mean the anonymous access account on the remote share, then it will not resolve in our domain.  If I go to the remote share and try an advanced find throughout the domain it cannot find the account.
0
 

Author Comment

by:c2csurveys
ID: 20329998
Does anyone know of a command in asp.net that will directly access a virtual directory?
0
 
LVL 15

Accepted Solution

by:
Solar_Flare earned 2000 total points
ID: 20378292
the asp.net web application needs to run under a user account, and that user account needs to have access to the share. because the share is located on the local machine you should be able to check the permissions of that location and add the IUSER_MACHINENAME user to have access to it. the account is on the local machine and not the domain.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
Simulator games are perfect for generating sample realistic data streams, especially for learning data analysis. It is even useful for demoing offerings such as Azure stream analytics, PowerBI etc.
Integration Management Part 2
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…
Suggested Courses

971 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