Solved

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

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

Want Experts Exchange at your fingertips?

With Experts Exchange’s latest app release, you can now experience our most recent features, updates, and the same community interface while on-the-go. Download our latest app release at the Android or Apple stores today!

Question has a verified solution.

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

In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…

630 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