Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic component uses Microsoft.Windows.Design 3.5 (Read 5221 times)
springy
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 76
Joined: Jan 25th, 2010
component uses Microsoft.Windows.Design 3.5
Feb 22nd, 2010 at 9:40am
Print Post  
which is a Visual-Studio 2008 only DLL.

I have an app which fails on close on all machines which have no VS2008 installed. The problem gets triggered by an serializer which seems to check some code points which don't get invoked in normal situations:

Code
Select All
System.IO.FileNotFoundException was unhandled by user code
  Message=Die Datei oder Assembly "Microsoft.Windows.Design, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" oder eine Abhängigkeit davon wurde nicht gefunden. Das System kann die angegebene Datei nicht finden.
  Source=mscorlib
  FileName=Microsoft.Windows.Design, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
  FusionLog==== Zustandsinformationen vor Bindung ===
LOG: Benutzer = usn-Mobil\user
LOG: DisplayName = Microsoft.Windows.Design, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
 (Fully-specified)
LOG: Appbase = file:///C:/Users/user/Desktop/MyApp/MyCompany.MyApp.Cockpit/bin/Debug/
LOG: Ursprünglicher PrivatePath = NULL
Aufruf von Assembly : MindFusion.Scheduling.Wpf, Version=2.1.0.0, Culture=neutral, PublicKeyToken=d12631580350466b.
===
LOG: Diese Bindung startet im default-Load-Kontext.
LOG: Die Anwendungskonfigurationsdatei wird verwendet: C:\Users\user\Desktop\MyApp\MyCompany.MyApp.Cockpit\bin\Debug\MyApp-Cockpit.vshost.exe.config
LOG: Die Computerkonfigurationsdatei von C:\Windows\Microsoft.NET\Framework\v2.0.50727\config\machine.config wird verwendet.
LOG: Verweis nach der Richtlinie: Microsoft.Windows.Design, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
LOG: Download von neuem URL file:///C:/Users/user/Desktop/MyApp/MyCompany.MyApp.Cockpit/bin/Debug/Microsoft.Windows.Design.DLL.
LOG: Download von neuem URL file:///C:/Users/user/Desktop/MyApp/MyCompany.MyApp.Cockpit/bin/Debug/Microsoft.Windows.Design/Microsoft.Windows.Design.DLL.
LOG: Download von neuem URL file:///C:/Users/user/Desktop/MyApp/MyCompany.MyApp.Cockpit/bin/Debug/Microsoft.Windows.Design.EXE.
LOG: Download von neuem URL file:///C:/Users/user/Desktop/MyApp/MyCompany.MyApp.Cockpit/bin/Debug/Microsoft.Windows.Design/Microsoft.Windows.Design.EXE. 



But nevertheless a end user assembly should not reference any design-time-only assemblies at all.

[Stacktrace in next msg]
  

/\/\arkus.
Back to top
 
IP Logged
 
