ISS6 allow executables to be runned
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > IIS server support > IIS Server Security > ISS6 allow executables to be runned




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    ISS6 allow executables to be runned  
Tjeerd van Beek


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
04-28-04 12:34 PM

I have made an simple test application in VB.NET which I can't run under IIS
6 but under IIS5.1 it doesn't have any problems

I think that the problem is something with security in IIS6 and/or Win2003 S
erver.
I tried to let IIS run under the administrator account, this gave the same e
rror as the normal IUser.
I have set ofcourse the executable as allowed in the IIS application list.

Does any body know what I am missing or is it not allowed to execute code li
ke this since IIS6

The code:

Imports System.IO

Module TestWin2003IIS6
Sub Main()
Dim returnvalue() As String = Environment.GetCommandLineArgs()
Dim returnvalue2 As String
Try
For i As Integer = 1 To returnvalue.Length - 1
returnvalue2 += returnvalue(i) & vbNewLine
Next
Catch ex As Exception
returnvalue2 = "Error that occured: " & ex.Message & vbNewLine & vbNewLine &
 ex.StackTrace
End Try

Console.WriteLine("Cache-Control: no-cache")
Console.WriteLine("Content-Type: text/plain; charset=ISO-8859-1")
Console.WriteLine("Accept-Ranges: bytes")
Console.WriteLine("Content-Length: " & returnvalue2.Length)
Console.WriteLine("")
Console.WriteLine(returnvalue2)
End Sub
End Module





[ Post a follow-up to this message ]



    Re: ISS6 allow executables to be runned  
Ken Schaefer


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
04-28-04 12:34 PM

...and what is the error?!?

Cheers
Ken


"Tjeerd van Beek" <anonymous@discussions.microsoft.com> wrote in message
news:DBE3DD98-08E7-4390-85D1-7EF4CB9A1EEF@microsoft.com...
: I have made an simple test application in VB.NET which I can't run under
IIS6 but under IIS5.1 it doesn't have any problems
:
: I think that the problem is something with security in IIS6 and/or Win2003
Server.
: I tried to let IIS run under the administrator account, this gave the same
error as the normal IUser.
: I have set ofcourse the executable as allowed in the IIS application list.
:
: Does any body know what I am missing or is it not allowed to execute code
like this since IIS6
:
: The code:
:
: Imports System.IO
:
: Module TestWin2003IIS6
: Sub Main()
: Dim returnvalue() As String = Environment.GetCommandLineArgs()
: Dim returnvalue2 As String
: Try
: For i As Integer = 1 To returnvalue.Length - 1
: returnvalue2 += returnvalue(i) & vbNewLine
: Next
: Catch ex As Exception
: returnvalue2 = "Error that occured: " & ex.Message & vbNewLine & vbNewLine
& ex.StackTrace
: End Try
:
: Console.WriteLine("Cache-Control: no-cache")
: Console.WriteLine("Content-Type: text/plain; charset=ISO-8859-1")
: Console.WriteLine("Accept-Ranges: bytes")
: Console.WriteLine("Content-Length: " & returnvalue2.Length)
: Console.WriteLine("")
: Console.WriteLine(returnvalue2)
: End Sub
: End Module







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 02:23 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register