[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1036
  • Last Modified:

IIS Process cannot write a file to a mapped or shared drive

We are trying to write a file from web service to a different server using either mapped drive or shared drive.  Even we gave access to "Everyone" on those drive, but it is only able write a file to a local directly and not to a different drive.  Could someone help us with this?
0
cses
Asked:
cses
  • 3
  • 2
  • 2
2 Solutions
 
meverestCommented:
Hi,

are you using the "onnect as" feature when setting up the remote network location?

Cheers.
0
 
csesAuthor Commented:
We are using Windows Drive Mapping to map to a specific drive name like M:\\.  
0
 
meverestCommented:
Hi,

I think it will be a much better idea to use the "connect as" feature to make sure that the remote location is accessed by a known, authorised user.

Take a look at this info:

http://msdn.microsoft.com/en-us/library/aa363156(VS.85).aspx

The second paragraph describes the situation we are talking about.

Cheers!
0
NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

 
JuckManCommented:
your problem is security issue with application pool.

Every web application in IIS is running under a application pool. Launch IIS manager, Go to your web application or site and click "home directory" tab. This tab will show you the application name. Expand the application pools in your IIS manager, right click and properties.
go to identity tab and set a domain user who has access your resource. In order for a identity to be part of the IIS applciation pool that windows/domain identity/user needs to be added to IIS_WPG group.

hope this helps
0
 
csesAuthor Commented:
We have changed the administrator account on the default application pool; however, after doing so, whenever the web service is being called, it shows "Service is Unavailable".
0
 
JuckManCommented:
does your admin account part of your local machine's IIS_WPG group. It is mandatory eventhough it is an administrator..
0
 
csesAuthor Commented:
IIS is now able to write to file to mapped drive provided that the mapped drive is shared to "everyone" full access.  However, when IIS calls a .bat file which tries to write file to that location, it is not able to write.  When we run the .bat file manually it is able to write to the location.    Do you know what is going on?
0

Featured Post

Transaction-level recovery for Oracle database

Veeam Explore for Oracle delivers low RTOs and RPOs with agentless transaction log backup and transaction-level recovery of Oracle databases. You can restore the database to a precise point in time, even to a specific transaction.

  • 3
  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now