Re: Change file summary (title, author, etc.)

From: Paul Clement (UseAdddressAtEndofMessage_at_swspectrum.com)
Date: 10/12/05


Date: Wed, 12 Oct 2005 09:25:46 -0500

On Tue, 11 Oct 2005 10:04:10 -0700, "Eric" <Eric@discussions.microsoft.com> wrote:

¤ Thank you for your replies, Patrice and Paul.
¤
¤ I think you two nudged me a little in the right direction...not quite there
¤ yet, but close. I explicitly set the NTFS permissions on the directory to
¤ allow the ASPNET account full access. Now, instead of the "file not found"
¤ exception, I get "System.UnauthorizedAccessExcep­tion: Access is denied." on
¤ the following line of code:
¤
¤ oSummProps.Title = myNewTitle
¤
¤ Therefore, I was able to open the file, and it was not read-only. (If you
¤ don't have read/write access, it still opens the file as read-only.)
¤
¤ And Patrice, I took your advice with the filemon...it shows a successful
¤ CREATE request and a successful CLOSE request. Unfortunately, the attempt to
¤ set the title in the line of code above is not logged.
¤
¤ Also, I took the advice of Ken Cox (http://tinyurl.com/7sleo) to change the
¤ ASPNET account from machine to SYSTEM, but that didn't seem to have any
¤ greater effect.
¤
¤ Any other ideas?

OK, well I have same two questions as in my prior reply but I will be more specific. ;-)

How did you implement impersonation? Did you enable the option in web.config? Are you impersonating
the authenticated user (via Integrated Windows or Basic auth)?

Where are the files located? Are they on the web server or a remote network machine?

Paul
~~~~
Microsoft MVP (Visual Basic)



Relevant Pages

  • Re: special authentication
    ... "Paul Clement" wrote in message ... > In addition to what Joe mentioned you also need to enable impersonation. ... All he wants to do is check to see who the authenticated user is. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: integrated login and folder permissions
    ... Hello Paul, ... i am saying that impersonation does not make a difference, because the FileAuthorizationModule ... always uses the impersonation (=client) token to check for resource access. ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Lennon or Buddy?
    ... Paul did with Little Richard. ... John did a great impersonation of Dylan. ...
    (rec.music.beatles)
  • Re: impersonate a user to access the encryptd file
    ... > Where is the file located and if it's a local file why do you need impersonation? ... Microsoft MVP ...
    (microsoft.public.vb.general.discussion)
  • Re: ASPNET cant write in event log on win XP
    ... I solve my problem using impersonation in web.config like this... ... You weren't using Anonymous authentication w/impersonation when it wasn't ... Microsoft MVP ...
    (microsoft.public.dotnet.framework)