Home Dashboard Directory Help
Search

Namespace extensions in XAML and IntelliSense by anhee


Status: 

Closed
 as Won't Fix Help for as Won't Fix


1
0
Sign in
to vote
Type: Bug
ID: 585389
Opened: 8/11/2010 1:00:02 AM
Access Restriction: Public
0
Workaround(s)
view
0
User(s) can reproduce this bug

Description

in my assembly info I have summarized several namespaces in one URI:
for example:
<Assembly: System.Windows.Markup.XmlnsDefinition("http://schemas.bruegmann-software.de/wpf/controls", "PO6ViewModelLibrary.Controls")>
<Assembly: System.Windows.Markup.XmlnsDefinition("http://schemas.bruegmann-software.de/wpf/controls", "PO6ViewModelLibrary.Controls.Base")>
<Assembly: System.Windows.Markup.XmlnsPrefix("http://schemas.bruegmann-software.de/wpf/controls", "bs")>

in my XAML UserControl, I would add:
<UserControl [...]
                     xmlns:bs="http://schemas.bruegmann-software.de/wpf/controls">

with .NET 3.5 and VS2008, I could then type in the XAML editor:
<bs:
and I get all Controls within the two namespaces und choose one:
<bs:MyControl
until then it works well. But now when I press the space bar, I don't get list of possible properties. I must be completely type the Properties on my own.
. NET 3.5 with VS2008 has no problems and I could see all properties.
Details
Sign in to post a comment.
Posted by Microsoft on 8/29/2011 at 2:53 PM
anhee,

We have found that this issue can no longer be reproduced against our code base for the next major version of Visual Studio.

Unfortunately, we have been unable to come up with a workaround other than making sure the missing assembly is present on the machines experiencing the problems.

We apologize for the inconviences that this issue has caused you.

Sincerely,
Sam Harrell
WPF/SL Designer in Visual Studio
Sam.Harrell @ Microsoft.com
Posted by Microsoft on 1/24/2011 at 12:24 AM
We will not fix that in Dev10, but will look into this issue at Dev11
Posted by anhee on 10/22/2010 at 1:14 AM
Nothing?
Posted by anhee on 9/14/2010 at 10:37 PM
Any new ideas? We need your help!
Posted by anhee on 9/1/2010 at 11:01 PM
Hi Bryan,

maybe someone has Expression Blend installed, but the most of us doesn't, and the exception on every machine is the same.
Sorry, but I can't share our project or some part of it.

Microsoft.Windows.Design.Interaction.dll --> 4.0.30319.1 (404KB)
Microsoft.Windows.Design.Extensibility.dll --> 4.0.30319.1 (118KB)
Microsoft.VisualStudio.Shell.Design is not referenced because we don't use it.

When I open the Reference-TreeItem in my Project-tree and then select Microsoft.Windows.Design.Extensibility.dll and Microsoft.Windows.Design.Interaction.dl the Runtime Version is "v2.0.50727" and the Version is "4.0.0.0", the Path links to the correct File (from where I got the version-informations above). Is the difference between Runtime Version and Version correct?


I don't know how to use "fuslogvw". I started it on the VS command prompt, the main dialog appears but then nothing happens. I also try to retry the steps you described in your comment from 16.08.2010 and then start fuslogvw again... after appearing of the main dialog nothing happens.
Could you please help me?
Posted by Microsoft on 8/30/2010 at 11:46 AM
Can you check which versions of Microsoft.VisualStudio.Shell.Design and Microsoft.Windows.Design.Interaction are on the machine and are referenced in the extension project? Is any of the Microsoft Expression products on the machine? Can you get the fusion log for when it fails? For more on fusion logging http://msdn.microsoft.com/en-us/library/e74a18c4(v=VS.100).aspx.

Thank you,
Bryan
Posted by Microsoft on 8/18/2010 at 6:34 PM
Thank you for the call stacks, it may take us a while to look into them. If you are allowed to share the full project causing the issue, that would be a great help. You can contact me directly for the transfer details at bryan.caldwell@microsoft.com.

Thank you,
Bryan
Posted by anhee on 8/18/2010 at 2:47 AM
The Extension-project refers only to the .NET 4.0 Libs out of C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\PublicAssemblies.
Before we migrate to .NET 4.0 we dont had problems with the .NET 3.5 Extension-Libs and VS 2008. Now we fully migrated to .NET 4.0 and VS 2010. So it would not be possible to use our Extensions in VS 2008 with .NET 3.5

It was difficult to remove the reference. Because in this project are some attached properties defined too, which are needed in the "problem"-wpfcontrol-library. But I then removed all settings of these attached properties.

Now the exception comes already only when typing "<" (no intellisense-windows opens). When typing "b" -> 2 exceptions, when typing "s" -> 2 exceptions, when typing ":" intellisense-window opens with all my controls. When typing <SPACE>: 2 exceptions. Then I try to type "common:" at each letter there comes those 2 exceptions. Even at ":" und no instellisense window appear. I have to type the classname of my attached properties manually (each type produces 2 exceptions). After typing the classname and then typing "." I see the expected behaviour und IntelliSense lists my definded properties.

Each typing is followed by two exceptions:
I attached two Screenshot of each Exception-Detail-Window. And now I will get the call stack of each of those two exception

