473,396 Members | 1,693 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

write a file to as subfolder of a InetServer location

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
6 2307
"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
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
"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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Joe | last post by:
Hello, I have IIS 6.0 running on w2k3 Enterprise. I have three upload forms 1 to have restricted uploads .asp 2 to upload plain .asp any extension 3 a FP form upload non .asp
0
by: Joe Abou Jaoude | last post by:
I have an application that support multiple cultures. the main folder is english, and the subfolder "French" is french. I don't want to create a web config in the subfolder french to specify the...
3
by: Jake | last post by:
I know how to copy files from one location to another but how would I go about copying a file from one directory into serveral - or actually all subdirectories in a single action? Some kind of...
2
by: Dominik Amon | last post by:
Hi, I'm using HttpModules in my ASP.NET Application (Note, i'm not using HttpHandlers!). Well, it works correctly for the hole application, but i wan't to remove the httpModule for a special...
4
by: Johnnie Norsworthy | last post by:
ASP.NET 2.0 How do I configure my web site to require forms authorization only for a subfolder off the root? I know how to set Web.config for forms authentication for the whole site, but I need...
2
by: hkhella | last post by:
I am a novice and need lots of help - using VB 2005. I receive many files daily from an automated center. These files are autmatically downloaded into a subfolder on my computer. I need to move...
16
by: btopenworld | last post by:
Hi - question from a relative asp novice I have written to text files in the past, but always appending new data to the end of the text file. I now want to add the new data to the beginning of...
2
by: RaviRajhulk | last post by:
I am trying to read folder and subfolder and print their name into a text file.I am able to read the folder and its content and write it to the textfile but I am not able to read the content of the...
0
by: deve8ore | last post by:
Hi.... I'm getting closer to understanding the wildcard function in VBA, however we have a vendor that will supply us many files, and unfortunately will place them in different folders with no...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.