Home All Groups Group Topic Archive Search About

Writing to a Virtual Directory

Author
21 Jul 2005 5:48 AM
GregP
I have a web app that receives XML, parses it, runs it against a
database, then sends this data back as XML.

When the file is received, a corresponding text file that contains the
data being received is created in a virtual directory.

This configuration runs fine in IIS 5.1 on XP Pro. But in the production
environment (Windows 2003 and IIS 6.0) the text files are not getting
created.

I have gone so far as to grant IUSR_machinename administrative
permissions on this Virtual directory (full control), but still no text
files are being written.

What permissions are needed to allow these text files to be created in
the Virtual directory?

Author
21 Jul 2005 7:23 AM
Bernard Cheah [MVP]
Do you get any error msgs ? do a file auditing and see whether it failed.

Show quoteHide quote
"GregP" <peterso***@mindspring.com> wrote in message
news:ZGGDe.1309$Uk3.1017@newsread1.news.pas.earthlink.net...
>I have a web app that receives XML, parses it, runs it against a database,
>then sends this data back as XML.
>
> When the file is received, a corresponding text file that contains the
> data being received is created in a virtual directory.
>
> This configuration runs fine in IIS 5.1 on XP Pro. But in the production
> environment (Windows 2003 and IIS 6.0) the text files are not getting
> created.
>
> I have gone so far as to grant IUSR_machinename administrative permissions
> on this Virtual directory (full control), but still no text files are
> being written.
>
> What permissions are needed to allow these text files to be created in the
> Virtual directory?
Are all your drivers up to date? click for free checkup

Author
22 Jul 2005 4:51 AM
GregP
Bernard Cheah [MVP] wrote:
> Do you get any error msgs ? do a file auditing and see whether it failed.
>
No error messages. Nothing in the event logs either. I'll audit.
Author
23 Jul 2005 7:35 PM
GregP
Bernard Cheah [MVP] wrote:
> Do you get any error msgs ? do a file auditing and see whether it failed.
>
Set up aduting on this folder. Nothing shows up in the security event
viewer.

Could there be an Active Directory issue preventing this app from even
attempting to write to the folder?
Author
24 Jul 2005 2:49 AM
Bernard Cheah [MVP]
Nope. should be not related to AD. I suspect is permission setting that the
web application user does not has the privileges to do write the file. So,
get filemon (sysinternals.com) and see if you can trace what user is be use
to create the file and whether there's any problem with it.

Run it on the server, then simulate your web request again, then checkout
the filemon log.

Show quoteHide quote
"GregP" <peterso***@mindspring.com> wrote in message
news:u_wEe.2874$Uk3.1791@newsread1.news.pas.earthlink.net...
> Bernard Cheah [MVP] wrote:
>> Do you get any error msgs ? do a file auditing and see whether it failed.
>>
> Set up aduting on this folder. Nothing shows up in the security event
> viewer.
>
> Could there be an Active Directory issue preventing this app from even
> attempting to write to the folder?
Author
26 Jul 2005 4:19 AM
GregP
Bernard Cheah [MVP] wrote:
> Nope. should be not related to AD. I suspect is permission setting that the
> web application user does not has the privileges to do write the file. So,
> get filemon (sysinternals.com) and see if you can trace what user is be use
> to create the file and whether there's any problem with it.
>
> Run it on the server, then simulate your web request again, then checkout
> the filemon log.
>

The FileMon revealed that when the app was installed, it was installed
in a different directory than the directory we have set IIS up to use. I
don't know how it has been able to work at all. FileMon reported that
the app was trying to write the log files to a directory that didn't exist.

Great little tool. Thanks for the help.

Now to figure out why this app is even able to run.
Author
26 Jul 2005 5:47 AM
Bernard Cheah [MVP]
Ok. so did filemon tell you the user that is trying to write the file?

Show quoteHide quote
"GregP" <peterso***@mindspring.com> wrote in message
news:xRiFe.4954$Uk3.556@newsread1.news.pas.earthlink.net...
> Bernard Cheah [MVP] wrote:
>> Nope. should be not related to AD. I suspect is permission setting that
>> the web application user does not has the privileges to do write the
>> file. So, get filemon (sysinternals.com) and see if you can trace what
>> user is be use to create the file and whether there's any problem with
>> it.
>>
>> Run it on the server, then simulate your web request again, then checkout
>> the filemon log.
>>
>
> The FileMon revealed that when the app was installed, it was installed in
> a different directory than the directory we have set IIS up to use. I
> don't know how it has been able to work at all. FileMon reported that the
> app was trying to write the log files to a directory that didn't exist.
>
> Great little tool. Thanks for the help.
>
> Now to figure out why this app is even able to run.
Author
24 Jul 2005 11:14 PM
Leon Mayne [MVP]
GregP wrote:
Show quoteHide quote
> I have a web app that receives XML, parses it, runs it against a
> database, then sends this data back as XML.
>
> When the file is received, a corresponding text file that contains the
> data being received is created in a virtual directory.
>
> This configuration runs fine in IIS 5.1 on XP Pro. But in the
> production environment (Windows 2003 and IIS 6.0) the text files are
> not getting created.
>
> I have gone so far as to grant IUSR_machinename administrative
> permissions on this Virtual directory (full control), but still no
> text files are being written.
>
> What permissions are needed to allow these text files to be created in
> the Virtual directory?

Make sure the ASPNET account has write access to the directory if you're
using ASP.NET.
Author
26 Jul 2005 4:17 AM
GregP
Leon Mayne [MVP] wrote:
Show quoteHide quote
> GregP wrote:
>
>>I have a web app that receives XML, parses it, runs it against a
>>database, then sends this data back as XML.
>>
>>When the file is received, a corresponding text file that contains the
>>data being received is created in a virtual directory.
>>
>>This configuration runs fine in IIS 5.1 on XP Pro. But in the
>>production environment (Windows 2003 and IIS 6.0) the text files are
>>not getting created.
>>
>>I have gone so far as to grant IUSR_machinename administrative
>>permissions on this Virtual directory (full control), but still no
>>text files are being written.
>>
>>What permissions are needed to allow these text files to be created in
>>the Virtual directory?
>
>
> Make sure the ASPNET account has write access to the directory if you're
> using ASP.NET.
>
>

Bookmark and Share