Jump to content
Xtreme .Net Talk

Recommended Posts

Posted
Hey, I was wondering if anyone could help me with an issue. I am writing a very basic ASP.NET web application (Visual Basic Code), and in it I will attempt to select a Crystal report name from a dropdown list. Once I select that file, and then click the appropriate hyperlink, the report will open in a different browser window. My problem is, I cannot access the network drive containing the file I need to view. The drive is mapped on my local system, but even when I hard-code the physical drive letter and directory where the report exists, I get a message indicating that the file could not be loaded. It works for any reports sitting locally on my C:\ drive, but no network drive reports. Anybody got any ideas? I'm assuming this has something to do with "identity impersonation", and I've tried it, but I'm new to ASP.NET and I'm more than sure I'm doing something wrong, or at least omitting something significant. Any help would be greatly appreciated! :)
3,450,897,223 posts away from crazy...
  • Leaders
Posted
Does the user that's running IIS/ASP.NET have access to the network drive? Most of the time this is a dumbed up user with little permissions outside the web directory itself so you'll need to give them access to the specific directory where the reports reside.
--tim
Posted

RE::

 

quwiltw:

yeah, basically the user is me. I'm running on a single machine in an attempt to learn ASP.NET, and I'm going through my company's Intranet. I have domain admin access to the drive in question, so it's not that. I had our network guy trying to explain some things to me yesterday that I hoped would give me enough info to get through this, but I find myself still stuck. thanks for the reply. any other ideas?

3,450,897,223 posts away from crazy...
  • Leaders
Posted
When you say the user is "you" are you saying that the ASP.NET worker process is running as SYSTEM instead of MACHINE? I'm not sure which is the default, but I still suspect this is a permissions issue of some sort. Can you check your machine.config just to make sure?
--tim
Posted

RE::

 

quwiltw:

if i'm looking in the right place, the <processmodel> tab of machine.config indicates that the userName is "machine"; am i looking at the right thing here? also, the <identity impersonate> tag is set to false, with a blank userName and password.

3,450,897,223 posts away from crazy...
  • Leaders
Posted
Yep. You should have a local user called ASPNET. The ASPNET account will need explicit access to whereever the report files are as this is the user that is actually attempting to access the report files.
--tim
Posted

RE::

 

quwiltw:

ok. i thought i had visited that before, but perhaps there's still an issue with that user's permissions on the drive. i'll give that another shot. thanks for your help!

:D

3,450,897,223 posts away from crazy...
Posted

RE:

 

Ok, I'm not sure if anyone else will see this issue, but I did neglect to mention that the network drive I'm attempting to access has been configured as a virtual directory for the website, and the ASPNET account has rights to access this directory. Yet it still does not work. If anyone has any other suggestions, I'm all ears. Thanks in advance. :confused:

3,450,897,223 posts away from crazy...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...