Last post Feb 28, 2008 09:40 AM by Cenes
Feb 28, 2008 09:40 AM|Cenes|LINK
First of all I'm sorry if this post is in the wrong place. Please move it if so.
I am developing a C# .net Web Application. I' m using VS 2008, XP pro, IIS 5.1.
I want to call CVS commands (cvsnt) using System.Diagnostic.Process.Start() and get the output so I can parse it to return some information on the webpage. I know there is SharpCVSLib, an API to integrate with CVS but there is few documentation
and support and I could get it to work, so I'm trying to do it manually. The problem is that apparently the command returns nothing.
I've seen here:
that there is a problem with some shell commands when called from IIS, like "net" or "fsutil" and "cvs". Apparently IIS expects a valid http response after executing the request handler and since all those commands that doesn't work start imediatly
with text, not with a \n\r, IIS simplly returns a 502 response. I have success with commands like "ipconfig" or "netstat" because of this.
I'v tried to write a vbscript to call those commands and add a valid header before the output. Does not work either even when runed from a command prompt "cmd".
So my qusetion is how can I solve this issue? In the first link there is a solution but is using IIS 6.0 and Web Services Extender which is not present in IIS 5.1. Also I am not very familiar with CGI so I'm a bit lost here.
Any help appreciated!