?
Solved

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

Posted on 2008-06-16
8
Medium Priority
?
1,032 Views
Last Modified: 2009-04-06
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
Comment
Question by:cses
[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
  • 3
  • 2
  • 2
8 Comments
 
LVL 37

Expert Comment

by:meverest
ID: 21808539
Hi,

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

Cheers.
0
 

Author Comment

by:cses
ID: 21813200
We are using Windows Drive Mapping to map to a specific drive name like M:\\.  
0
 
LVL 37

Expert Comment

by:meverest
ID: 21817960
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
Technology Partners: 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!

 
LVL 5

Accepted Solution

by:
JuckMan earned 2000 total points
ID: 21843427
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
 

Author Comment

by:cses
ID: 21866135
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
 
LVL 5

Assisted Solution

by:JuckMan
JuckMan earned 2000 total points
ID: 21866578
does your admin account part of your local machine's IIS_WPG group. It is mandatory eventhough it is an administrator..
0
 

Author Comment

by:cses
ID: 21878452
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

Moving data to the cloud? Find out if you’re ready

Before moving to the cloud, it is important to carefully define your db needs, plan for the migration & understand prod. environment. This wp explains how to define what you need from a cloud provider, plan for the migration & what putting a cloud solution into practice entails.

Question has a verified solution.

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

What is an ISAPI filter?   •      It's an assembly (.dll file) that can add or change the way IIS works.   •      They can be enabled globally for your web server or on a site-by-site basis.   When the IIS server receives a request, enabling the ISAPI fi…
When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

770 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