1.)
>    Microsoft.VisualStudio.Shell.Design.dll!System.Reflection.Adds.AssemblyProxy.GetResolvedAssembly() + 0xb5 bytes    
    Microsoft.VisualStudio.Shell.Design.dll!System.Reflection.Adds.AssemblyProxy.GetHashCode() + 0x8 bytes    
    Microsoft.Windows.Design.Platform.dll!Microsoft.Windows.Design.Metadata.ReflectionMetadataContext.Reflectable<System.__Canon>.GetHashCode() + 0xf bytes    
    mscorlib.dll!System.Collections.Generic.GenericEqualityComparer<Microsoft.Windows.Design.Metadata.ReflectionMetadataContext.Reflectable<System.Reflection.Assembly>>.GetHashCode(Microsoft.Windows.Design.Metadata.ReflectionMetadataContext.Reflectable<System.Reflection.Assembly> obj) + 0x2c bytes    
    System.Core.dll!System.Collections.Generic.HashSet<Microsoft.Windows.Design.Metadata.ReflectionMetadataContext.Reflectable<System.Reflection.Assembly>>.InternalGetHashCode(Microsoft.Windows.Design.Metadata.ReflectionMetadataContext.Reflectable<System.Reflection.Assembly> item) + 0x39 bytes    
    System.Core.dll!System.Collections.Generic.HashSet<Microsoft.Windows.Design.Metadata.ReflectionMetadataContext.Reflectable<System.Reflection.Assembly>>.Contains(Microsoft.Windows.Design.Metadata.ReflectionMetadataContext.Reflectable<System.Reflection.Assembly> item) + 0x21 bytes    
    Microsoft.Windows.Design.Platform.dll!Microsoft.Windows.Design.Metadata.ReflectionMetadataContext.CanParentContextSupportType(Microsoft.Windows.Design.Metadata.ReflectionMetadataContext.Reflectable<System.Type> type) + 0xa2 bytes    
    Microsoft.Windows.Design.Platform.dll!Microsoft.Windows.Design.Metadata.ReflectionMetadataContext.GetTypeForReflectableType(Microsoft.Windows.Design.Metadata.ReflectionMetadataContext.Reflectable<System.Type> reflectableType) + 0x126 bytes    
    Microsoft.Windows.Design.Platform.dll!MS.Internal.Metadata.ClrType.GetTypeMetadata(System.Type type) + 0x45 bytes    
    Microsoft.Windows.Design.Platform.dll!MS.Internal.Metadata.ClrMethod.get_Parameters.MoveNext() + 0xb4 bytes    
    Microsoft.Windows.Design.Markup.dll!MS.Internal.Design.Metadata.Xaml.XamlType.GetPropertyTypeData(Microsoft.Windows.Design.Metadata.IMethodMetadata method, bool isSet = false, out Microsoft.Windows.Design.Metadata.ITypeMetadata attachableTo = null, out Microsoft.Windows.Design.Metadata.ITypeMetadata propertyType = {MS.Internal.Metadata.WrapperType}) + 0x3f bytes    
    Microsoft.Windows.Design.Markup.dll!MS.Internal.Design.Metadata.Xaml.XamlType.GetDeclaredAttachableProperties(bool computedOnly) + 0x130 bytes    
    Microsoft.Windows.Design.Markup.dll!MS.Internal.Design.Metadata.Xaml.XamlType.GetAllAttachableProperties.MoveNext() + 0x5f bytes    
    Microsoft.Windows.Design.Markup.dll!Microsoft.Windows.Design.Metadata.MetadataExtension<Microsoft.Windows.Design.Metadata.Xaml.XamlExtensionImplementations>.Filter<Microsoft.Windows.Design.Metadata.IPropertyMetadata>.MoveNext() + 0x7c bytes    
    Microsoft.Windows.Design.Markup.dll!MS.Internal.Design.Metadata.ReflectionTypeNode.BuildAttachableProperites() + 0x72 bytes    
    Microsoft.Windows.Design.Markup.dll!MS.Internal.Design.Metadata.ReflectionTypeNode.get_AttachableProperties.MoveNext() + 0x5f bytes    
    Microsoft.Windows.Design.Platform.dll!MS.Internal.XamlLanguageService.XamlFileContext.AddAttachablePropertyTypes(MS.Internal.Design.Markup.XamlElement element = {MS.Internal.Design.Markup.XamlObjectElement}, MS.Internal.Design.Metadata.XamlNamespaceNode namespaceNode, bool isAttribute = true, bool includeOpeningBracket = false, bool includeLeadingWhitespace = false, MS.Internal.XamlLanguageService.XamlFileContext.CompletionList completions = Count = 0) + 0xbe bytes    
    Microsoft.Windows.Design.Platform.dll!MS.Internal.XamlLanguageService.XamlFileContext.AddAttachablePropertyTypesAndPrefixes(MS.Internal.Design.Markup.XamlElement element = {MS.Internal.Design.Markup.XamlObjectElement}, MS.Internal.Identifier prefix = {MS.Internal.Identifier}, MS.Internal.Design.Metadata.TypeNode typePrefix, bool isAttribute, bool includeOpeningBracket = false, bool includeLeadingWhitespace = false, MS.Internal.XamlLanguageService.XamlFileContext.CompletionList completions = Count = 0) + 0xe7 bytes    
    Microsoft.Windows.Design.Platform.dll!MS.Internal.XamlLanguageService.XamlFileContext.AddAllProperties(MS.Internal.Design.Markup.XamlElement element = {MS.Internal.Design.Markup.XamlObjectElement}, MS.Internal.Design.Markup.XamlElement parent, int offset, bool includeLeadingWhitespace = false, Microsoft.Windows.Design.CompletionOptions completionOption) + 0x25c bytes    
    Microsoft.Windows.Design.Platform.dll!MS.Internal.XamlLanguageService.XamlFileContext.Microsoft.Windows.Design.IXamlFileInformationContext.GetCompletions(int offset, Microsoft.Windows.Design.CompletionOptions completionOption, char quote) + 0x678 bytes    
    [Appdomain Transition]    
    Microsoft.VisualStudio.Xaml.dll!MS.Internal.XamlLanguageService.XamlAuthoringScope.GetDeclarations(Microsoft.VisualStudio.TextManager.Interop.IVsTextView view, int line, int col, Microsoft.VisualStudio.Package.TokenInfo info, Microsoft.VisualStudio.Package.ParseReason reason) + 0xff bytes    
    Microsoft.VisualStudio.Package.LanguageService.10.0.dll!Microsoft.VisualStudio.Package.Source.HandleCompletionResponse(Microsoft.VisualStudio.Package.ParseRequest req = {Microsoft.VisualStudio.Package.ParseRequest}) + 0x8a bytes    
    Microsoft.VisualStudio.Package.LanguageService.10.0.dll!Microsoft.VisualStudio.Package.Source.BeginParse(int line, int idx, Microsoft.VisualStudio.Package.TokenInfo info, Microsoft.VisualStudio.Package.ParseReason reason, Microsoft.VisualStudio.TextManager.Interop.IVsTextView view, Microsoft.VisualStudio.Package.ParseResultHandler callback) + 0x14e bytes    
    Microsoft.VisualStudio.Xaml.dll!MS.Internal.XamlLanguageService.XamlSource.BeginParse(int line, int idx, Microsoft.VisualStudio.Package.TokenInfo info, Microsoft.VisualStudio.Package.ParseReason reason, Microsoft.VisualStudio.TextManager.Interop.IVsTextView view, Microsoft.VisualStudio.Package.ParseResultHandler callback) + 0xb6 bytes    
    Microsoft.VisualStudio.Package.LanguageService.10.0.dll!Microsoft.VisualStudio.Package.Source.Completion(Microsoft.VisualStudio.TextManager.Interop.IVsTextView textView, Microsoft.VisualStudio.Package.TokenInfo info, Microsoft.VisualStudio.Package.ParseReason reason) + 0xa4 bytes    
    Microsoft.VisualStudio.Xaml.dll!MS.Internal.XamlLanguageService.XamlSource.Completion(Microsoft.VisualStudio.TextManager.Interop.IVsTextView textView, Microsoft.VisualStudio.Package.TokenInfo info = {Microsoft.VisualStudio.Package.TokenInfo}, Microsoft.VisualStudio.Package.ParseReason reason) + 0xd7 bytes    
    Microsoft.VisualStudio.Xaml.dll!MS.Internal.XamlLanguageService.XamlSource.OnCommand(Microsoft.VisualStudio.TextManager.Interop.IVsTextView textView, Microsoft.VisualStudio.VSConstants.VSStd2KCmdID command, char ch) + 0x140 bytes    
    Microsoft.VisualStudio.Package.LanguageService.10.0.dll!Microsoft.VisualStudio.Package.ViewFilter.HandlePostExec(ref System.Guid guidCmdGroup, uint nCmdId, uint nCmdexecopt, System.IntPtr pvaIn, System.IntPtr pvaOut, bool bufferWasChanged) + 0x154 bytes    
    Microsoft.VisualStudio.Xaml.dll!MS.Internal.XamlLanguageService.VsXamlLanguageService.XamlViewFilter.HandlePostExec(ref System.Guid guidCmdGroup = {System.Guid}, uint nCmdId = 1, uint nCmdexecopt, System.IntPtr pvaIn = 603266304, System.IntPtr pvaOut, bool bufferWasChanged = true) + 0x338 bytes    
    Microsoft.VisualStudio.Package.LanguageService.10.0.dll!Microsoft.VisualStudio.Package.ViewFilter.ExecCommand(ref System.Guid guidCmdGroup, uint nCmdId, uint nCmdexecopt, System.IntPtr pvaIn, System.IntPtr pvaOut) + 0x2c4 bytes    
    Microsoft.VisualStudio.Xaml.dll!MS.Internal.XamlLanguageService.VsXamlLanguageService.XamlViewFilter.ExecCommand(ref System.Guid guidCmdGroup, uint nCmdId, uint nCmdexecopt, System.IntPtr pvaIn, System.IntPtr pvaOut) + 0x96 bytes    
    Microsoft.VisualStudio.Package.LanguageService.10.0.dll!Microsoft.VisualStudio.Package.ViewFilter.Microsoft.VisualStudio.OLE.Interop.IOleCommandTarget.Exec(ref System.Guid guidCmdGroup, uint nCmdId, uint nCmdexecopt, System.IntPtr pvaIn, System.IntPtr pvaOut) + 0xb7 bytes    
    Microsoft.VisualStudio.Editor.Implementation.dll!Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.Exec(ref System.Guid pguidCmdGroup, uint nCmdID, uint nCmdexecopt, System.IntPtr pvaIn, System.IntPtr pvaOut) + 0x20 bytes    
    Microsoft.VisualStudio.Editor.Implementation.dll!Microsoft.VisualStudio.Editor.Implementation.CommandFilterWrapper.Exec(ref System.Guid pguidCmdGroup, uint nCmdID, uint nCmdexecopt, System.IntPtr pvaIn, System.IntPtr pvaOut) + 0x71 bytes    
    Microsoft.VisualStudio.Editor.Implementation.dll!Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.Exec(ref System.Guid pguidCmdGroup, uint nCmdID, uint nCmdexecopt, System.IntPtr pvaIn, System.IntPtr pvaOut) + 0x20 bytes    
    AlignAssignments.dll!NoahRichards.AlignAssignments.CommandFilter.Exec(ref System.Guid pguidCmdGroup, uint nCmdID, uint nCmdexecopt, System.IntPtr pvaIn, System.IntPtr pvaOut) + 0x89 bytes    
    Microsoft.VisualStudio.Editor.Implementation.dll!Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.Exec(ref System.Guid pguidCmdGroup, uint nCmdID, uint nCmdexecopt, System.IntPtr pvaIn, System.IntPtr pvaOut) + 0x20 bytes    
    MoveLineCommand.dll!Microsoft.MoveLineCommand.CommandFilter.Exec(ref System.Guid pguidCmdGroup, uint nCmdID, uint nCmdexecopt, System.IntPtr pvaIn, System.IntPtr pvaOut) + 0xaf bytes    
    Microsoft.VisualStudio.Editor.Implementation.dll!Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.Exec(ref System.Guid pguidCmdGroup, uint nCmdID, uint nCmdexecopt, System.IntPtr pvaIn, System.IntPtr pvaOut) + 0x20 bytes    
    CopyAsHtml.dll!Microsoft.VisualStudio.Text.Formatting.Implementation.CommandFilter.Exec(ref System.Guid pguidCmdGroup, uint nCmdID, uint nCmdexecopt, System.IntPtr pvaIn, System.IntPtr pvaOut) + 0x7a bytes    
    Microsoft.VisualStudio.Editor.Implementation.dll!Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.Exec(ref System.Guid pguidCmdGroup, uint nCmdID, uint nCmdexecopt, System.IntPtr pvaIn, System.IntPtr pvaOut) + 0x20 bytes    
    SolutionNavigator.dll!Microsoft.VisualStudio.Labs.CommandFilter.Exec(ref System.Guid pguidCmdGroup = {System.Guid}, uint nCmdID = 1, uint nCmdexecopt, System.IntPtr pvaIn, System.IntPtr pvaOut) + 0xdd bytes    
    Microsoft.VisualStudio.Editor.Implementation.dll!Microsoft.VisualStudio.Editor.Implementation.VsTextViewAdapter.Exec(ref System.Guid pguidCmdGroup = {System.Guid}, uint nCmdID = 1, uint nCmdexecopt, System.IntPtr pvaIn = 603266304, System.IntPtr pvaOut) + 0x163 bytes    
    Microsoft.VisualStudio.Editor.Implementation.dll!Microsoft.VisualStudio.Editor.Implementation.VsKeyboardFilter.SendCommand(System.Guid cmdGroup, uint cmdID, object inParam = 114) + 0x60 bytes    
    Microsoft.VisualStudio.Editor.Implementation.dll!Microsoft.VisualStudio.Editor.Implementation.VsKeyboardFilter.TextInput(System.Windows.Input.TextCompositionEventArgs args = {System.Windows.Input.TextCompositionEventArgs}) + 0x85 bytes    
    Microsoft.VisualStudio.Platform.VSEditor.dll!Microsoft.VisualStudio.Text.Editor.Implementation.KeyProcessorDispatcher.DispatchTextInputEvents.AnonymousMethod__0(Microsoft.VisualStudio.Text.Editor.KeyProcessor p, System.Windows.Input.TextCompositionEventArgs args) + 0xb bytes    
    Microsoft.VisualStudio.Platform.VSEditor.dll!Microsoft.VisualStudio.Text.Editor.Implementation.KeyProcessorDispatcher.Dispatch<System.__Canon>.AnonymousMethod__1a() + 0x18 bytes    
    Microsoft.VisualStudio.Platform.VSEditor.dll!Microsoft.VisualStudio.Text.Utilities.GuardedOperations.CallExtensionPoint(object errorSource = null, System.Action call) + 0x2d bytes    
    Microsoft.VisualStudio.Platform.VSEditor.dll!Microsoft.VisualStudio.Text.Editor.Implementation.KeyProcessorDispatcher.Dispatch<System.Windows.Input.TextCompositionEventArgs>(System.Action<Microsoft.VisualStudio.Text.Editor.KeyProcessor,System.Windows.Input.TextCompositionEventArgs> action, System.Windows.Input.TextCompositionEventArgs args) + 0x149 bytes    
    Microsoft.VisualStudio.Platform.VSEditor.dll!Microsoft.VisualStudio.Text.Editor.Implementation.KeyProcessorDispatcher.MakeHandler.AnonymousMethod__17(object sender, System.Windows.Input.TextCompositionEventArgs args) + 0x1c bytes    
    PresentationCore.dll!System.Windows.Input.TextCompositionEventArgs.InvokeEventHandler(System.Delegate genericHandler, object genericTarget) + 0x31 bytes    
    PresentationCore.dll!System.Windows.RoutedEventArgs.InvokeHandler(System.Delegate handler, object target) + 0x36 bytes    
    PresentationCore.dll!System.Windows.RoutedEventHandlerInfo.InvokeHandler(object target, System.Windows.RoutedEventArgs routedEventArgs) + 0x40 bytes    
    PresentationCore.dll!System.Windows.EventRoute.InvokeHandlersImpl(object source = {Microsoft.VisualStudio.Text.Editor.Implementation.WpfTextView}, System.Windows.RoutedEventArgs args = {System.Windows.Input.TextCompositionEventArgs}, bool reRaised = false) + 0x1ae bytes    
    PresentationCore.dll!System.Windows.UIElement.RaiseEventImpl(System.Windows.DependencyObject sender = {Microsoft.VisualStudio.Text.Editor.Implementation.WpfTextView}, System.Windows.RoutedEventArgs args = {System.Windows.Input.TextCompositionEventArgs}) + 0x79 bytes    
    PresentationCore.dll!System.Windows.UIElement.RaiseTrustedEvent(System.Windows.RoutedEventArgs args = {System.Windows.Input.TextCompositionEventArgs}) + 0x41 bytes    
    PresentationCore.dll!System.Windows.UIElement.RaiseEvent(System.Windows.RoutedEventArgs args, bool trusted) + 0x42 bytes    
    PresentationCore.dll!System.Windows.Input.InputManager.ProcessStagingArea() + 0x1ff bytes    
    PresentationCore.dll!System.Windows.Input.InputManager.ProcessInput(System.Windows.Input.InputEventArgs input) + 0x45 bytes    
    PresentationCore.dll!System.Windows.Input.TextCompositionManager.UnsafeCompleteComposition(System.Windows.Input.TextComposition composition) + 0x7e bytes    
    PresentationCore.dll!System.Windows.Input.TextCompositionManager.PostProcessInput(object sender, System.Windows.Input.ProcessInputEventArgs e = {System.Windows.Input.ProcessInputEventArgs}) + 0x43d bytes    
    PresentationCore.dll!System.Windows.Input.InputManager.RaiseProcessInputEventHandlers(System.Windows.Input.ProcessInputEventHandler postProcessInput, System.Windows.Input.ProcessInputEventArgs processInputEventArgs = {System.Windows.Input.ProcessInputEventArgs}) + 0x9d bytes    
    PresentationCore.dll!System.Windows.Input.InputManager.ProcessStagingArea() + 0x23b bytes    
    PresentationCore.dll!System.Windows.Input.InputManager.ProcessInput(System.Windows.Input.InputEventArgs input) + 0x45 bytes    
    PresentationCore.dll!System.Windows.Input.TextCompositionManager.UnsafeStartComposition(System.Windows.Input.TextComposition composition) + 0x74 bytes    
    PresentationCore.dll!System.Windows.Input.TextCompositionManager.PostProcessInput(object sender, System.Windows.Input.ProcessInputEventArgs e) + 0x6f6 bytes    
    PresentationCore.dll!System.Windows.Input.InputManager.RaiseProcessInputEventHandlers(System.Windows.Input.ProcessInputEventHandler postProcessInput, System.Windows.Input.ProcessInputEventArgs processInputEventArgs = {System.Windows.Input.ProcessInputEventArgs}) + 0x9d bytes    
    PresentationCore.dll!System.Windows.Input.InputManager.ProcessStagingArea() + 0x23b bytes    
    PresentationCore.dll!System.Windows.Input.InputManager.ProcessInput(System.Windows.Input.InputEventArgs input) + 0x45 bytes    
    PresentationCore.dll!System.Windows.Input.InputProviderSite.ReportInput(System.Windows.Input.InputReport inputReport) + 0x62 bytes    
    PresentationCore.dll!System.Windows.Interop.HwndKeyboardInputProvider.ProcessTextInputAction(System.IntPtr hwnd, MS.Internal.Interop.WindowMessage msg, System.IntPtr wParam, System.IntPtr lParam, ref bool handled = false) + 0x189 bytes    
    PresentationCore.dll!System.Windows.Interop.HwndKeyboardInputProvider.FilterMessage(System.IntPtr hwnd = 202636, MS.Internal.Interop.WindowMessage message = WM_CHAR, System.IntPtr wParam = 114, System.IntPtr lParam = 1245185, ref bool handled = false) + 0x2d6 bytes    
    PresentationCore.dll!System.Windows.Interop.HwndSource.InputFilterMessage(System.IntPtr hwnd = 202636, int msg = 258, System.IntPtr wParam = 114, System.IntPtr lParam = 1245185, ref bool handled = false) + 0xa0 bytes    
    WindowsBase.dll!MS.Win32.HwndWrapper.WndProc(System.IntPtr hwnd = 202636, int msg = 258, System.IntPtr wParam = 114, System.IntPtr lParam = 1245185, ref bool handled = false) + 0xbe bytes    
    WindowsBase.dll!MS.Win32.HwndSubclass.DispatcherCallbackOperation(object o) + 0x7d bytes    
    WindowsBase.dll!System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate callback, object args, int numArgs) + 0x53 bytes    
    WindowsBase.dll!MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(object source = {System.Windows.Threading.Dispatcher}, System.Delegate method, object args, int numArgs, System.Delegate catchHandler = null) + 0x42 bytes    
    WindowsBase.dll!System.Windows.Threading.Dispatcher.InvokeImpl(System.Windows.Threading.DispatcherPriority priority, System.TimeSpan timeout, System.Delegate method, object args, int numArgs) + 0xb4 bytes    
    WindowsBase.dll!MS.Win32.HwndSubclass.SubclassWndProc(System.IntPtr hwnd = 202636, int msg = 258, System.IntPtr wParam = 114, System.IntPtr lParam = 1245185) + 0x104 bytes    

    
    
