vxan wrote: |
Να συμπληρώσω ότι θα πρέπει να δώσεις τα απαραίτητα permissions στο φάκελλο που θα σώζεις το file και να έχεις υπόψη με ποιο χρήστη θα τρέχει ο κώδικας (ASPNET. NETWORK SERVICE or Impersonate)
|
|
Όσον αφορά το Impersonate (Άν επιλέξεις να μην έχει δικαιώματα ο ASPNET User), σου παραθέτω κάποιες οδηγίες από το MSDN:
In the application configuration file (Web.config), you establish the authentication mode that your application uses and establish that the application will impersonate the user's credentials — that is, that it will run as that user.
To configure Web.config to allow Windows integrated security
Open the Web.config file for your application and add the following elements to it:
<authentication mode="Windows" />
<identity impersonate="true"/>
The <authentication> element might already be there.
Note Elements in Web.config are case sensitive.
Με τον τρόπο αυτό, θα πρέπει να έχει δικαιώματα στον φάκελλο του Server ο Windows User που άνοιξε την σελίδα.