Render ASP on .html pages on Windows CE

I want 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 enabled.

My registry key looks like HKEY_LOCAL_MACHINE\COMM\HTTPD\ScriptMap with the following added pair of keyword values .html = \\Windows\\asp.dll . After that, all my .html files gave a 403 error.

Update:

To do this, follow these steps: Add .html = \Windows\asp.dll (tick one slash) to HKEY_LOCAL_MACHINE\COMM\HTTPD\ScriptMap → Double slashes are only needed if you add code.

If you get a 403 error, then check your permissions to ensure that scripts can be run.

+4
source share
2 answers

You need to avoid gaps. Use "\\Windows\\asp.dll" .

+1
source

I do not want to do this through comments, so here are my thoughts:

  • Can you have a debug build that can print some additional file association information?
  • How do you change the registry? Do you have a permanent registry? Are you creating an image with the specified registry key?
  • After changing the registry key (in case you do not create an image with it, and if you do not have a permanent registry) - did you restart the server so that it reads the registry settings again?
+1
source

Source: https://habr.com/ru/post/1305555/


All Articles