Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Coldfusion 10 IIS (Windows 7) to process .htm

Community Beginner ,
May 18, 2012 May 18, 2012

I Think I have the correct stuff done in the C:\ColdFusion10\cfusion\wwwroot\WEB-INF\web.xml  ..

added the following lines...

<servlet-mapping id="coldfusion_mapping_16">

  <servlet-name>CfmServlet</servlet-name>

  <url-pattern>*.htm</url-pattern>

</servlet-mapping>

<servlet-mapping id="coldfusion_mapping_17">

  <servlet-name>CfmServlet</servlet-name>

  <url-pattern>*.htm/*</url-pattern>

</servlet-mapping>

I went to the IIS Manager and the Handler Mappings screen and added a Script Map for *.htm

executiable C:\ColdFusion10\config\wsconfig\2\isapi_redirect.dll .  At first I was getting a 500 error.

Restarted machine and I just get a blank page with going to a htm page.

Any suggestions?

2.7K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 21, 2012 May 21, 2012

Did you find an answer to this? What web server are you using?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 21, 2012 May 21, 2012

I see the web server WIndows 7. DId you get this working?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
May 24, 2012 May 24, 2012

No I have not.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
May 25, 2012 May 25, 2012

I have this same issue.  If someone finds the solution please post to this thread.  I just get a blank page.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Jun 12, 2012 Jun 12, 2012

Hi,

Remove the "htm" mapping from IIS handler mapping and web.xml.

Save the file

Re-start IIS and CF

Access the test.htm page and it would work for you.

IIS handles html/htm extension files by default. If you go to your IIS handler mappings, we don't see any html mapping, if we keep a test.html page on IIS webroot, still ISS processes it.

HTH.

Rg,

Spsb

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jun 12, 2012 Jun 12, 2012

The solution from spsb84 does not work.  It serves the htm files, but does NOT process the ColdFusion code in the files.  It just serves HTML and ignores the ColdFusion.

This solution works for me... http://www.webtrenches.com/post.cfm/processing-html-htm-or-other-files-in-coldfusion-10

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Jun 12, 2012 Jun 12, 2012
LATEST

Hi tSpark,

The post was updated as per the "execution of htm pages by IIS".

We tested by just creating a test htm page {with dummy data and no CF code}, placing it on IIS and executing it.

But, if it is related to CF code in htm page and the link-->http://www.webtrenches.com/post.cfm/processing-html-htm-or-other-files-in-coldfusion-10 serves good, then, thanks!!!

Rg,

Spsb

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources