Adam
Adam

Reputation: 19

Parse HTML as ASP using Web.config but getting error when JavaScript is in the page

I edited my web.config file to have my .html files parse ASP. Here is the line I added under :

<handlers>            
    <add name="HTML MAPPING" path="*.html" verb="*" modules="IsapiModule" scriptProcessor="C:\Windows\system32\inetsrv\asp.dll" resourceType="Unspecified" />           
</handlers>

It works fine for most of the pages, but some pages that have embedded javascript in them, don't load and produce an ERROR 500 page. I don't know why or what to do! When I remove any references to javascript in the pages, they load fine again.

Can anyone help?

Upvotes: 2

Views: 658

Answers (1)

Brian Beckett
Brian Beckett

Reputation: 4900

It sounds like your Javascript tags are being interpreted as server-side script tags, maybe. Since ASP can't compile them you're getting an internal server error.

Could you show us what they look like? Do they specify type="text/javascript"?

Upvotes: 5

Related Questions