Solved

IIS: Access to file on another system

Posted on 2007-11-16
6
799 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
Comment Utility
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:tedbilly
Comment Utility
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
Comment Utility
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
Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

 
LVL 51

Expert Comment

by:tedbilly
Comment Utility
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
Comment Utility
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:
tedbilly earned 150 total points
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Here are the symptoms: You start receiving calls from users that one of your legacy web apps isn't coming up, so you log into your IIS 5 server to check it out.  When you pull up the services, you notice that the WWW Publishing service isn't runn…
Running classic asp applications under Windows Server 2008 R2 (x64) and IIS 7 is not as easy as one may think. It took me a while to figure it out while getting error 8002801d a few times. After you install the OS you will need to install the fol…
This video discusses moving either the default database or any database to a new volume.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

743 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

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now