Click here to Skip to main content
15,918,193 members
Home / Discussions / Web Development
   

Web Development

 
Questionimage onclick event is not working Pin
Shoaib Hussain20-Jun-07 23:00
Shoaib Hussain20-Jun-07 23:00 
QuestionReg:Component Pin
princy_cute20-Jun-07 22:49
princy_cute20-Jun-07 22:49 
QuestionDrop Down Codes Pin
UpdateMe20-Jun-07 20:18
UpdateMe20-Jun-07 20:18 
AnswerRe: Drop Down Codes Pin
Johnny ²20-Jun-07 21:27
Johnny ²20-Jun-07 21:27 
QuestionCross domain webservice call from client code Pin
amitar2720-Jun-07 16:07
amitar2720-Jun-07 16:07 
AnswerRe: Cross domain webservice call from client code Pin
JimmyRopes20-Jun-07 17:40
professionalJimmyRopes20-Jun-07 17:40 
AnswerRe: Cross domain webservice call from client code Pin
Justin Williams22-Jun-07 9:14
Justin Williams22-Jun-07 9:14 
QuestionProblem using Wzzip from a .Net web page Pin
mad_cow20-Jun-07 3:27
mad_cow20-Jun-07 3:27 
I have a console application with the following code:

Dim cmdScript As String = "c:\ourdlls\winzip\wzzip c:\temp\a.zip c:\temp\test.txt"  
Shell(cmdScript, AppWinStyle.Hide)


That works fine.

I also have a web application with the same above code. The problem is that although the wzzip command is invoked, it simply does not zip the file. Seems to be some permission problem. Out of desperation, even after giving the winzip and temp folders full control to everyone, it still doesn't work. I then tried by moving the test.txt file to the web application folder, even giving everyone (including the local ASPNET) full control to it as well, but alas, no go.

It appears that wzzip is using some system routine that it doesn't have authority to, but even if I run Filemon, I can't see any authority problems popping up.

I have rewritten the above code so that it uses a separate process and examined the StandardOutput:

Dim ShellProcess As New System.Diagnostics.Process
ShellProcess.StartInfo.FileName = "c:\ourdlls\winzip\WZZIP.EXE" 'test.bat
ShellProcess.StartInfo.Arguments = "c:\temp\a.zip c:\temp\test.txt"
ShellProcess.StartInfo.CreateNoWindow = True
ShellProcess.StartInfo.UseShellExecute = False
ShellProcess.StartInfo.RedirectStandardOutput = True

ShellProcess.Start()
Dim myStreamReader As StreamReader = ShellProcess.StandardOutput

Dim s As String
Do While myStreamReader.Peek <> -1
        s &= myStreamReader.ReadLine
Loop
ShellProcess.Close()


If the above code is run as a console application, wzzip writes a line to standard output indicating that the command was invoked and then another line indicating that it zipped the file. When executed from the web application, the standard output shows that wzzip is being invoked, but it doesn't display the line that it zipped the file, or any error either.

Does anyone know how to get wzzip to work from a web application?
AnswerRe: Problem using Wzzip from a .Net web page Pin
Christian Graus20-Jun-07 12:39
protectorChristian Graus20-Jun-07 12:39 
GeneralRe: Problem using Wzzip from a .Net web page Pin
mad_cow21-Jun-07 6:22
mad_cow21-Jun-07 6:22 
AnswerRe: Problem using Wzzip from a .Net web page Pin
Shog920-Jun-07 18:09
sitebuilderShog920-Jun-07 18:09 
GeneralRe: Problem using Wzzip from a .Net web page Pin
mad_cow22-Jun-07 7:49
mad_cow22-Jun-07 7:49 
Questionhow to write Recoedset in Excel sheet Pin
rajnish_haldiya20-Jun-07 2:59
rajnish_haldiya20-Jun-07 2:59 
AnswerRe: how to write Recoedset in Excel sheet Pin
PrakashBhaskar20-Jun-07 18:11
PrakashBhaskar20-Jun-07 18:11 
GeneralRe: how to write Recoedset in Excel sheet Pin
mad_cow21-Jun-07 7:19
mad_cow21-Jun-07 7:19 
Questionnavigation. Pin
hkchauhan20-Jun-07 2:31
hkchauhan20-Jun-07 2:31 
AnswerRe: navigation. Pin
Vasudevan Deepak Kumar20-Jun-07 2:42
Vasudevan Deepak Kumar20-Jun-07 2:42 
GeneralRe: navigation. Pin
hkchauhan20-Jun-07 2:46
hkchauhan20-Jun-07 2:46 
GeneralRe: navigation. Pin
rajnish_haldiya20-Jun-07 3:04
rajnish_haldiya20-Jun-07 3:04 
GeneralRe: navigation. Pin
hkchauhan20-Jun-07 3:12
hkchauhan20-Jun-07 3:12 
GeneralRe: navigation. Pin
rajnish_haldiya20-Jun-07 3:22
rajnish_haldiya20-Jun-07 3:22 
GeneralRe: navigation. Pin
hkchauhan20-Jun-07 3:25
hkchauhan20-Jun-07 3:25 
GeneralRe: navigation. Pin
hkchauhan20-Jun-07 3:26
hkchauhan20-Jun-07 3:26 
GeneralRe: navigation. Pin
rajnish_haldiya20-Jun-07 3:31
rajnish_haldiya20-Jun-07 3:31 
GeneralRe: navigation. Pin
badgrs20-Jun-07 3:54
badgrs20-Jun-07 3:54 

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.