Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
45
Trouble Loading TSql Parser assemby
posted

Hello,

I have trouble getting the parser to work, parse function always raises "System.Resources.MissingManifestResourceException".

The used assemblies are signed 14.1.2014.1.1000 - all used assemblies in our project are from the same ./Bin - Signed/20141_WinForms_CLR4x_Signed.zip

We have been using Infragistics in a huge app for many years including the Infragistics4.Shared.v14.1 .Win.v14.1 and a handfull of .Win.Ultra...v14.1 assamblies

Now I added
Infragistics4.Documents.TextDocument.v14.1
Infragistics4.Documents.TextDocument.TSql.v14.1 

and tried to get the parser to work, without success. I made the following testcode to see if it was a problem with our app, but the same error can be reproduced with it:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Infragistics.Documents.Parsing;

namespace ParserDemo
{

class Program
{

static void Main(string[] args)
{

System.Globalization.CultureInfo.DefaultThreadCurrentUICulture = System.Globalization.CultureInfo.GetCultureInfo("en-US");
TSqlLanguage language = new TSqlLanguage();
Infragistics.Documents.TextDocument document = new Infragistics.Documents.TextDocument();
document.Language = language;
document.InitializeText("Select * from table");
document.Parse();

}

}

}

Exception:

Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "Infragistics.Documents.TSql.strings.resources" was correctly embedded or linked into assembly "Infragistics4.Documents.TextDocument.TSql.v14.1" at compile time, or that all the satellite assemblies required are loadable and fully signed.

StackTrace:

at System.Resources.ManifestBasedResourceGroveler.HandleResourceStreamMissing(String fileName)
at System.Resources.ManifestBasedResourceGroveler.GrovelForResourceSet(CultureInfo culture, Dictionary`2 localResourceSets, Boolean tryParents, Boolean createIfNotExists, StackCrawlMark& stackMark)
at System.Resources.ResourceManager.InternalGetResourceSet(CultureInfo requestedCulture, Boolean createIfNotExists, Boolean tryParents, StackCrawlMark& stackMark)
at System.Resources.ResourceManager.InternalGetResourceSet(CultureInfo culture, Boolean createIfNotExists, Boolean tryParents)
at System.Resources.ResourceManager.GetString(String name, CultureInfo culture)
at Infragistics.Shared.SR.GetString(String name, CultureInfo culture)
at Infragistics.Shared.SR.GetStringHelper(Boolean allowCustomizedStrings, CultureInfo culture, String name, Object[] args)
at Infragistics.Shared.SR.GetString(CultureInfo culture, String name, Object[] args)
at Infragistics.Shared.SR.GetString(String name, Object[] args)
at Infragistics.Documents.Parsing.TSqlLanguage.GetString(String name, Object[] args)
at Infragistics.Documents.Parsing.TSqlLanguage.GetString(String name)
at Infragistics.Documents.Parsing.TSqlLanguage.GetErrorAlias(Symbol symbol)
at Infragistics.Documents.Parsing.GLRParser.AttachErrorsForExpectedSymbol(SyntaxNodeInternal& node, Symbol expected, Int32 offsetBeforeLeadingIgnoredContent, Int32 relativeOffsetInNode)
at Infragistics.Documents.Parsing.GLRParser.CreateExpectedNodeEdgeData(Symbol expected, Int32 expectedSymbolOffset, Int32 relativeOffsetInNodeForErrors)
at Infragistics.Documents.Parsing.ErrorHandling.ErrorStrategyBase.InsertExpectedSymbol(GLRParser parser, Stack& stack, Symbol expected, Int32 offsetBeforeLeadingIgnoredContent, Int32 relativeOffsetInNodeForErrors)
at Infragistics.Documents.Parsing.ErrorHandling.ErrorStrategyBase.CompleteAndReduceProduction(GLRParser parser, Stack& stack, Production production, Int16 position, Int32 offsetBeforeLeadingIgnoredContent, Int32 relativeOffsetInNodeForErrors)
at Infragistics.Documents.Parsing.ErrorHandling.ErrorStrategyBase.ReductionPath.PerformReductions(GLRParser parser, Stack& stack, Int32 offsetBeforeLeadingIgnoredContent, Int32 relativeOffsetInNodeForErrors)
at Infragistics.Documents.Parsing.ErrorHandling.SynchronizerSetErrorStrategy.TryRepairStackWithSynchronizerToken(GLRParser parser, Stack& stack, Dictionary`2 synchronizerSetsByStateId)
at Infragistics.Documents.Parsing.ErrorHandling.SynchronizerSetErrorStrategy.RepairParser(GLRParser parser)
at Infragistics.Documents.Parsing.ErrorHandling.ListErrorStrategy.RepairParser(GLRParser parser)
at Infragistics.Documents.Parsing.GLRParser.RepairParseGraph()
at Infragistics.Documents.Parsing.GLRParser.ShiftCurrentTerminalOnAllStacks(Boolean tryErrorReductionsOnFailure)
at Infragistics.Documents.Parsing.GLRParser.GLRParseCurrentToken()
at Infragistics.Documents.Parsing.GLRParser.ParseCurrentToken()
at Infragistics.Documents.Parsing.GLRParser.ParseTokens()
at Infragistics.Documents.Parsing.GLRParser.Parse(TextDocumentSnapshot snapshot, SyntaxTree existingParseTree)
at Infragistics.Documents.TextDocument.ProcessParse()
at Infragistics.Documents.TextDocument.Parse()