Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

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
?
439 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

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

For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

730 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