Process.Start woes in ASP.Net application

Tech-Archive recommends: Fix windows errors by optimizing your registry



I am at my witless end here, please help!

I have an ASP.Net aspx web page, hosted on Windows Server 2003, that
receives a query string with the path to an autocad drawing file selected
from a web page hosted on a unix driven file server. The user wants to have
this file converted to a pdf.

My page takes the query string and turns it into a windows unc path, then I
copy the file down to the web server and place it into a directory. This all
works fine.

The next step is to call an application that will convert the file into a
pdf, here is where the woes begin...

I have a 3rd party windows command line tool, installed on the same server
that my web app resides on, and it takes two parameters: fileIn and fileOut.

I am using Process.Start and ProcessStartInfo to call the conversion app
but it appears that the arguments are not getting through to it. I can see
the process running in Task Manager, but it hangs.

When I query the process through either Process.GetProcessById or
Process.GetProcessesByName, none of the ProcessStartInfo properties that I
have set have retained their value.

When I attempt to read the StandardOutput, I get an 'invalid character' error.

I have my web config set to <identity impersonate="true"/>, and have set the
IIS Directory Security anonymous user to the computer admin, for testing of
permissions.

Here is the code:

Dim procStringArgs As String = " /InFile " & Path & DrawingIn & " /OutFile "
& PDFOut & " /Hide"
'call conversion application with proc args
Dim proc As New Process
Dim procSI As New ProcessStartInfo
procSI.FileName = CONVERTER_FULLPATH
procSI.Arguments = procStringArgs
procSI.UseShellExecute = False
procSI.RedirectStandardOutput = True
procSI.RedirectStandardError = True
proc.StartInfo = procSI
proc.Start()


When I print out the FileName and Arguments to a log file this is the result:

FileName: C:\Program Files\[app dir]\[app].exe
proc args: /InFile c:\inetpub\wwwroot\[webapp]\InBox\[drawing].DWG /OutFile
c:\inetpub\wwwroot\[webapp]\OutBox\[drawing].pdf /Hide

The process runs under the Network Service username, which I have given full
access to the above directories, thinking it was a permissions issue.

Any suggestions greatly appreciated and eagerly implemented for testing,
thank you.


--
Coding in Sunny Central Florida
.



Relevant Pages

  • Re: [opensuse] best file distribution technology for my case?
    ... I googled a lot and found I am outdated: FTP protocol can do encoding conversion. ... So now if Windows user use standard complaint FTP client, they can get the filenames in correct encoding. ... as long as the server is not compromised, the file integrity is not my concern, because other campus services also have this problem for years and they even offering .exe file for downloading, here I only got audio files, I am sure there will not be so much compliance. ...
    (SuSE)
  • SecurityFocus Microsoft Newsletter #154
    ... MICROSOFT VULNERABILITY SUMMARY ... ISS RealSecure Server Sensor SSL Denial Of Service Vulnerabi... ... Roger Wilco Remote Server Side Buffer Overrun Vulnerability ... available for Microsoft Windows operating systems. ...
    (Focus-Microsoft)
  • SecurityFocus Microsoft Newsletter #49
    ... Subject: SecurityFocus Microsoft Newsletter #49 ... Microsoft Windows NNTP Denial of Service Vulnerability ... Microsoft IIS SSI Buffer Overrun Privelege Elevation Vulnerability ... Microsoft ISA Server H.323 Memory Leak Denial of Service... ...
    (Focus-Microsoft)
  • ~~~~~~~~~~~~~~~ CANNOT FIND ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ... cannot find server or dns error ... windows cannot find null ... windows cannot find the network path ... cannot find internet explorer on computer ...
    (comp.protocols.snmp)
  • Questions Relating to Administering Windows 2000 Server
    ... installed the network client on the target computer. ... Sarah has been attempting to install Windows 2000 ... Server for two days. ... Sarah has checked the cables and hard drives. ...
    (microsoft.public.cert.exam.mcse)