VerificationException: Operation could destabilize the runtime. Silverlight 5.0 #124

Closed
opened 2026-01-29 14:27:58 +00:00 by claunia · 2 comments
Owner

Originally created by @ykhenokh on GitHub (Jul 27, 2017).

installed Markdig 0.12.3 from NuGet into Silverlight project. packages.config:

<package id="Markdig" version="0.12.3" targetFramework="sl50" />

Called Markdown.ToHtml("test") from Silverlight 5.0 app and got this back:

{System.Security.VerificationException: Operation could destabilize the runtime.
at Markdig.Helpers.CharacterMap1.IndexOfOpeningCharacter(String text, Int32 start, Int32 end) at Markdig.Parsers.ParserList2.IndexOfOpeningCharacter(String text, Int32 start, Int32 end)
at Markdig.Parsers.Inlines.LiteralInlineParser.Match(InlineProcessor processor, StringSlice& slice)
at Markdig.Parsers.InlineProcessor.ProcessInlineLeaf(LeafBlock leafBlock)
at Markdig.Parsers.MarkdownParser.ProcessInlines()
at Markdig.Parsers.MarkdownParser.Parse()
at Markdig.Parsers.MarkdownParser.Parse(String text, MarkdownPipeline pipeline)
at Markdig.Markdown.Parse(String markdown, MarkdownPipeline pipeline)
at Markdig.Markdown.ToHtml(String markdown, TextWriter writer, MarkdownPipeline pipeline)
at Markdig.Markdown.ToHtml(String markdown, MarkdownPipeline pipeline)
.....

Originally created by @ykhenokh on GitHub (Jul 27, 2017). installed Markdig 0.12.3 from NuGet into Silverlight project. packages.config: &lt;package id="Markdig" version="0.12.3" targetFramework="sl50" /&gt; Called Markdown.ToHtml("test") from Silverlight 5.0 app and got this back: {System.Security.VerificationException: Operation could destabilize the runtime. at Markdig.Helpers.CharacterMap`1.IndexOfOpeningCharacter(String text, Int32 start, Int32 end) at Markdig.Parsers.ParserList`2.IndexOfOpeningCharacter(String text, Int32 start, Int32 end) at Markdig.Parsers.Inlines.LiteralInlineParser.Match(InlineProcessor processor, StringSlice& slice) at Markdig.Parsers.InlineProcessor.ProcessInlineLeaf(LeafBlock leafBlock) at Markdig.Parsers.MarkdownParser.ProcessInlines() at Markdig.Parsers.MarkdownParser.Parse() at Markdig.Parsers.MarkdownParser.Parse(String text, MarkdownPipeline pipeline) at Markdig.Markdown.Parse(String markdown, MarkdownPipeline pipeline) at Markdig.Markdown.ToHtml(String markdown, TextWriter writer, MarkdownPipeline pipeline) at Markdig.Markdown.ToHtml(String markdown, MarkdownPipeline pipeline) .....
claunia added the bug label 2026-01-29 14:27:59 +00:00
Author
Owner

@xoofx commented on GitHub (Jul 28, 2017):

Wow, you are using Markdig with Silverlight...

Well, this method is using unsafe and it appears that Silverlight doesn't support this well

Will check assembly .NET fwk targets and how to make nuget resolution playing well for Silverlight...

@xoofx commented on GitHub (Jul 28, 2017): Wow, you are using Markdig with Silverlight... Well, this method is using unsafe and it appears that [Silverlight doesn't support this well](http://cureos.blogspot.fr/2011/09/unsafe-support-in-silverlight-5.html) Will check assembly .NET fwk targets and how to make nuget resolution playing well for Silverlight...
Author
Owner

@xoofx commented on GitHub (Jul 31, 2017):

Should be fixed by a7786d9 and part of up-coming 0.12.4

@xoofx commented on GitHub (Jul 31, 2017): Should be fixed by a7786d9 and part of up-coming 0.12.4
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/markdig#124