By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,385 Members | 847 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,385 IT Pros & Developers. It's quick & easy.

write a file to as subfolder of a InetServer location

P: n/a
Hello,

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

Oct 15 '07 #1
Share this Question
Share on Google+
6 Replies


P: n/a
"Thanh-Nhan Le" <tn*******@yahoo.dewrote in message
news:Od**************@TK2MSFTNGP04.phx.gbl...
Hello,

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

The above step affects http access rights and is irrelevant to what you are
doing. The dll is accessing the folder via the windows file system.

You need to grant the IUSR_<machinenameuser account Read Write access to
folder you've created using windows explorer.
>
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?
--
Anthony Jones - MVP ASP/ASP.NET
Oct 15 '07 #2

P: n/a
yes, thanks,
can you tell me, how can I do it? I have tried it.
My system is window XP professional SP2

Tnanks

"Anthony Jones" <An*@yadayadayada.comwrote in message
news:Or**************@TK2MSFTNGP04.phx.gbl...
"Thanh-Nhan Le" <tn*******@yahoo.dewrote in message
news:Od**************@TK2MSFTNGP04.phx.gbl...
>Hello,

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


The above step affects http access rights and is irrelevant to what you
are
doing. The dll is accessing the folder via the windows file system.

You need to grant the IUSR_<machinenameuser account Read Write access to
folder you've created using windows explorer.
>>
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?

--
Anthony Jones - MVP ASP/ASP.NET


Oct 16 '07 #3

P: n/a
"Thanh-Nhan Le" <tn*******@yahoo.dewrote in message
news:%2******************@TK2MSFTNGP02.phx.gbl...
yes, thanks,
can you tell me, how can I do it? I have tried it.
My system is window XP professional SP2

In windows explorer navigate to the folder and right mouse click it. Select
properties from the menu. Click on the security tag. Click Add... If From
this location is not show the name of the machine click locations... click
on your machine name and click OK. Enter in box IUSR_<machinename>
(replacing <machinenamewith the name of your machine). Click check names
and then OK. Make sure the IUSR_<machinenameis selected in the upper list
and make sure Modify and Read & Execute are checked in the lower list.
Click OK.
--
Anthony Jones - MVP ASP/ASP.NET
"Anthony Jones" <An*@yadayadayada.comwrote in message
news:Or**************@TK2MSFTNGP04.phx.gbl...
"Thanh-Nhan Le" <tn*******@yahoo.dewrote in message
news:Od**************@TK2MSFTNGP04.phx.gbl...
Hello,

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

The above step affects http access rights and is irrelevant to what you
are
doing. The dll is accessing the folder via the windows file system.

You need to grant the IUSR_<machinenameuser account Read Write access
to
folder you've created using windows explorer.
>
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?
--
Anthony Jones - MVP ASP/ASP.NET


Oct 16 '07 #4

P: n/a
I knew this on windows NT 4. But on my machine I can see only 3 tabs:
General, Sharing und Customize
Somewhere,. something must be activated?
Please help

Thanks

"Anthony Jones" <An*@yadayadayada.comwrote in message
news:eM****************@TK2MSFTNGP02.phx.gbl...
"Thanh-Nhan Le" <tn*******@yahoo.dewrote in message
news:%2******************@TK2MSFTNGP02.phx.gbl...
>yes, thanks,
can you tell me, how can I do it? I have tried it.
My system is window XP professional SP2


In windows explorer navigate to the folder and right mouse click it.
Select
properties from the menu. Click on the security tag. Click Add... If
From
this location is not show the name of the machine click locations... click
on your machine name and click OK. Enter in box IUSR_<machinename>
(replacing <machinenamewith the name of your machine). Click check
names
and then OK. Make sure the IUSR_<machinenameis selected in the upper
list
and make sure Modify and Read & Execute are checked in the lower list.
Click OK.
--
Anthony Jones - MVP ASP/ASP.NET
>"Anthony Jones" <An*@yadayadayada.comwrote in message
news:Or**************@TK2MSFTNGP04.phx.gbl...
"Thanh-Nhan Le" <tn*******@yahoo.dewrote in message
news:Od**************@TK2MSFTNGP04.phx.gbl...
Hello,

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
The above step affects http access rights and is irrelevant to what you
are
doing. The dll is accessing the folder via the windows file system.

You need to grant the IUSR_<machinenameuser account Read Write access
to
folder you've created using windows explorer.
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?

--
Anthony Jones - MVP ASP/ASP.NET




Oct 16 '07 #5

P: n/a
You need to turn off "Simple File Sharing":
http://support.microsoft.com/kb/304040

Thanh-Nhan Le wrote:
I knew this on windows NT 4. But on my machine I can see only 3 tabs:
General, Sharing und Customize
Somewhere,. something must be activated?
Please help

Thanks

"Anthony Jones" <An*@yadayadayada.comwrote in message
news:eM****************@TK2MSFTNGP02.phx.gbl...
>"Thanh-Nhan Le" <tn*******@yahoo.dewrote in message
news:%2******************@TK2MSFTNGP02.phx.gbl. ..
>>yes, thanks,
can you tell me, how can I do it? I have tried it.
My system is window XP professional SP2


In windows explorer navigate to the folder and right mouse click it.
Select
properties from the menu. Click on the security tag. Click Add...
If From
this location is not show the name of the machine click locations...
click on your machine name and click OK. Enter in box
IUSR_<machinename(replacing <machinenamewith the name of your
machine). Click check names
and then OK. Make sure the IUSR_<machinenameis selected in the
upper list
and make sure Modify and Read & Execute are checked in the lower
list. Click OK.
--
Anthony Jones - MVP ASP/ASP.NET
>>"Anthony Jones" <An*@yadayadayada.comwrote in message
news:Or**************@TK2MSFTNGP04.phx.gbl...
"Thanh-Nhan Le" <tn*******@yahoo.dewrote in message
news:Od**************@TK2MSFTNGP04.phx.gbl...
Hello,
>
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
The above step affects http access rights and is irrelevant to
what you are
doing. The dll is accessing the folder via the windows file
system.

You need to grant the IUSR_<machinenameuser account Read Write
access to folder you've created using windows explorer.

>
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?

--
Anthony Jones - MVP ASP/ASP.NET
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.
Oct 16 '07 #6

P: n/a
Thanks

"Bob Barrows [MVP]" <re******@NOyahoo.SPAMcomwrote in message
news:uA**************@TK2MSFTNGP05.phx.gbl...
You need to turn off "Simple File Sharing":
http://support.microsoft.com/kb/304040

Thanh-Nhan Le wrote:
>I knew this on windows NT 4. But on my machine I can see only 3 tabs:
General, Sharing und Customize
Somewhere,. something must be activated?
Please help

Thanks

"Anthony Jones" <An*@yadayadayada.comwrote in message
news:eM****************@TK2MSFTNGP02.phx.gbl...
>>"Thanh-Nhan Le" <tn*******@yahoo.dewrote in message
news:%2******************@TK2MSFTNGP02.phx.gbl.. .
yes, thanks,
can you tell me, how can I do it? I have tried it.
My system is window XP professional SP2

In windows explorer navigate to the folder and right mouse click it.
Select
properties from the menu. Click on the security tag. Click Add...
If From
this location is not show the name of the machine click locations...
click on your machine name and click OK. Enter in box
IUSR_<machinename(replacing <machinenamewith the name of your
machine). Click check names
and then OK. Make sure the IUSR_<machinenameis selected in the
upper list
and make sure Modify and Read & Execute are checked in the lower
list. Click OK.
--
Anthony Jones - MVP ASP/ASP.NET

"Anthony Jones" <An*@yadayadayada.comwrote in message
news:Or**************@TK2MSFTNGP04.phx.gbl...
"Thanh-Nhan Le" <tn*******@yahoo.dewrote in message
news:Od**************@TK2MSFTNGP04.phx.gbl.. .
>Hello,
>>
>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
>
>
The above step affects http access rights and is irrelevant to
what you are
doing. The dll is accessing the folder via the windows file
system.
>
You need to grant the IUSR_<machinenameuser account Read Write
access to folder you've created using windows explorer.
>
>>
>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?
>
--
Anthony Jones - MVP ASP/ASP.NET

--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.


Oct 16 '07 #7

This discussion thread is closed

Replies have been disabled for this discussion.