Then hitting "continue" and the second exception rises:
2.)
>    Microsoft.VisualStudio.Xaml.dll!MS.Internal.XamlLanguageService.XamlAuthoringScope.GetDeclarations(Microsoft.VisualStudio.TextManager.Interop.IVsTextView view, int line, int col, Microsoft.VisualStudio.Package.TokenInfo info, Microsoft.VisualStudio.Package.ParseReason reason) + 0xff bytes    
    Microsoft.VisualStudio.Package.LanguageService.10.0.dll!Microsoft.VisualStudio.Package.Source.HandleCompletionResponse(Microsoft.VisualStudio.Package.ParseRequest req = {Microsoft.VisualStudio.Package.ParseRequest}) + 0x8a bytes    
    Microsoft.VisualStudio.Package.LanguageService.10.0.dll!Microsoft.VisualStudio.Package.Source.BeginParse(int line, int idx, Microsoft.VisualStudio.Package.TokenInfo info, Microsoft.VisualStudio.Package.ParseReason reason, Microsoft.VisualStudio.TextManager.Interop.IVsTextView view, Microsoft.VisualStudio.Package.ParseResultHandler callback) + 0x14e bytes    
    Microsoft.VisualStudio.Xaml.dll!MS.Internal.XamlLanguageService.XamlSource.BeginParse(int line, int idx, Microsoft.VisualStudio.Package.TokenInfo info, Microsoft.VisualStudio.Package.ParseReason reason, Microsoft.VisualStudio.TextManager.Interop.IVsTextView view, Microsoft.VisualStudio.Package.ParseResultHandler callback) + 0xb6 bytes    
    Microsoft.VisualStudio.Package.LanguageService.10.0.dll!Microsoft.VisualStudio.Package.Source.Completion(Microsoft.VisualStudio.TextManager.Interop.IVsTextView textView, Microsoft.VisualStudio.Package.TokenInfo info, Microsoft.VisualStudio.Package.ParseReason reason) + 0xa4 bytes    
    Microsoft.VisualStudio.Xaml.dll!MS.Internal.XamlLanguageService.XamlSource.Completion(Microsoft.VisualStudio.TextManager.Interop.IVsTextView textView, Microsoft.VisualStudio.Package.TokenInfo info = {Microsoft.VisualStudio.Package.TokenInfo}, Microsoft.VisualStudio.Package.ParseReason reason) + 0xd7 bytes    
    Microsoft.VisualStudio.Xaml.dll!MS.Internal.XamlLanguageService.XamlSource.OnCommand(Microsoft.VisualStudio.TextManager.Interop.IVsTextView textView, Microsoft.VisualStudio.VSConstants.VSStd2KCmdID command, char ch) + 0x140 bytes    
    Microsoft.VisualStudio.Package.LanguageService.10.0.dll!Microsoft.VisualStudio.Package.ViewFilter.HandlePostExec(ref System.Guid guidCmdGroup, uint nCmdId, uint nCmdexecopt, System.IntPtr pvaIn, System.IntPtr pvaOut, bool bufferWasChanged) + 0x154 bytes    
    Microsoft.VisualStudio.Xaml.dll!MS.Internal.XamlLanguageService.VsXamlLanguageService.XamlViewFilter.HandlePostExec(ref System.Guid guidCmdGroup = {System.Guid}, uint nCmdId = 1, uint nCmdexecopt, System.IntPtr pvaIn = 603266304, System.IntPtr pvaOut, bool bufferWasChanged = true) + 0x338 bytes    
    Microsoft.VisualStudio.Package.LanguageService.10.0.dll!Microsoft.VisualStudio.Package.ViewFilter.ExecCommand(ref System.Guid guidCmdGroup, uint nCmdId, uint nCmdexecopt, System.IntPtr pvaIn, System.IntPtr pvaOut) + 0x2c4 bytes    
    Microsoft.VisualStudio.Xaml.dll!MS.Internal.XamlLanguageService.VsXamlLanguageService.XamlViewFilter.ExecCommand(ref System.Guid guidCmdGroup, uint nCmdId, uint nCmdexecopt, System.IntPtr pvaIn, System.IntPtr pvaOut) + 0x96 bytes    
    Microsoft.VisualStudio.Package.LanguageService.10.0.dll!Microsoft.VisualStudio.Package.ViewFilter.Microsoft.VisualStudio.OLE.Interop.IOleCommandTarget.Exec(ref System.Guid guidCmdGroup, uint nCmdId, uint nCmdexecopt, System.IntPtr pvaIn, System.IntPtr pvaOut) + 0xb7 bytes    
    Microsoft.VisualStudio.Editor.Implementation.dll!Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.Exec(ref System.Guid pguidCmdGroup, uint nCmdID, uint nCmdexecopt, System.IntPtr pvaIn, System.IntPtr pvaOut) + 0x20 bytes    
    Microsoft.VisualStudio.Editor.Implementation.dll!Microsoft.VisualStudio.Editor.Implementation.CommandFilterWrapper.Exec(ref System.Guid pguidCmdGroup, uint nCmdID, uint nCmdexecopt, System.IntPtr pvaIn, System.IntPtr pvaOut) + 0x71 bytes    
    Microsoft.VisualStudio.Editor.Implementation.dll!Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.Exec(ref System.Guid pguidCmdGroup, uint nCmdID, uint nCmdexecopt, System.IntPtr pvaIn, System.IntPtr pvaOut) + 0x20 bytes    
    AlignAssignments.dll!NoahRichards.AlignAssignments.CommandFilter.Exec(ref System.Guid pguidCmdGroup, uint nCmdID, uint nCmdexecopt, System.IntPtr pvaIn, System.IntPtr pvaOut) + 0x89 bytes    
    Microsoft.VisualStudio.Editor.Implementation.dll!Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.Exec(ref System.Guid pguidCmdGroup, uint nCmdID, uint nCmdexecopt, System.IntPtr pvaIn, System.IntPtr pvaOut) + 0x20 bytes    
    MoveLineCommand.dll!Microsoft.MoveLineCommand.CommandFilter.Exec(ref System.Guid pguidCmdGroup, uint nCmdID, uint nCmdexecopt, System.IntPtr pvaIn, System.IntPtr pvaOut) + 0xaf bytes    
    Microsoft.VisualStudio.Editor.Implementation.dll!Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.Exec(ref System.Guid pguidCmdGroup, uint nCmdID, uint nCmdexecopt, System.IntPtr pvaIn, System.IntPtr pvaOut) + 0x20 bytes    
    CopyAsHtml.dll!Microsoft.VisualStudio.Text.Formatting.Implementation.CommandFilter.Exec(ref System.Guid pguidCmdGroup, uint nCmdID, uint nCmdexecopt, System.IntPtr pvaIn, System.IntPtr pvaOut) + 0x7a bytes    
    Microsoft.VisualStudio.Editor.Implementation.dll!Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.Exec(ref System.Guid pguidCmdGroup, uint nCmdID, uint nCmdexecopt, System.IntPtr pvaIn, System.IntPtr pvaOut) + 0x20 bytes    
    SolutionNavigator.dll!Microsoft.VisualStudio.Labs.CommandFilter.Exec(ref System.Guid pguidCmdGroup = {System.Guid}, uint nCmdID = 1, uint nCmdexecopt, System.IntPtr pvaIn, System.IntPtr pvaOut) + 0xdd bytes    
    Microsoft.VisualStudio.Editor.Implementation.dll!Microsoft.VisualStudio.Editor.Implementation.VsTextViewAdapter.Exec(ref System.Guid pguidCmdGroup = {System.Guid}, uint nCmdID = 1, uint nCmdexecopt, System.IntPtr pvaIn = 603266304, System.IntPtr pvaOut) + 0x163 bytes    
    Microsoft.VisualStudio.Editor.Implementation.dll!Microsoft.VisualStudio.Editor.Implementation.VsKeyboardFilter.SendCommand(System.Guid cmdGroup, uint cmdID, object inParam = 114) + 0x60 bytes    
    Microsoft.VisualStudio.Editor.Implementation.dll!Microsoft.VisualStudio.Editor.Implementation.VsKeyboardFilter.TextInput(System.Windows.Input.TextCompositionEventArgs args = {System.Windows.Input.TextCompositionEventArgs}) + 0x85 bytes    
    Microsoft.VisualStudio.Platform.VSEditor.dll!Microsoft.VisualStudio.Text.Editor.Implementation.KeyProcessorDispatcher.DispatchTextInputEvents.AnonymousMethod__0(Microsoft.VisualStudio.Text.Editor.KeyProcessor p, System.Windows.Input.TextCompositionEventArgs args) + 0xb bytes    
    Microsoft.VisualStudio.Platform.VSEditor.dll!Microsoft.VisualStudio.Text.Editor.Implementation.KeyProcessorDispatcher.Dispatch<System.__Canon>.AnonymousMethod__1a() + 0x18 bytes    
    Microsoft.VisualStudio.Platform.VSEditor.dll!Microsoft.VisualStudio.Text.Utilities.GuardedOperations.CallExtensionPoint(object errorSource = null, System.Action call) + 0x2d bytes    
    Microsoft.VisualStudio.Platform.VSEditor.dll!Microsoft.VisualStudio.Text.Editor.Implementation.KeyProcessorDispatcher.Dispatch<System.Windows.Input.TextCompositionEventArgs>(System.Action<Microsoft.VisualStudio.Text.Editor.KeyProcessor,System.Windows.Input.TextCompositionEventArgs> action, System.Windows.Input.TextCompositionEventArgs args) + 0x149 bytes    
    Microsoft.VisualStudio.Platform.VSEditor.dll!Microsoft.VisualStudio.Text.Editor.Implementation.KeyProcessorDispatcher.MakeHandler.AnonymousMethod__17(object sender, System.Windows.Input.TextCompositionEventArgs args) + 0x1c bytes    
    PresentationCore.dll!System.Windows.Input.TextCompositionEventArgs.InvokeEventHandler(System.Delegate genericHandler, object genericTarget) + 0x31 bytes    
    PresentationCore.dll!System.Windows.RoutedEventArgs.InvokeHandler(System.Delegate handler, object target) + 0x36 bytes    
    PresentationCore.dll!System.Windows.RoutedEventHandlerInfo.InvokeHandler(object target, System.Windows.RoutedEventArgs routedEventArgs) + 0x40 bytes    
    PresentationCore.dll!System.Windows.EventRoute.InvokeHandlersImpl(object source = {Microsoft.VisualStudio.Text.Editor.Implementation.WpfTextView}, System.Windows.RoutedEventArgs args = {System.Windows.Input.TextCompositionEventArgs}, bool reRaised = false) + 0x1ae bytes    
    PresentationCore.dll!System.Windows.UIElement.RaiseEventImpl(System.Windows.DependencyObject sender = {Microsoft.VisualStudio.Text.Editor.Implementation.WpfTextView}, System.Windows.RoutedEventArgs args = {System.Windows.Input.TextCompositionEventArgs}) + 0x79 bytes    
    PresentationCore.dll!System.Windows.UIElement.RaiseTrustedEvent(System.Windows.RoutedEventArgs args = {System.Windows.Input.TextCompositionEventArgs}) + 0x41 bytes    
    PresentationCore.dll!System.Windows.UIElement.RaiseEvent(System.Windows.RoutedEventArgs args, bool trusted) + 0x42 bytes    
    PresentationCore.dll!System.Windows.Input.InputManager.ProcessStagingArea() + 0x1ff bytes    
    PresentationCore.dll!System.Windows.Input.InputManager.ProcessInput(System.Windows.Input.InputEventArgs input) + 0x45 bytes    
    PresentationCore.dll!System.Windows.Input.TextCompositionManager.UnsafeCompleteComposition(System.Windows.Input.TextComposition composition) + 0x7e bytes    
    PresentationCore.dll!System.Windows.Input.TextCompositionManager.PostProcessInput(object sender, System.Windows.Input.ProcessInputEventArgs e = {System.Windows.Input.ProcessInputEventArgs}) + 0x43d bytes    
    PresentationCore.dll!System.Windows.Input.InputManager.RaiseProcessInputEventHandlers(System.Windows.Input.ProcessInputEventHandler postProcessInput, System.Windows.Input.ProcessInputEventArgs processInputEventArgs = {System.Windows.Input.ProcessInputEventArgs}) + 0x9d bytes    
    PresentationCore.dll!System.Windows.Input.InputManager.ProcessStagingArea() + 0x23b bytes    
    PresentationCore.dll!System.Windows.Input.InputManager.ProcessInput(System.Windows.Input.InputEventArgs input) + 0x45 bytes    
    PresentationCore.dll!System.Windows.Input.TextCompositionManager.UnsafeStartComposition(System.Windows.Input.TextComposition composition) + 0x74 bytes    
    PresentationCore.dll!System.Windows.Input.TextCompositionManager.PostProcessInput(object sender, System.Windows.Input.ProcessInputEventArgs e) + 0x6f6 bytes    
    PresentationCore.dll!System.Windows.Input.InputManager.RaiseProcessInputEventHandlers(System.Windows.Input.ProcessInputEventHandler postProcessInput, System.Windows.Input.ProcessInputEventArgs processInputEventArgs = {System.Windows.Input.ProcessInputEventArgs}) + 0x9d bytes    
    PresentationCore.dll!System.Windows.Input.InputManager.ProcessStagingArea() + 0x23b bytes    
    PresentationCore.dll!System.Windows.Input.InputManager.ProcessInput(System.Windows.Input.InputEventArgs input) + 0x45 bytes    
    PresentationCore.dll!System.Windows.Input.InputProviderSite.ReportInput(System.Windows.Input.InputReport inputReport) + 0x62 bytes    
    PresentationCore.dll!System.Windows.Interop.HwndKeyboardInputProvider.ProcessTextInputAction(System.IntPtr hwnd, MS.Internal.Interop.WindowMessage msg, System.IntPtr wParam, System.IntPtr lParam, ref bool handled = false) + 0x189 bytes    
    PresentationCore.dll!System.Windows.Interop.HwndKeyboardInputProvider.FilterMessage(System.IntPtr hwnd = 202636, MS.Internal.Interop.WindowMessage message = WM_CHAR, System.IntPtr wParam = 114, System.IntPtr lParam = 1245185, ref bool handled = false) + 0x2d6 bytes    
    PresentationCore.dll!System.Windows.Interop.HwndSource.InputFilterMessage(System.IntPtr hwnd = 202636, int msg = 258, System.IntPtr wParam = 114, System.IntPtr lParam = 1245185, ref bool handled = false) + 0xa0 bytes    
    WindowsBase.dll!MS.Win32.HwndWrapper.WndProc(System.IntPtr hwnd = 202636, int msg = 258, System.IntPtr wParam = 114, System.IntPtr lParam = 1245185, ref bool handled = false) + 0xbe bytes    
    WindowsBase.dll!MS.Win32.HwndSubclass.DispatcherCallbackOperation(object o) + 0x7d bytes    
    WindowsBase.dll!System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate callback, object args, int numArgs) + 0x53 bytes    
    WindowsBase.dll!MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(object source = {System.Windows.Threading.Dispatcher}, System.Delegate method, object args, int numArgs, System.Delegate catchHandler = null) + 0x42 bytes    
    WindowsBase.dll!System.Windows.Threading.Dispatcher.InvokeImpl(System.Windows.Threading.DispatcherPriority priority, System.TimeSpan timeout, System.Delegate method, object args, int numArgs) + 0xb4 bytes    
    WindowsBase.dll!MS.Win32.HwndSubclass.SubclassWndProc(System.IntPtr hwnd = 202636, int msg = 258, System.IntPtr wParam = 114, System.IntPtr lParam = 1245185) + 0x104 bytes    

