Page 1 of 1

Error: Cannot locate resource

Posted: Tue 11 Jun 2013 04:49
by Blumefeld
Hi,

I have just installed Linq Insight and attempted to see the results of a query. However I have received the following error in the Results output window:
Message: Set property 'System.Windows.ResourceDictionary.Source' threw an exception.
Type: System.Windows.Markup.XamlParseException
Source: PresentationFramework
Site: Load
Stack Trace:
at System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri)
at System.Windows.Markup.WpfXamlLoader.LoadBaml(XamlReader xamlReader, Boolean skipJournaledProperties, Object rootObject, XamlAccessLevel accessLevel, Uri baseUri)
at System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream)
at System.Windows.Application.LoadComponent(Object component, Uri resourceLocator)
at Devart.LinqInsight.VSPackage.UI.InteractiveControl.Dialogs.SelectQueryDialog.InitializeComponent()
at Devart.LinqInsight.VSPackage.UI.InteractiveControl.Dialogs.SelectQueryDialog..ctor(#=qjt0B45s6rs8DNBQE3$6jxXm$hfOaACrSZvJwNh5VqNj8XftGj$ibP7gGLNH5zh_i #=q1W2Lw29Wv7g3Ovw2aWmWtA==, List`1 #=q4bUs_Zy8p3FcJen69FIheg==, KnownLanguages #=qh5SSdmcgfczuCqV2knJcKA==)
at Devart.LinqInsight.VSPackage.UI.InteractiveControl.LINQInteractiveControl.#=qviGpfrEw7Kijb_NHrC9xWpXvxHr5xX7k1fIVzLMtN8I=(List`1 #=q8PBhmgdF2ZkLCI64AopO1A==)
at Devart.LinqInsight.VSPackage.UI.InteractiveControl.LINQInteractiveControl.#=qpcGizwP29my7GBHIJXSdy2Gwff1BJWQ0BCDBGZ0mTH8=.#=qp0TtiBDiL0c0aFieXG7W3OWxa5rN0l_3DjodD$U5ZscNdxBH5BjyB4k6q3XcrwNPlKSMwSEbM1LNGyF$MFUKKg==()
at System.Windows.Threading.DispatcherOperation`1.InvokeDelegateCore()
at System.Windows.Threading.DispatcherOperation.InvokeImpl()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Windows.Threading.DispatcherOperation.Wait(TimeSpan timeout)
at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherOperation operation, CancellationToken cancellationToken, TimeSpan timeout)
at System.Windows.Threading.Dispatcher.Invoke[TResult](Func`1 callback, DispatcherPriority priority, CancellationToken cancellationToken, TimeSpan timeout)
at Devart.LinqInsight.VSPackage.UI.InteractiveControl.LINQInteractiveControl.#=qMySHARg$LoUf0PpEeWq2Rzk0$MO8O8RS11$mIzw5650fdMufGICZ$jJ$QgCGVHiTVIou7RAYU_otpxJEHNx0BA==(List`1 #=qcum8h1LpL39tsClM5jTwng==)
at #=qXccR3CG807lQViLz7e4WtzgBG94YYx0V0sbhiGM5JfpzXPuK4uYA$7zeVm9YXCwhhUnANUydhOUWCiERz70PUQ==.#=qVpMeGa3wPoJD7rbidP_TeA==(KnownLanguages #=qbOTBILw6j_GPG6xu76_gQQ==, MethodSymbols #=qcUxpTTGLqlzpV_vNp0jS_w==, SyntaxTree #=qTCv_rZ6HfVSpUO4N2jpCiw==, SourceCodeInfo #=qQ4E9sfzzmiZ4Yi_DkdxQQg==, IQueryExecutorClient #=qljkQX0zYDmRdnMWxmEfhOA==, AstNode& #=qPPurhc7fDmJnIoaWXsKrLw==)
at #=qkRqvvpX4u6QkzLIUayR9JgD5yJ8TAkMdqCrThJ4S3lxCy4LfysO2y58O3X5F$3DYuMkurFtp9zjfGbnQVA1d7A==.#=qnNgEdAvbgr71WKVzHPRkBw==()
at #=qkRqvvpX4u6QkzLIUayR9JgD5yJ8TAkMdqCrThJ4S3lxCy4LfysO2y58O3X5F$3DYuMkurFtp9zjfGbnQVA1d7A==.#=q_3wsznAZcFw8hL7vMkX4gQ==()
at #=qkRqvvpX4u6QkzLIUayR9JgD5yJ8TAkMdqCrThJ4S3lxCy4LfysO2y58O3X5F$3DYuMkurFtp9zjfGbnQVA1d7A==.#=qz1XDAyh6$6cgcB1m_Cbj49iSL4ktronIk2aZ425gqc0=.#=qVp8wH75A_O5fI7A9IVGdTyljjYJLwmlAlFSvM20ZhIM=()

Inner Exception:
Message: Cannot locate resource 'ui/interactivecontrol/resources/styles.xaml'.
Type: System.IO.IOException
Source: PresentationFramework
Site: GetStreamCore
Stack Trace:
at MS.Internal.AppModel.ResourcePart.GetStreamCore(FileMode mode, FileAccess access)
at System.IO.Packaging.PackagePart.GetStream(FileMode mode, FileAccess access)
at System.IO.Packaging.PackWebResponse.CachedResponse.GetResponseStream()
at System.IO.Packaging.PackWebResponse.GetResponseStream()
at System.IO.Packaging.PackWebResponse.get_ContentType()
at MS.Internal.WpfWebRequestHelper.GetContentType(WebResponse response)
at MS.Internal.WpfWebRequestHelper.GetResponseStream(WebRequest request, ContentType& contentType)
at System.Windows.ResourceDictionary.set_Source(Uri value)
at System.Windows.Baml2006.WpfSharedBamlSchemaContext.<Create_BamlProperty_ResourceDictionary_Source>b__1c4(Object target, Object value)
at System.Windows.Baml2006.WpfKnownMemberInvoker.SetValue(Object instance, Object value)
at MS.Internal.Xaml.Runtime.ClrObjectRuntime.SetValue(XamlMember member, Object obj, Object value)
at MS.Internal.Xaml.Runtime.ClrObjectRuntime.SetValue(Object inst, XamlMember property, Object value)
I have had a quick search of the forums and haven't found any similar cases. Any help on this will be much appreciated.

Thanks,

Daniel

Re: Error: Cannot locate resource

Posted: Tue 11 Jun 2013 07:30
by MariiaI
Thank you for the report. We have reproduced this issue.
The fix will be included in the next build of LINQ Insight. We will inform you when it is available for download.

Re: Error: Cannot locate resource

Posted: Tue 11 Jun 2013 23:09
by Blumefeld
Thank you for the quick response. I look forward to the next build.

Thanks,

Daniel

Re: Error: Cannot locate resource

Posted: Wed 12 Jun 2013 06:34
by MariiaI
The bug related to the "Cannot locate resource" error is fixed. Please try the new build of LINQ Insight 3.0.264 and notify us about the results.
New build can be downloaded from http://www.devart.com/linqinsight/download.html of from Registered Users' Area (provided that you have an active subscription).
For more information, please refer to http://forums.devart.com/viewtopic.php?f=50&t=27332