Solved

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

Posted on 2007-11-20
4
435 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 500 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

Resolve Critical IT Incidents Fast

If your data, services or processes become compromised, your organization can suffer damage in just minutes and how fast you communicate during a major IT incident is everything. Learn how to immediately identify incidents & best practices to resolve them quickly and effectively.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SSIS Start 2 37
C# Service FileSystemwatcher isse 9 46
Validating textboxes in red square borders. 2 32
CSS for Popup in ASP.NET 4 11
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:…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

685 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