Is it possible to get the IIS server's supported MIME types from ASP
orASP.NET server-side code?

If not, what is a good way to get the MIME types from VB.NET running as
admin locally on the server?

Thank you.

Re: GET IIS MIME Types by Chris

Chris
Wed May 31 22:48:34 CDT 2006

See this Blog Post for getting the properties using c# - pretty simple code
so you can translate to VB.Net

http://blog.crowe.co.nz/archive/2006/06/02/647.aspx

--


Cheers

Chris Crowe [IIS MVP 1997 -> 2006]
http://blog.crowe.co.nz
------------------------------------------------

"Mark Peacock" <MarkPeacock@discussions.microsoft.com> wrote in message
news:64248DB9-6C36-46F7-8FE8-A8FFFEBEB714@microsoft.com...
> Is it possible to get the IIS server's supported MIME types from ASP
> orASP.NET server-side code?
>
> If not, what is a good way to get the MIME types from VB.NET running as
> admin locally on the server?
>
> Thank you.



Re: GET IIS MIME Types by Anthony

Anthony
Thu Jun 01 04:47:25 CDT 2006


"Chris Crowe [ IIS MVP 1997 -> 2006 ]" <iismvp2005@iisfaq.homeip.net> wrote
in message news:%23TjYD5ShGHA.3756@TK2MSFTNGP02.phx.gbl...
> See this Blog Post for getting the properties using c# - pretty simple
code
> so you can translate to VB.Net
>
> http://blog.crowe.co.nz/archive/2006/06/02/647.aspx
>
> --

Under what account does this code run? When I do a similar thing in Classic
ASP it turns out that IUSR_ doesn't have the access needed to read the
mimemap.

>
>
> Cheers
>
> Chris Crowe [IIS MVP 1997 -> 2006]
> http://blog.crowe.co.nz
> ------------------------------------------------
>
> "Mark Peacock" <MarkPeacock@discussions.microsoft.com> wrote in message
> news:64248DB9-6C36-46F7-8FE8-A8FFFEBEB714@microsoft.com...
> > Is it possible to get the IIS server's supported MIME types from ASP
> > orASP.NET server-side code?
> >
> > If not, what is a good way to get the MIME types from VB.NET running as
> > admin locally on the server?
> >
> > Thank you.
>
>



Re: GET IIS MIME Types by Chris

Chris
Thu Jun 01 05:50:43 CDT 2006

Hi

The code I wrote was for a user running it outside of the ASP.NET
environment.

Basically you need to be a Local Administrator on the box for the code to
run with the current version's of IIS.

So you will not be able to run this sample using VB.NET from an ASP.NET
application.

--

Cheers

Chris Crowe [IIS MVP 1997 -> 2006]
http://blog.crowe.co.nz
------------------------------------------------


"Anthony Jones" <Ant@yadayadayada.com> wrote in message
news:eRbYkBWhGHA.3496@TK2MSFTNGP04.phx.gbl...
>
> "Chris Crowe [ IIS MVP 1997 -> 2006 ]" <iismvp2005@iisfaq.homeip.net>
> wrote
> in message news:%23TjYD5ShGHA.3756@TK2MSFTNGP02.phx.gbl...
>> See this Blog Post for getting the properties using c# - pretty simple
> code
>> so you can translate to VB.Net
>>
>> http://blog.crowe.co.nz/archive/2006/06/02/647.aspx
>>
>> --
>
> Under what account does this code run? When I do a similar thing in
> Classic
> ASP it turns out that IUSR_ doesn't have the access needed to read the
> mimemap.
>
>>
>>
>> Cheers
>>
>> Chris Crowe [IIS MVP 1997 -> 2006]
>> http://blog.crowe.co.nz
>> ------------------------------------------------
>>
>> "Mark Peacock" <MarkPeacock@discussions.microsoft.com> wrote in message
>> news:64248DB9-6C36-46F7-8FE8-A8FFFEBEB714@microsoft.com...
>> > Is it possible to get the IIS server's supported MIME types from ASP
>> > orASP.NET server-side code?
>> >
>> > If not, what is a good way to get the MIME types from VB.NET running as
>> > admin locally on the server?
>> >
>> > Thank you.
>>
>>
>
>



Re: GET IIS MIME Types by MarkPeacock

MarkPeacock
Thu Jun 01 08:11:01 CDT 2006

Thanks very much. The code will have admin rights, so it will likely be fine.
I'm looking forward to trying it out (after the emergency of the hour is
done).

"Chris Crowe [MVP 1997 -> 2006]" wrote:

> Hi
>
> The code I wrote was for a user running it outside of the ASP.NET
> environment.
>
> Basically you need to be a Local Administrator on the box for the code to
> run with the current version's of IIS.
>
> So you will not be able to run this sample using VB.NET from an ASP.NET
> application.
>
> --
>
> Cheers
>
> Chris Crowe [IIS MVP 1997 -> 2006]
> http://blog.crowe.co.nz
> ------------------------------------------------
>
>
> "Anthony Jones" <Ant@yadayadayada.com> wrote in message
> news:eRbYkBWhGHA.3496@TK2MSFTNGP04.phx.gbl...
> >
> > "Chris Crowe [ IIS MVP 1997 -> 2006 ]" <iismvp2005@iisfaq.homeip.net>
> > wrote
> > in message news:%23TjYD5ShGHA.3756@TK2MSFTNGP02.phx.gbl...
> >> See this Blog Post for getting the properties using c# - pretty simple
> > code
> >> so you can translate to VB.Net
> >>
> >> http://blog.crowe.co.nz/archive/2006/06/02/647.aspx
> >>
> >> --
> >
> > Under what account does this code run? When I do a similar thing in
> > Classic
> > ASP it turns out that IUSR_ doesn't have the access needed to read the
> > mimemap.
> >
> >>
> >>
> >> Cheers
> >>
> >> Chris Crowe [IIS MVP 1997 -> 2006]
> >> http://blog.crowe.co.nz
> >> ------------------------------------------------
> >>
> >> "Mark Peacock" <MarkPeacock@discussions.microsoft.com> wrote in message
> >> news:64248DB9-6C36-46F7-8FE8-A8FFFEBEB714@microsoft.com...
> >> > Is it possible to get the IIS server's supported MIME types from ASP
> >> > orASP.NET server-side code?
> >> >
> >> > If not, what is a good way to get the MIME types from VB.NET running as
> >> > admin locally on the server?
> >> >
> >> > Thank you.
> >>
> >>
> >
> >
>
>
>