Posted by Microsoft on 8/17/2010 at 1:33 PM
Thank you for the investigation. If there is an inner exception Would you please include it and the full call stack. You can shift select and copy the contents out of the call stack window, while you have the exception up. If the call stack window is not up you can access it from the menu Debug->Windows->call stack.

The WPF-Designer-Extension project may be trying to reference a different version of the Interaction assembly for 2008 and 2010. This could explain why it works in 2008 and doea not work in 2010. Just to confirm, would you please try removing references to the designer extension project and see if the intellisense issue starts working properly.

Thank you,
Visual Studio WPF and Silverlight Designer Team
Posted by anhee on 8/16/2010 at 10:39 PM
Thanks for your answer. After typing ":" I get the following exception:

System.Reflection.Adds.UnresolvedAssemblyException occurred
Message=Type universe cannot resolve assembly: Microsoft.Windows.Design.Interaction, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a.
Source=Microsoft.VisualStudio.Shell.Design
StackTrace:
     at System.Reflection.Adds.AssemblyProxy.GetResolvedAssembly()
InnerException:

When pressing the "continue"-Button the exception occurs a second time.

Then I try to add the missing Assembly to my "problem"-project, but the exception occurs again (two times).

There is one Assembly of our own to this project referenced. In that project we use the above missing Assembly. Its for a WPF-Designer-Extension: a special Binding-Editor for our data structure.
Posted by Microsoft on 8/16/2010 at 12:13 PM
Thank you the response and project. When you type common: and don’t see the attached properties, does the IntelliSense just not display at all? This might be that an exception is happening while IntelliSense is trying to populate.

Would you please try these steps to see if there is an exception when bringing up IntelliSense?

1) Open Visual Studio and get the problem project ready to start IntelliSense on common:
2) Start another Visual Studio (I’ll refer to as VS2)
3) In VS2 select Tools->options->Debugging, and uncheck “Enable Just My Code (Managed only)”
4) In VS2 select Tools->options->Debugging->Symbols, make sure “Microsoft Symbol Server” is checked
5) In VS2 select Tools->Attach to process…, and select the problem projects process (devenv.exe) and click attach
6) In VS2 select Debug->Exceptions…, and check all the boxes
7) Back in the Visual Studio with the problematic project, bring up IntelliSense on common:
8) You should see the exception call stack in a window in VS2

If you do see exception(s), please send the call stack(s), and we can continue the investigation. If you aren't seeing an exception, at least that is another datapoint.

Thank you,
Visual Studio WPF and Silverlight Designer Team
Posted by anhee on 8/15/2010 at 10:11 PM
In fact I can't reproduce the problem within my simple Solution. I attached this Sample as ZIP.
Our "real" project is much more extensive than this sample. And we thought that summerizing the same namespaces within different libraries into URIs could be the problem. But it must have something to do with it.
In my ZIP:
MyControlLibrary and MySecondControlLibrary have same namespaces. In both AssemblyInfos the namespaces refer to the same URI (please have a look - it's difficult to explain :) )
MainWindow.Xaml only refer to these URIs. When then adding <bs:AnotherCustomControl then press space I get all the properties. Further when typing common: I get all the attached properties.
But in our huge project we don't get any attached property when typing common:
We don't see the mistake because in VS2008 with .NET 3.5 there was no problem with that issue! Do you have any idea?
Posted by Microsoft on 8/13/2010 at 11:50 AM
Thank you for your feedback. In the case where you cannot create a small sample project, would you please provide some directions on how the project is set up? For example are the <Assembly: …/> and xmlns:bs=“..” in the same assembly, or is one referencing the other, from the same solution or just as dll references?

Thank you,
Visual Studio WPF and Silverlight Designer Team
Posted by Microsoft on 8/11/2010 at 4:16 AM

Thanks for reporting the issue.
In order to fix the issue, we must first reproduce the issue in our labs. We are unable to reproduce the issue with the steps you provided.

Could you please attach a zipped project file to this feedback through our site to help us reproduce the issue?

Thanks again for your efforts and we look forward to hearing from you.
Visual Studio Product Team
Sign in to post a workaround.
File Name Submitted By Submitted On File Size  
IntelliSenseProblemWpfApplication.zip (restricted) 8/15/2010 -
Exception1.jpg (restricted) 8/18/2010 -
Exception2.jpg (restricted) 8/18/2010 -