perploug / UmbracoTemplateConverter

Automatic Template to View Conversion for Umbraco 4.10+
MIT License
2 stars 0 forks source link

Error When Run #2

Open rjbullock opened 11 years ago

rjbullock commented 11 years ago

Actually, I do have an issue... When I run the converter, I get the following error:

'The given key was not present in the dictionary.'

[KeyNotFoundException: The given key was not present in the dictionary.] System.Collections.Generic.Dictionary2.get_Item(TKey key) +14122715 Telerik.RazorConverter.Razor.Converters.MacroTagConverter.ConvertNode(IWebFormsNode node) +287 Telerik.RazorConverter.Razor.Converters.MacroTagConverter.ConvertNode(IWebFormsNode node) +2085 Telerik.RazorConverter.Razor.Converters.MacroTagConverter.ConvertNode(IWebFormsNode node) +2085 Telerik.RazorConverter.Razor.Converters.MacroTagConverter.ConvertNode(IWebFormsNode node) +2085 Telerik.RazorConverter.Razor.Converters.MacroTagConverter.ConvertNode(IWebFormsNode node) +2085 Telerik.RazorConverter.Razor.Converters.ContentTagConverter.ConvertNode(IWebFormsNode node) +914 Telerik.RazorConverter.Razor.Converters.ItemTagConverter.ConvertNode(IWebFormsNode node) +2407 Telerik.RazorConverter.Razor.Converters.ContentTagConverter.ConvertNode(IWebFormsNode node) +914 Telerik.RazorConverter.Razor.Converters.WebFormsToRazorConverter.Convert(IDocument1 srcDoc) +923 UmbracoTemplateConverter.ConverterDashboard.Convert(Object sender, EventArgs e) +789 System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +155 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3804

rjbullock commented 11 years ago

Never mind, I figured it out... The converter doesn't support references to macroScript files... i.e.,

<umbraco:Macro FileLocation="~/macroScripts/navigation/mainNav.cshtml" runat="server" />

So I'll just manually add those scripts back...