Re: write a file to as subfolder of a InetServer location



You should read these blog entries:

http://blogs.msdn.com/david.wang/archive/2005/08/20/Why-can-I-upload-a-file-without-IIS-Write-Permission.aspx

http://blogs.msdn.com/david.wang/archive/2005/06/29/IIS_User_Identity_to_Run_Code_Part_2.aspx


1. IIS "write permission" does not do what you think. It allows PUT,
not ability to write PDF to a subfolder.
2. visual basic test program does not run with same user identity as
IIS (this is how client-server[IIS] computing differents from client-
side[Visual Basic] computing), so it only shows that the code works
assuming access is allowed. You have shown that your user identity,
likely with Administrator privileges, has access to write to that
folder. However, what is the configured user identity of IIS and does
it have permissions? Do you know what is the user identity of IIS? I
don't think you know the answer to either of those questions, and you
must understand it if you are to successfully write this web
application.
3. normally, this failure will cause an error response to be generated
in ASP. You probably have ASP code which does ON ERROR RESUME NEXT,
which will skip over the error and show no error response because
that's what ON ERROR RESUME NEXT does.

I think you have a simple ACL problem that needs to be resolved. You
can check my blog for more assistance.


//David
http://w3-4u.blogspot.com
http://blogs.msdn.com/David.Wang
//





On Oct 14, 5:43 am, "Thanh-Nhan Le" <tnle_2...@xxxxxxxx> wrote:
Hi,
I have an ASP application on IIS server:http://localhost/myApp
I use ASP and a my own VB activex DLL to create a pdf file and write this
file to a subfolder of the Application folder:http://localhost/myApp/pdfs

1-
Over IIS I have set the "write permission" for this subfolder.
But each time I receive the message: "Can't open output file (bad filename,
in use by other application)", error 0x80040202

2- a visual basic test application can call this DLL, generate and write the
file without problem to the folder

3- with ASP I generate the file in a normal folder (ie c:\temp), it works
Then my ASP page use FileSystemObject to copy this file to the folder
..MyApp/pdfs
When I call this page there is no error message, but the programm runs utils
the line, where FileSystemObject to copy the file to the folder, then it
stops there. The process is hung (dead). The file is not copied...

How can I do?

Thanks
Nhan


.



Relevant Pages

  • Re: Intranet Security
    ... Can you post every object that is assigned any permission on ... Microsoft MVP - Windows Security ... I have also tried moving the files to a folder on the IIS server. ...
    (microsoft.public.inetserver.iis.security)
  • RE: "DATA" Directory
    ... I created this new Virtual Site in IIS AFTER I upgraded to BETA 2. ... > certain IIS's virtual folder or the page in it dosn't grant "Read" ... > permission to the client visitors. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Directing Domains
    ... it's not ASP at all. ... You'll want to set up a multihomed IIS server. ... "Andrew Bonney (abweb)" wrote in message ... > correct folder for that domain name (e.g. the folder may be ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Webserver - multiple domains using same IP address?
    ... must set the permission to the folder on IIS and not using Windows Explorer? ... >> But can I setup a second internet web site or only an intranet web site? ...
    (microsoft.public.inetserver.iis)
  • Re: Which account on SQL 2005 web sync via https
    ... the System Name of the system you are running IIS on. ... Web Service Extension 'SQL Server' will be enabled with the following options: ... Kyle' will get the following NTFS permission: ... account to the snapshot folder. ...
    (microsoft.public.sqlserver.replication)