List Info

Thread: File Access denied




File Access denied
user name
2006-11-30 14:21:19
As Doug suggested, try giving read permissions to this
directory:
c:inetpubwwwrootegovbasis

On 11/30/06, Josef Resperger <josef.respergeriniedv.net> wrote:
> HI!
>
> Thanks for your answer
>
> a)      This is a Windows Server 2000 - Net Framework
2.0
>
> b)      The Application has forms-autentication - this
does work fine there
> is already a webservice called (on another server)
which also works fine,
> only afterwards when I try to read the xml I get the
error.
>
> c)      The file is not in use by any other application
but it is in a
> subdirectory
> c:inetpubwwwrootegovegov.aspx is my start page
(works)
> c:inetpubwwwrootegovbasismenue.xml is the
requested file
>
> d)     As to my knowledge I gave ASPNET permissions;
There is no active
> directory on this server!
>
> Regards
>
> Josef Resperger
>
>
>
>
>
> Von: AspNetAnyQuestionIsOk@yahoogroups.com
> [mailto:AspNetAnyQuestionIsOk@yahoogroups.com] Im
Auftrag von Dean Fiala
> Gesendet: Donnerstag, 30. November 2006 14:40
> An: AspNetAnyQuestionIsOk@yahoogroups.com
> Betreff: Re: [AspNetAnyQuestionIsOk] File Access denied
>
>
>
> You normally don't need to set impersonation to read a
file.
>
> Is this on a 2003 server? If so, you need to allow read
access on the
> file to Network Services account.
>
> Are you using Windows Authentication for the
application? If so, the
> identity the application is using would be the
authenticated user's
> identity. In which case you might want to use
impersonation to have
> the application use a known account for local
permissions.
>
> Are you sure it is a permissions error? Does another
application, or
> possibly your application have a lock on the file for
some reason?
>
> On 11/30/06, jresperger <josef.respergeriniedv.net
> <mailto:josef.resperger%40iniedv.net> > wrote:
> > HI!
> > I have an ASP.NET application which needs to
access a XML-File in its
> > file system. I always get access violation for
this file.
> > I gave readpermission for ASPNET Account in
Explorer but nothing seems
> > to help.
> > What do I need to write in the impersonate line in
web.config or what
> > else do I need to modify.
> > TIA
> > Josef Resperger
> >
> >
> >
> >
> >
> > Yahoo! Groups Links
> >
> >
> >
> >
>
> --
> Dean Fiala
> Very Practical Software, Inc
> Now with Blogging...
> http://www.vpsw.com/blog
baby
> Microsoft MVP
>
>
>
>
>
> [Non-text portions of this message have been removed]
>
>
>
>
> Yahoo! Groups Links
>
>
>
>


-- 
Dean Fiala
Very Practical Software, Inc
Now with Blogging...
http://www.vpsw.com/blog
baby
Microsoft MVP


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    
http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/join

    (Yahoo! ID required)

<*> To change settings via email:
    mailto:AspNetAnyQuestionIsOk-digest@yahoogroups.com 
   
mailto:AspNetAnyQuestionIsOk-fullfeatured@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
    AspNetAnyQuestionIsOk-unsubscribe@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.c
om/info/terms/
 
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )