Grounding.co.za

Technology information for IT specialists
Welcome to Grounding.co.za Sign in | Join | Help
in Search

Tech Talk with Brett Maytom

Fixing "This program cannot display the webpage" error for CHM Files

I was busy demonstrating how to create a .CHM help file from XML documentation in some C# code using Sandcastle.  Is saved the file into a directory C:\Demos\C#\XMLDoc.  When I opened up the .chm help file, the error below was shown:

image

With a bit of searching, I found the answer:

.chm Files do not like the # ? & and + characters in the pathname.

I renamed the C# folder to CSharp, i.e. C:\Demos\CSharp\XMLDoc and it worked.

Comments

 

Owen said:

You rock!  The # in the pathname was exactly the problem.

May 20, 2008 8:25 AM
 

Nepali said:

Its great. It was a simple problem and I was wondering and searching for big solutions. Many thanks bro.

May 21, 2008 7:31 PM
 

Frank said:

I'm quite happy to find the solution for my problem here! It was a C# directory once again. From a different directory it works quite fine!

Thank you!

June 11, 2008 5:27 AM
 

IchBin said:

Thanks.. I've been pulling my hair out over this one. Reminds me $MS$ has never really fix the 8 char dir file names yet... just work around's

Thanks for your discovery

July 5, 2008 11:10 AM
 

Richard Leeman said:

Thank you very much - solved my problem.

July 7, 2008 3:30 AM
 

Justin C said:

Spot on :)

July 16, 2008 6:18 AM
 

Carric said:

Yep, that was it!  I had put my chm in a directory with a "#" in the name ("C# Docs").   I renamed it "C Sharp Docs", and BAM!  Worked like a champ!  Thanks!

July 16, 2008 6:59 PM
 

jezbo said:

All these threads on 'unblocking' and fiddling the registry.... (i weep with joy and frustration)... IT WAS THE '#' IN THE FILE NAME ALL ALONG.... AAARRRRGGHH

Many thanks - You d'Man!!!

August 5, 2008 11:19 AM
 

Vanessa said:

Thanks for the help. Had "#" in pathname.

August 7, 2008 6:15 AM

About Brett

Brett Maytom is a MCSE+I, MCSD, MCDBA, CCNA, CNE and MCT. Brett’s core industry focus is enterprise architecture. The technologies Brett focuses on is Microsoft .NET, C#, SQL Server, BizTalk and SharePoint development.
Add to Technorati Favorites
Powered by Community Server (Commercial Edition), by Telligent Systems
Afrigator