Asp.net Forum

Ask Question   UnAnswered
Home » Forum » Asp.net       RSS Feeds

Directory Permission

  Asked By: Aysel    Date: Nov 15    Category: Asp.net    Views: 877

I am have control which after accepting parameters generates an image and I am
using it in a vb.net web project.

Statement is somewhat like:


When look in the web directory I could't get an image, so juts for test I mage
it like

I could see a file at the root of drive c. Later I gave write permissions to
that directory but still no, any idea what I have to do ?



2 Answers Found

Answer #1    Answered By: Hilma Miller     Answered On: Nov 15

Your page is running under the aspnet account for the aspnet_wp process, you
can either add that account to the folder you are trying to access or use
impersonation add the following to your web,config (<!-- Enabling

<identity impersonate="true" />) and allow the appropriate permissions
to the folder.

That line in your web.config will make the user viewing the page run the
aspnet_wp process i.e.

If carlosm hits your page the process aspnet_wp will run under carlosm sec

Answer #2    Answered By: Earl Stone     Answered On: Nov 15

have a look in C\winnt\system or c:\winnt you might find your image  in there.

Didn't find what you were looking for? Find more on Directory Permission Or get search suggestion and latest updates.