[Mono-list] Embedded Mono and using HtmlTextWriter

efontana eric at fontanas.net
Wed Oct 16 14:12:15 UTC 2013


I'm using embedded mono to load an assembly which is generating HTML via
HtmlTextWriter.

The assembly is just a class library, however, it's throwing this exception,
which sort of looks like it's looking for a Web.config?  there is an
App.config (just contains basic wrapper).

Any ideas?


Exception during TraceManager initialization:
System.ArgumentNullException: Argument cannot be null.
Parameter name: path1
  at System.IO.Path.Combine (System.String path1, System.String path2)
[0x00000] in <filename unknown>:0
  at System.Web.Configuration.WebConfigurationHost.GetWebConfigFileName
(System.String dir) [0x00000] in <filename unknown>:0
  at System.Web.Configuration.WebConfigurationHost.GetStreamName
(System.String configPath) [0x00000] in <filename unknown>:0
  at System.Configuration.Configuration.Init (IConfigSystem system,
System.String configPath, System.Configuration.Configuration parent)
[0x00000] in <filename unknown>:0
  at System.Configuration.Configuration..ctor
(System.Configuration.InternalConfigurationSystem system, System.String
locationSubPath) [0x00000] in <filename unknown>:0
  at System.Configuration.Configuration..ctor
(System.Configuration.InternalConfigurationSystem system, System.String
locationSubPath) [0x00000] in <filename unknown>:0
  at System.Configuration.InternalConfigurationFactory.Create (System.Type
typeConfigHost, System.Object[] hostInitConfigurationParams) [0x00000] in
<filename unknown>:0
  at System.Web.Configuration.WebConfigurationManager.OpenWebConfiguration
(System.String path, System.String site, System.String locationSubPath,
System.String server, System.String userName, System.String password,
Boolean fweb) [0x00000] in <filename unknown>:0
System.NullReferenceException: Object reference not set to an instance of an
object
  at System.Web.Util.HttpEncoder.GetCustomEncoderFromConfig () [0x00000] in
<filename unknown>:0
  at System.Lazy`1[System.Web.Util.HttpEncoder].InitValue () [0x00000] in
<filename unknown>:0
"System.NullReferenceException: Object reference not set to an instance of
an object
  at System.Web.Util.HttpEncoder.GetCustomEncoderFromConfig () [0x00000] in
<filename unknown>:0
  at System.Lazy`1[System.Web.Util.HttpEncoder].InitValue () [0x00000] in
<filename unknown>:0 "
"System.InvalidOperationException: Operation is not valid due to the current
state of the object
  at System.Web.UI.HtmlTextWriter.get_TagIgnore () [0x00000] in <filename
unknown>:0
  at System.Web.UI.HtmlTextWriter.RenderEndTag () [0x00000] in <filename
unknown>:0
  at ClassLibrary1.Plugin1.Analyze
(Carbon.Analyzer.Plugins.AnalyzerArgument[] arguments) [0x00000] in
<filename unknown>:0 "




--
View this message in context: http://mono.1490590.n4.nabble.com/Embedded-Mono-and-using-HtmlTextWriter-tp4661128.html
Sent from the Mono - General mailing list archive at Nabble.com.


More information about the Mono-list mailing list