problem with codehighlighter

CodeHighlighter for ASP.NET Forum

Posted 19 years ago by jetroy
Avatar
I can't seem to get the code highlighter to work. The error message is:

Server Error in '/' Application.
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.

Parser Error Message: File or assembly name 'ActiproSoftware.CodeHighlighter', or one of its dependencies, was not found.

Source Error:

Line 1: <%@ Page %>
Line 2: <%@ Register TagPrefix="CH" Namespace="ActiproSoftware.CodeHighlighter" Assembly="ActiproSoftware.CodeHighlighter" %>
Line 3: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
Line 4:


Source File: /CodeHighlighterTest/InlineCode.aspx Line: 2

Version Information: Microsoft .NET Framework Version:2.0.40607.42; ASP.NET Version:2.0.40607.42

Comments (3)

Posted 19 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
My apologies for not replying sooner. We set up our forums to e-mail us when posts are made however the e-mails for this forum were never wired up so we never noticed new posts. <IMG SRC="smile.gif" border="0"> This is fixed now.

Did you follow the instructions for installing the control properly? You need to have the CodeHighlighter assembly located in the bin folder of your web site. Also, I noticed you are using ASP.NET 2.0. I'm not sure if things have changed in regards to setup for .NET 2.0 but I would think it would be the same.


Actipro Software Support

Posted 18 years ago by Adam Hamilton
Avatar
For .NET 2.0 configurations, you need this:

Assembly="ActiproSoftware.CodeHighlighter.Net20"

in the register directive. Adding the .NET20 should make it work for you. Spent like a half hour working that out myself, so hopefully this will save everyone else the time.
Posted 18 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
We'll add .Net20 to the Using the Control topic in the docs for the next maintenance release. Sorry for the oversight.


Actipro Software Support

The latest build of this product (v4.0.59) was released 13 years ago, which was after the last post in this thread.