Solved

IIS: Access to file on another system

Posted on 2007-11-16
6
802 Views
Last Modified: 2008-04-10
Hello,
I have my application written in VB.NET and have it deployed in IIS 7 on Windows Vista. In one of the pages, a file has to be opened that resides on a remote computer. I am building the path to the file, inside the code alright.

The problem I have is, when I launch this application using the local development server, I am able to click the link and open the remote file. But when I launch the application from IIS, I cannot open the application. Do I have to set the permissions for the IIS to access the file? The IIS server and the remote system are on the same LAN.

Thanks.
0
Comment
Question by:pavanbh
  • 3
  • 2
6 Comments
 
LVL 1

Expert Comment

by:philsmicronet
ID: 20303283
The world wide web service on your Vista machine is probably set to use the Local System account which does not have network access.

Right Click  Computer and Go Manage.
Double click on services
Find the World Wide Web Serice and go into properties
Click on the Logon Tab and select a user that has permissions to the file you are trying to access

0
 
LVL 51

Expert Comment

by:Ted Bouskill
ID: 20303292
It's not the service that needs the permissions.  It's the Identity account used in the Application Pool that is used to access resources.
0
 

Author Comment

by:pavanbh
ID: 20303432
Thanks for your replies guys.

A little more clarification please. So tedbilly, in my IIS manager, in the Authentication, the anonymous authetication is enabled and is configured to use 'Specific User' which is IUSR. What do you suggest I do next? Thanks.
0
Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

 
LVL 51

Expert Comment

by:Ted Bouskill
ID: 20303719
No you aren't looking in the right place.  In IIS Manager you should see something called 'Application Pools' which will contain a 'Default Application'  If you right click that you will see a few tabs and one will be the 'Identity' tab.

You are looking at the role used to authenticate access to the site.  The Application Pool defines the access for the code that runs web applications.
0
 

Author Comment

by:pavanbh
ID: 20303859
I do not see the window with tabs when i right click the defaultAppPool. But if I open the advanced settings, I get a tabular window that has a section 'Process Model' in which the Identity is set to NetworkService with nothing in the 'IdentitySpecificUserCredentials' field. What and where do I need to change my settings? Thanks.
0
 
LVL 51

Accepted Solution

by:
Ted Bouskill earned 150 total points
ID: 20305490
Yes, now you are in the correct spot.  Here is the issue, you have give permissions to the remote file for 'NT AUTHORITY\NetworkService' or you have to create a domain account to use for the application pool then give that domain account permissions.

In order to protect web servers on the internet, IIS usually has very weak accounts that can basically only run the web application.  If you choose to give more permissions you have to do it manually and of course are putting your servers at greater risk.
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

If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
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…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

828 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