Posted 19 years ago
by Tom Ottman

I am getting an error (enclosed below) in ASP.Net 2.0 when I enter this into the web.config:
<language key="VB.NET" definitionPath="~/Languages/ActiproSoftware.VBDotNet.xml" semanticParserType="VBSamples2.SemanticVBDotNetParser, VBSamples2"/>
Now if I set it to this:
<language key="VB.NET" definitionPath="~/Languages/ActiproSoftware.VBDotNet.xml"/>
Is works, but I do not get any of the +/- tree collapsing that I would like.
Any ideas?
Thanks,
Tom
Server Error in '/ITSamples/VBSamples2' Application.
--------------------------------------------------------------------------------
Could not load file or assembly 'VBSamples2' or one of its dependencies. The system cannot find the file specified.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.IO.FileNotFoundException: Could not load file or assembly 'VBSamples2' or one of its dependencies. The system cannot find the file specified.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Assembly Load Trace: The following information can be helpful to determine why the assembly 'VBSamples2' could not be loaded.
=== Pre-bind state information ===
LOG: User = INTEGRA\tottman
LOG: DisplayName = VBSamples2
(Partial)
LOG: Appbase = file:///c:/inetpub/wwwroot/ITSamples/VBSamples2/
LOG: Initial PrivatePath = c:\inetpub\wwwroot\ITSamples\VBSamples2\bin
Calling assembly : ActiproSoftware.CodeHighlighter, Version=3.1.17.0, Culture=neutral, PublicKeyToken=247639e84cc1f4e4.
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: c:\inetpub\wwwroot\ITSamples\VBSamples2\web.config
LOG: Using host configuration file: c:\windows\microsoft.net\framework\v2.0.50727\aspnet.config
LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config.
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/itsamples_vbsamples2/4edfdddb/c4bad6bf/VBSamples2.DLL.
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/itsamples_vbsamples2/4edfdddb/c4bad6bf/VBSamples2/VBSamples2.DLL.
LOG: Attempting download of new URL file:///c:/inetpub/wwwroot/ITSamples/VBSamples2/bin/VBSamples2.DLL.
LOG: Attempting download of new URL file:///c:/inetpub/wwwroot/ITSamples/VBSamples2/bin/VBSamples2/VBSamples2.DLL.
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/itsamples_vbsamples2/4edfdddb/c4bad6bf/VBSamples2.EXE.
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/itsamples_vbsamples2/4edfdddb/c4bad6bf/VBSamples2/VBSamples2.EXE.
LOG: Attempting download of new URL file:///c:/inetpub/wwwroot/ITSamples/VBSamples2/bin/VBSamples2.EXE.
LOG: Attempting download of new URL file:///c:/inetpub/wwwroot/ITSamples/VBSamples2/bin/VBSamples2/VBSamples2.EXE.
Stack Trace:
[FileNotFoundException: Could not load file or assembly 'VBSamples2' or one of its dependencies. The system cannot find the file specified.]
System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +0
System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +211
System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +141
System.Activator.CreateInstance(String assemblyName, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityInfo, StackCrawlMark& stackMark) +41
System.Activator.CreateInstance(String assemblyName, String typeName) +39
ActiproSoftware.CodeHighlighter.CodeHighlighter.GetLanguage(CodeHighlighterConfiguration config, String languageKey) +492
ActiproSoftware.CodeHighlighter.CodeHighlighter.ᐁ() +376
ActiproSoftware.CodeHighlighter.CodeHighlighter.Render(HtmlTextWriter writer) +27
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +25
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +121
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +22
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +130
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +24
System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +59
System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output) +68
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +25
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +121
System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer) +37
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +130
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +24
System.Web.UI.Page.Render(HtmlTextWriter writer) +26
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +25
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +121
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +22
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1896
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42
<language key="VB.NET" definitionPath="~/Languages/ActiproSoftware.VBDotNet.xml" semanticParserType="VBSamples2.SemanticVBDotNetParser, VBSamples2"/>
Now if I set it to this:
<language key="VB.NET" definitionPath="~/Languages/ActiproSoftware.VBDotNet.xml"/>
Is works, but I do not get any of the +/- tree collapsing that I would like.
Any ideas?
Thanks,
Tom
Server Error in '/ITSamples/VBSamples2' Application.
--------------------------------------------------------------------------------
Could not load file or assembly 'VBSamples2' or one of its dependencies. The system cannot find the file specified.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.IO.FileNotFoundException: Could not load file or assembly 'VBSamples2' or one of its dependencies. The system cannot find the file specified.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Assembly Load Trace: The following information can be helpful to determine why the assembly 'VBSamples2' could not be loaded.
=== Pre-bind state information ===
LOG: User = INTEGRA\tottman
LOG: DisplayName = VBSamples2
(Partial)
LOG: Appbase = file:///c:/inetpub/wwwroot/ITSamples/VBSamples2/
LOG: Initial PrivatePath = c:\inetpub\wwwroot\ITSamples\VBSamples2\bin
Calling assembly : ActiproSoftware.CodeHighlighter, Version=3.1.17.0, Culture=neutral, PublicKeyToken=247639e84cc1f4e4.
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: c:\inetpub\wwwroot\ITSamples\VBSamples2\web.config
LOG: Using host configuration file: c:\windows\microsoft.net\framework\v2.0.50727\aspnet.config
LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config.
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/itsamples_vbsamples2/4edfdddb/c4bad6bf/VBSamples2.DLL.
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/itsamples_vbsamples2/4edfdddb/c4bad6bf/VBSamples2/VBSamples2.DLL.
LOG: Attempting download of new URL file:///c:/inetpub/wwwroot/ITSamples/VBSamples2/bin/VBSamples2.DLL.
LOG: Attempting download of new URL file:///c:/inetpub/wwwroot/ITSamples/VBSamples2/bin/VBSamples2/VBSamples2.DLL.
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/itsamples_vbsamples2/4edfdddb/c4bad6bf/VBSamples2.EXE.
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/itsamples_vbsamples2/4edfdddb/c4bad6bf/VBSamples2/VBSamples2.EXE.
LOG: Attempting download of new URL file:///c:/inetpub/wwwroot/ITSamples/VBSamples2/bin/VBSamples2.EXE.
LOG: Attempting download of new URL file:///c:/inetpub/wwwroot/ITSamples/VBSamples2/bin/VBSamples2/VBSamples2.EXE.
Stack Trace:
[FileNotFoundException: Could not load file or assembly 'VBSamples2' or one of its dependencies. The system cannot find the file specified.]
System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +0
System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +211
System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +141
System.Activator.CreateInstance(String assemblyName, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityInfo, StackCrawlMark& stackMark) +41
System.Activator.CreateInstance(String assemblyName, String typeName) +39
ActiproSoftware.CodeHighlighter.CodeHighlighter.GetLanguage(CodeHighlighterConfiguration config, String languageKey) +492
ActiproSoftware.CodeHighlighter.CodeHighlighter.ᐁ() +376
ActiproSoftware.CodeHighlighter.CodeHighlighter.Render(HtmlTextWriter writer) +27
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +25
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +121
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +22
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +130
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +24
System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +59
System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output) +68
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +25
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +121
System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer) +37
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +130
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +24
System.Web.UI.Page.Render(HtmlTextWriter writer) +26
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +25
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +121
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +22
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1896
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.42; ASP.NET Version:2.0.50727.42