Render ASP in pages with .html extension in Windows CE
I want to be able to use the .html extension to render ASP pages.
I am using Windows CE 6 at the moment with the default web server, ASP is turned on.
My registry key looks like HKEY_LOCAL_MACHINE\COMM\HTTPD\ScriptMap with the following string key value pair added .html = \\Windows\\asp.dll. After doing this all my .html files gave a 403 error.
To get this working do the following: Add .html = \Windows\asp.dll (note single slashes) into HKEY_LOCAL_MACHINE\COMM\HTTPD\ScriptMap -> Double slashes are only required if you are adding via code.
If you get a 403 error then check your permissions to ensure scripts can be ran.
You need to escape the backlashes. Use "\\Windows\\asp.dll" instead.
I don't want to be doing this through the comments so here are my thoughts:
- Are you able to have a debug build that might print some additional information about the file association?
- How are you changing the registry? Do you have a persistent registry? Are you building the image with the specified registry key?
- After changing the registry key (in case you are not building the image with it and in case you do not have a persistent registry) - did you restart the server so it will read the registry settings again?