Re: Protect EXE using defaulthttphandler? More options
- From: "Bryan Phillips" <bphillips@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 8 Mar 2007 13:11:53 +0000
I misunderstood your question. I thought you need to download the file. I had to configure IIS because I was using the Updater Application Block. I am not sure how to directly execute the file via a URL. In the past, I wrote aspx pages that would be called from the browser and in turn, the pages used the Process class to pass parameters to and run executables. I hope this helps.
--
Bryan Phillips
MCSD, MCDBA, MCSE
Blog: http://bphillips76.spaces.live.com
"AndyFel" <AndyFel@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:661DB69E-169F-416E-A89A-2F910697D90C@xxxxxxxxxxxxx:
Thanks for the suggestion, perhaps I am missing something completely.... But
why would setting a MIME type make it work? I thought these were just to tell
the browser how it would be downloaded.
Anyway I did check the mime types and .exe is set to application/octet-stream.
I do not want to download the file, which I can do if i set the web.config
line to staticfilehandler, i want to execute the exe on the server and get it
to do its stuff and return its results via IIS. Which it does fine when I am
not trying to secure it.
Any other ideas.....
Thanks
"Bryan Phillips" wrote:
> You don't need the line, but you do need to configure IIS with a MIME
> extension for exe so it knows to server exe files when requested.
>
> --
> Bryan Phillips
> MCSD, MCDBA, MCSE
> Blog: http://bphillips76.spaces.live.com
>
>
>
> "AndyFel" <AndyFel@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
> news:FC5ED17D-3C68-4DBB-BB41-DA2A6C3C4B18@xxxxxxxxxxxxx:
>
> > Hi
> >
> > I have a website which i have secured using forms authentication. I
> > have also secured htm, pdf, doc, xls files using the httphandlers
> > section in the web.config and routing the requests from IIS thru
> > dotnet.
> >
> > Now I need to secure a .exe application in a subdir. I have made it so
> > we have to login, but I cannot get the application to run.... I have
> > tried using the defaulthttphandler in the web.config but the browser
> > just says the page is unreachable.
> >
> > The .exe is a third party product so we cannot change it. Its
> > basically some sort of cgi app which works fine if we just call it via
> > the url http:\fred\gateway.exe?someparams (and remove the mapping in
> > IIS).
> >
> > Do i need to write my own httphandler to execute the exe and return
> > the web page. If so has anyone done this and can give an example?
> >
> > The line in the web.config in the httphandlers section i currently
> > have is
> > <add path="*.exe" verb="*" type="System.Web.DefaultHttpHandler"
> > validate="true" />
> >
> > Please tell me this can be done or the line above is incorrect.......
> >
> > Thanks
>
>
.
- Follow-Ups:
- Re: Protect EXE using defaulthttphandler? More options
- From: AndyFel
- Re: Protect EXE using defaulthttphandler? More options
- References:
- Re: Protect EXE using defaulthttphandler? More options
- From: AndyFel
- Re: Protect EXE using defaulthttphandler? More options
- Prev by Date: Re: Reporting Services Web Service
- Next by Date: Re: how to tell if SP1 is installed?
- Previous by thread: Re: Protect EXE using defaulthttphandler? More options
- Next by thread: Re: Protect EXE using defaulthttphandler? More options
- Index(es):
Relevant Pages
|