classic asp on IIS7 .net

I'm running IIS7(2008 Server) and SQL both 64 bit. There's a simple client
side code...that just doesn't make any sense. Is there something in IIS7
that could possibly have some effect on including the file. The problem is:

<script src="myfiletoinclude.inc"></script>

it works fine on my 2000 and 2003 box....running IE8 emulating IE7. No
problems....but on the 08 box...it won't pull in the page. Is there a
setting or a place I can go to fix this? I'm clueless....

Thanks!
jasonhartsoe [ Fr, 11 April 2008 01:21 ] [ ID #1940435 ]

Re: classic asp on IIS7 .net

Hi,

a) Your code is client side code. So, it has nothing to do with ASP. ASP
only runs on the server

b) Make sure that you have a MIME type defined for .inc files (IIS6/7 does
not serve files that do not have MIME types defined). Check the IIS log
files to make sure that the file is being served

c) Try requesting the file directly in the browser. That may give you some
idea why it's not working.

Cheers
Ken

"Jason Hartsoe" <JasonHartsoe [at] discussions.microsoft.com> wrote in message
news:7DDE1CF3-ADF5-4EF2-973F-814D8731868C [at] microsoft.com...
> I'm running IIS7(2008 Server) and SQL both 64 bit. There's a simple
> client
> side code...that just doesn't make any sense. Is there something in IIS7
> that could possibly have some effect on including the file. The problem
> is:
>
> <script src="myfiletoinclude.inc"></script>
>
> it works fine on my 2000 and 2003 box....running IE8 emulating IE7. No
> problems....but on the 08 box...it won't pull in the page. Is there a
> setting or a place I can go to fix this? I'm clueless....
>
> Thanks!
Ken Schaefer [ Fr, 11 April 2008 03:48 ] [ ID #1940437 ]

Re: classic asp on IIS7 .net

Ken, thanks so much for the reply, you nailed it exactly...It required me
putting a MIME type for that extension. Without it, it serves a 404 response.

Works great now!

Thanks again!

Jason

"Ken Schaefer" wrote:

> Hi,
>
> a) Your code is client side code. So, it has nothing to do with ASP. ASP
> only runs on the server
>
> b) Make sure that you have a MIME type defined for .inc files (IIS6/7 does
> not serve files that do not have MIME types defined). Check the IIS log
> files to make sure that the file is being served
>
> c) Try requesting the file directly in the browser. That may give you some
> idea why it's not working.
>
> Cheers
> Ken
>
> "Jason Hartsoe" <JasonHartsoe [at] discussions.microsoft.com> wrote in message
> news:7DDE1CF3-ADF5-4EF2-973F-814D8731868C [at] microsoft.com...
> > I'm running IIS7(2008 Server) and SQL both 64 bit. There's a simple
> > client
> > side code...that just doesn't make any sense. Is there something in IIS7
> > that could possibly have some effect on including the file. The problem
> > is:
> >
> > <script src="myfiletoinclude.inc"></script>
> >
> > it works fine on my 2000 and 2003 box....running IE8 emulating IE7. No
> > problems....but on the 08 box...it won't pull in the page. Is there a
> > setting or a place I can go to fix this? I'm clueless....
> >
> > Thanks!
>
>
jasonhartsoe [ Fr, 11 April 2008 14:15 ] [ ID #1940446 ]
Webserver » microsoft.public.inetserver.iis » classic asp on IIS7 .net

Vorheriges Thema: Same problem
Nächstes Thema: Displaying error messages in classic asp page