springy
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 76
Joined: Jan 25th, 2010
Re: component uses Microsoft.Windows.Design 3.5
Reply #1 - Feb 22nd, 2010 at 9:41am
Print Post  
Code
Select All
  StackTrace:
	 bei System.ModuleHandle.ResolveType(Int32 typeToken, RuntimeTypeHandle* typeInstArgs, Int32 typeInstCount, RuntimeTypeHandle* methodInstArgs, Int32 methodInstCount)
	 bei System.ModuleHandle.ResolveTypeHandle(Int32 typeToken, RuntimeTypeHandle[] typeInstantiationContext, RuntimeTypeHandle[] methodInstantiationContext)
	 bei System.Reflection.Module.ResolveType(Int32 metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments)
	 bei System.Reflection.CustomAttribute.FilterCustomAttributeRecord(CustomAttributeRecord caRecord, MetadataImport scope, Assembly& lastAptcaOkAssembly, Module decoratedModule, MetadataToken decoratedToken, RuntimeType attributeFilterType, Boolean mustBeInheritable, Object[] attributes, IList derivedAttributes, RuntimeType& attributeType, RuntimeMethodHandle& ctor, Boolean& ctorHasParameters, Boolean& isVarArg)
	 bei System.Reflection.CustomAttribute.GetCustomAttributes(Module decoratedModule, Int32 decoratedMetadataToken, Int32 pcaCount, RuntimeType attributeFilterType, Boolean mustBeInheritable, IList derivedAttributes)
	 bei System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeType type, RuntimeType caType, Boolean inherit)
	 bei System.RuntimeType.GetCustomAttributes(Type attributeType, Boolean inherit)
	 bei System.ComponentModel.TypeDescriptor.CheckDefaultProvider(Type type)
	 bei System.ComponentModel.TypeDescriptor.NodeFor(Type type, Boolean createDelegator)
	 bei System.ComponentModel.TypeDescriptor.GetReflectionType(Type type)
	 bei MS.Internal.ComponentModel.DependencyObjectPropertyDescriptor.GetAttachedPropertyMethod(DependencyProperty dp)
	 bei MS.Internal.ComponentModel.DependencyPropertyKind.get_IsAttached()
	 bei MS.Internal.ComponentModel.APCustomTypeDescriptor.GetProperties(Attribute[] attributes)
	 bei MS.Internal.ComponentModel.APCustomTypeDescriptor.GetProperties()
	 bei System.ComponentModel.TypeDescriptor.TypeDescriptionNode.DefaultExtendedTypeDescriptor.System.ComponentModel.ICustomTypeDescriptor.GetProperties()
	 bei System.ComponentModel.TypeDescriptor.GetPropertiesImpl(Object component, Attribute[] attributes, Boolean noCustomTypeDesc, Boolean noAttributes)
	 bei System.ComponentModel.TypeDescriptor.GetProperties(Object component)
	 bei System.Windows.Markup.Primitives.ElementMarkupObject.<GetProperties>d__0.MoveNext()
	 bei System.Windows.Markup.Primitives.MarkupWriter.RecordNamespaces(Scope scope, MarkupObject item, IValueSerializerContext context, Boolean lastWasString)
	 bei System.Windows.Markup.Primitives.MarkupWriter.RecordNamespaces(Scope scope, MarkupObject item, IValueSerializerContext context, Boolean lastWasString)
	 bei System.Windows.Markup.Primitives.MarkupWriter.RecordNamespaces(Scope scope, MarkupObject item, IValueSerializerContext context, Boolean lastWasString)
	 bei System.Windows.Markup.Primitives.MarkupWriter.WriteItem(MarkupObject item)
	 bei System.Windows.Markup.Primitives.MarkupWriter.SaveAsXml(XmlWriter writer, MarkupObject item)
	 bei System.Windows.Markup.Primitives.MarkupWriter.SaveAsXml(XmlWriter writer, Object instance)
	 bei System.Windows.Markup.XamlWriter.Save(Object obj, XmlWriter xmlWriter)
	 bei ActiproSoftware.Windows.Serialization.XamlSerializer.SaveToXmlWriter(XmlWriter writer, Object value)
	 bei ActiproSoftware.Windows.Serialization.XamlSerializer.SaveToString(Object value)
	 bei ActiproSoftware.Windows.Controls.Ribbon.Customization.RibbonControlPathList.a()
	 bei ActiproSoftware.Windows.Controls.Ribbon.Ribbon.SerializeQuickAccessToolBarItems()
	 bei MyCompany.MyApp.Cockpit.MainWindow.OnClosing(CancelEventArgs e) in C:\Users\user\Desktop\MyApp\MyCompany.MyApp.Cockpit\MainWindow.xaml.cs:Zeile 94.
	 bei System.Windows.Window.WmClose()
 

  

/\/\arkus.
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: component uses Microsoft.Windows.Design 3.5
Reply #2 - Feb 22nd, 2010 at 10:32am
Print Post  
This is something we overlooked. I will look into it and get back to you.

Regards,
Meppy
  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: component uses Microsoft.Windows.Design 3.5
Reply #3 - Feb 22nd, 2010 at 12:50pm
Print Post  
An updated version of the control can be downloaded from the following link:

https://mindfusion.eu/_pln_trial/MindFusion.Scheduling.Wpf.2.1g.zip

The control no longer references any design-time assemblies.

Thanks again for your feedback.

Regards,
Meppy
  
Back to top
 
IP Logged
 
springy
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 76
Joined: Jan 25th, 2010
Re: component uses Microsoft.Windows.Design 3.5
Reply #4 - Feb 22nd, 2010 at 4:22pm
Print Post  
Thanks again for solving problems that fast  Cheesy
  

/\/\arkus.
Back to top
 
IP Logged
 
kennyui
YaBB Newbies
*
Offline



Posts: 1
Joined: Feb 26th, 2010
Re: component uses Microsoft.Windows.Design 3.5
Reply #5 - Feb 26th, 2010 at 7:01pm
Print Post  
Also - just hit the same problem and decided to check the forum before panicking. Great support. Thank you!
  
Back to top
AIM  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint