Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

IIS: Access to file on another system

Posted on 2007-11-16
6
Medium Priority
?
806 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
[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
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
Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

 
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 600 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

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

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

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…
Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
Suggested Courses

721 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