Click here to Skip to main content
15,913,854 members
Home / Discussions / Web Development
   

Web Development

 
Questionhow to saves images Pin
Anonymous30-Sep-04 22:07
Anonymous30-Sep-04 22:07 
AnswerRe: how to saves images Pin
Pradeep Shamarao28-Oct-04 19:22
Pradeep Shamarao28-Oct-04 19:22 
GeneralXHTML 1.1 Pin
Jacob Hammack30-Sep-04 21:26
Jacob Hammack30-Sep-04 21:26 
GeneralRe: XHTML 1.1 Pin
Tomas Petricek7-Oct-04 13:03
Tomas Petricek7-Oct-04 13:03 
GeneralRe: XHTML 1.1 Pin
Jacob Hammack7-Oct-04 16:25
Jacob Hammack7-Oct-04 16:25 
GeneralJavaScript Picture Viewer Pin
sefaen30-Sep-04 16:54
sefaen30-Sep-04 16:54 
GeneralRe: JavaScript Picture Viewer Pin
Tomas Petricek7-Oct-04 13:13
Tomas Petricek7-Oct-04 13:13 
QuestionASPX/Perl stepping on each other? Pin
webjunkie30-Sep-04 16:23
webjunkie30-Sep-04 16:23 
Hi All,

I am running IIS 6.0 on Windows Server 2003, along with ActivePerl
5.8.2.808. I run ASPX pages along with CGI scripts. When exporting a
PDF file from an ASPX page via the Crystal Reports API, our website
has randomly generated an error stating that the exported PDF file
could not be accessed because it is in use by another process. Of
course, this file name is unique (based on the IIS SessionID), and no
other process should be accessing this file. After much digging, I
turned on auditing for the directory where the PDF file is created and
found some interesting things. Here's the security audit entry for
when the PDF file is created:
Object Open:
Object Server: Security
Object Type: File
Object Name: D:\webdir\pdfexport\bsosdefh15nlzu550n4i0q55.pdf
Handle ID: 2984
Operation ID: {0,67487325}
Process ID: 2204
Image File Name: C:\WINDOWS\system32\inetsrv\w3wp.exe
Primary User Name: NETWORK SERVICE
Primary Domain: NT AUTHORITY
Primary Logon ID: (0x0,0x3E4)
Client User Name: -
Client Domain: -
Client Logon ID: -
Accesses: READ_CONTROL
SYNCHRONIZE
ReadData (or ListDirectory)
WriteData (or AddFile)
AppendData (or AddSubdirectory or CreatePipeInstance)
ReadEA
WriteEA
ReadAttributes
WriteAttributes

Privileges: -
Restricted Sid Count: 0
Access Mask: 0x12019F

Now here's the next security audit entry that appears in the Event
Viewer when the random error occurs (the user is IUSR_XYZ, the
anonymous web user):
Handle Closed:
Object Server: Security
Handle ID: 2984
Process ID: 3768
Image File Name: C:\Perl\bin\perl.exe

It looks like perl.exe closes the same file Handle ID (2984) as that
which the PDF export process was using above.

Is the OS somehow assigning the same Handle ID to two different
processes (process #2204 and #3768)?

The next thing that happens is the ASPX page tries to write out to the
PDF file using the file Handle ID that was closed by Perl in the
previous entry. I think this is where the error occurs:
Object Access Attempt:
Object Server: Security
Handle ID: 2984
Object Type: File
Process ID: 2204
Image File Name: C:\WINDOWS\system32\inetsrv\w3wp.exe
Accesses: WriteData (or AddFile)

Access Mask: 0x2

Does anyone have any insight into the cause of this problem?

Thanks, Todd
Generalpadding style problem... Pin
theJazzyBrain30-Sep-04 9:06
theJazzyBrain30-Sep-04 9:06 
GeneralRe: padding style problem... Pin
benjymous1-Oct-04 0:10
benjymous1-Oct-04 0:10 
GeneralRe: padding style problem... Pin
theJazzyBrain1-Oct-04 1:03
theJazzyBrain1-Oct-04 1:03 
GeneralRe: padding style problem... Pin
benjymous1-Oct-04 1:16
benjymous1-Oct-04 1:16 
GeneralRe: padding style problem... Pin
sefaen3-Oct-04 9:58
sefaen3-Oct-04 9:58 
GeneralRe: padding style problem... Pin
benjymous3-Oct-04 21:37
benjymous3-Oct-04 21:37 
GeneralRe: padding style problem... Pin
sefaen5-Oct-04 11:20
sefaen5-Oct-04 11:20 
General!!PERL!! "Can't locate object method 'connect' via package DBI ....(perhaps you forgot to load "DBI" ?)" Pin
bilas30-Sep-04 7:52
bilas30-Sep-04 7:52 
QuestionHow do I create a single or double ALL black splitter??? Pin
alex.barylski29-Sep-04 8:25
alex.barylski29-Sep-04 8:25 
GeneralRun an exe in ASP Pin
Janaka Vithanage29-Sep-04 0:54
Janaka Vithanage29-Sep-04 0:54 
GeneralRe: Run an exe in ASP Pin
Richard Deeming1-Oct-04 3:01
mveRichard Deeming1-Oct-04 3:01 
GeneralgetAdjacentText emulation Pin
alex.barylski28-Sep-04 11:26
alex.barylski28-Sep-04 11:26 
GeneralNew Web Project - Security Questions Pin
Roger Wright27-Sep-04 20:15
professionalRoger Wright27-Sep-04 20:15 
GeneralRe: New Web Project - Security Questions Pin
sreejith ss nair28-Sep-04 2:36
sreejith ss nair28-Sep-04 2:36 
GeneralRe: New Web Project - Security Questions Pin
Colin Angus Mackay28-Sep-04 2:51
Colin Angus Mackay28-Sep-04 2:51 
GeneralRe: New Web Project - Security Questions Pin
Roger Wright28-Sep-04 3:53
professionalRoger Wright28-Sep-04 3:53 
QuestionGmail Notifier? Pin
stephen.vines26-Sep-04 12:51
stephen.vines26-Sep-04 12:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.