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 FileSystemObjec t 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 FileSystemObjec t 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 6 2336
"Thanh-Nhan Le" <tn*******@yaho o.dewrote in message
news:Od******** ******@TK2MSFTN GP04.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_<machinena meuser 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 FileSystemObjec t 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 FileSystemObjec t 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
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*@yadayadaya da.comwrote in message
news:Or******** ******@TK2MSFTN GP04.phx.gbl...
"Thanh-Nhan Le" <tn*******@yaho o.dewrote in message
news:Od******** ******@TK2MSFTN GP04.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_<machinena meuser 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 FileSystemObjec t 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 FileSystemObjec t 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
"Thanh-Nhan Le" <tn*******@yaho o.dewrote in message
news:%2******** **********@TK2M SFTNGP02.phx.gb l...
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_<machinena me>
(replacing <machinenamewit h the name of your machine). Click check names
and then OK. Make sure the IUSR_<machinena meis 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*@yadayadaya da.comwrote in message
news:Or******** ******@TK2MSFTN GP04.phx.gbl...
"Thanh-Nhan Le" <tn*******@yaho o.dewrote in message
news:Od******** ******@TK2MSFTN GP04.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_<machinena meuser 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 FileSystemObjec t 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 FileSystemObjec t 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
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*@yadayadaya da.comwrote in message
news:eM******** ********@TK2MSF TNGP02.phx.gbl. ..
"Thanh-Nhan Le" <tn*******@yaho o.dewrote in message
news:%2******** **********@TK2M SFTNGP02.phx.gb l...
>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_<machinena me>
(replacing <machinenamewit h the name of your machine). Click check
names
and then OK. Make sure the IUSR_<machinena meis 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*@yadayadaya da.comwrote in message news:Or******* *******@TK2MSFT NGP04.phx.gbl.. .
"Thanh-Nhan Le" <tn*******@yaho o.dewrote in message
news:Od******** ******@TK2MSFTN GP04.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_<machinena meuser 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 FileSystemObjec t 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 FileSystemObjec t 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
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*@yadayadaya da.comwrote in message
news:eM******** ********@TK2MSF TNGP02.phx.gbl. ..
>"Thanh-Nhan Le" <tn*******@yaho o.dewrote in message news:%2******* ***********@TK2 MSFTNGP02.phx.g bl...
>>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_<machinen ame(replacing <machinenamewit h the name of your machine). Click check names and then OK. Make sure the IUSR_<machinena meis 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*@yadayadaya da.comwrote in message news:Or****** ********@TK2MSF TNGP04.phx.gbl. .. "Thanh-Nhan Le" <tn*******@yaho o.dewrote in message news:Od***** *********@TK2MS FTNGP04.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_<machinena meuser 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 FileSystemObjec t 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 FileSystemObjec t 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.
Thanks
"Bob Barrows [MVP]" <re******@NOyah oo.SPAMcomwrote in message
news:uA******** ******@TK2MSFTN GP05.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*@yadayadaya da.comwrote in message news:eM******* *********@TK2MS FTNGP02.phx.gbl ...
>>"Thanh-Nhan Le" <tn*******@yaho o.dewrote in message news:%2****** ************@TK 2MSFTNGP02.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_<machine name(replacing <machinenamewit h the name of your machine). Click check names and then OK. Make sure the IUSR_<machinena meis 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*@yadayadaya da.comwrote in message news:Or***** *********@TK2MS FTNGP04.phx.gbl ... "Thanh-Nhan Le" <tn*******@yaho o.dewrote in message news:Od**** **********@TK2M SFTNGP04.phx.gb l... >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_<machinena meuser 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 FileSystemObjec t 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 FileSystemObjec t 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.
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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
|
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 culture, so I m using the location element in the web.config in the
main folder.
I have the folowing in web config file:
<location path="MyWebApp/French/">
<system.web>
<globalization culture="fr-FR" uiCulture="fr-FR" >
|
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 loop?
Basically I want to be able to enter a filename into a text field and click
submit which would then copy the named file (which resides in the root
directory) into every subdirectory under the root (1 level only). Would be
helpful to be able...
|
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 subfolder (a WebService
Folder).
I defined the Module as followed:
<configuration>
....
|
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 the root folder to allow all
read access, and a single subfolder to require authorization.
Thanks for any assistance.
-Johnnie
| |
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 each file from its subfolder and consolidate the files into a single folder.
Everytime a file is downloaded, it is placed into a subfolder with a unique name. Each subfolder starts and ends with the same name but has a different middle section...
|
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
the file.
The text file would be a record of orders placed through a web form. The
text file would merely be a record of the orders but it needs to be in
descending date order - each new record added to the beginning.
|
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 subfolder and write its content..FOR Eg : I have
folder1\text1
folder1\text2
folder1\folder2\text3
I am reading folder1 and it is writing text1,text2 and folder2 in another textfile.I need to print the total structure of the subfolder ..like...
|
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 uniformity.
I'd like to have the capability to find the file based on name, whether it's in a main folder, or one of the subfolders.
I.e. - File named "*Net Rebate*" will be in and of the following folders:
Main Folder
Subfolder 1
...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |