Comments (3)
Hello,
I added every SharpDX library that is included with ATF to the Circuit Editor sample app, and I'm not getting that exception. It's legal and normal to reference the same dll from multiple projects.
Do you have the setting "break when an exception is thrown" set for all exceptions? This is in Debug -> Exceptions. I'm wondering if you have accidentally defined a method named ResourceUtil.Register(Type)
. That static Resources class uses reflection to search for that method, but it will throw an exception if it finds two of them. You would see an InvalidOperationException being raised in this case, but if you don't have break-on-exceptions turned on, you might just see the TypeInitializationException thrown afterwards, whose InnerException property is the original InvalidOperationException.
If that's not it, maybe you could set a breakpoint in Sce.Atf.Resources, in the static constructor, and see how far execution gets (if at all).
Please let me know how it goes and if you can report more info.
--Ron
from atf.
I am also getting the same error, by including the SharpDX 3.1.1 library without any references (in code) to it.
System.ComponentModel.Composition Warning: 1 : The ComposablePartDefinition 'Sce.Atf.Applications.StandardEditCommands' has been rejected. The composition remains unchanged. The changes were rejected because of the following error(s): The composition produced a single composition error. The root cause is provided below. Review the CompositionException.Errors property for more detailed information.
- No exports were found that match the constraint:
ContractName Sce.Atf.Applications.IContextRegistry
RequiredTypeIdentity Sce.Atf.Applications.IContextRegistryResulting in: Cannot set import 'Sce.Atf.Applications.StandardEditCommands..ctor (Parameter="contextRegistry", ContractName="Sce.Atf.Applications.IContextRegistry")' on part 'Sce.Atf.Applications.StandardEditCommands'.
Element: Sce.Atf.Applications.StandardEditCommands..ctor (Parameter="contextRegistry", ContractName="Sce.Atf.Applications.IContextRegistry") --> Sce.Atf.Applications.StandardEditCommands --> TypeCatalog (Types='Sce.Atf.Applications.SettingsService, Sce.Atf.Applications.StatusService, ...').System.ComponentModel.Composition Warning: 1 : The ComposablePartDefinition 'Sce.Atf.Applications.StandardEditHistoryCommands' has been rejected. The composition remains unchanged. The changes were rejected because of the following error(s): The composition produced a single composition error. The root cause is provided below. Review the CompositionException.Errors property for more detailed information.
- No exports were found that match the constraint:
ContractName Sce.Atf.Applications.IContextRegistry
RequiredTypeIdentity Sce.Atf.Applications.IContextRegistryResulting in: Cannot set import 'Sce.Atf.Applications.StandardEditHistoryCommands..ctor (Parameter="contextRegistry", ContractName="Sce.Atf.Applications.IContextRegistry")' on part 'Sce.Atf.Applications.StandardEditHistoryCommands'.
Element: Sce.Atf.Applications.StandardEditHistoryCommands..ctor (Parameter="contextRegistry", ContractName="Sce.Atf.Applications.IContextRegistry") --> Sce.Atf.Applications.StandardEditHistoryCommands --> TypeCatalog (Types='Sce.Atf.Applications.SettingsService, Sce.Atf.Applications.StatusService, ...').System.ComponentModel.Composition Warning: 1 : The ComposablePartDefinition 'Sce.Atf.Applications.StandardSelectionCommands' has been rejected. The composition remains unchanged. The changes were rejected because of the following error(s): The composition produced a single composition error. The root cause is provided below. Review the CompositionException.Errors property for more detailed information.
- No exports were found that match the constraint:
ContractName Sce.Atf.Applications.IContextRegistry
RequiredTypeIdentity Sce.Atf.Applications.IContextRegistryResulting in: Cannot set import 'Sce.Atf.Applications.StandardSelectionCommands..ctor (Parameter="contextRegistry", ContractName="Sce.Atf.Applications.IContextRegistry")' on part 'Sce.Atf.Applications.StandardSelectionCommands'.
Element: Sce.Atf.Applications.StandardSelectionCommands..ctor (Parameter="contextRegistry", ContractName="Sce.Atf.Applications.IContextRegistry") --> Sce.Atf.Applications.StandardSelectionCommands --> TypeCatalog (Types='Sce.Atf.Applications.SettingsService, Sce.Atf.Applications.StatusService, ...').
I was wondering if there was any resolution to this? Throws on Atf.Core.vs2010/ATF/Framework/ATF.Core/MefUtil.cs line 60.
from atf.
Hi,
Currently ATF is in maintenance mode, no more work will be done expect major bug fixes.
Thanks
Alan
from atf.
Related Issues (20)
- Saving projects with multiple files HOT 3
- Save button does not update in DomTreeEditor HOT 2
- Use other DLL in MEF, throw exception when load the assemblies. HOT 2
- Syntax Editor license question HOT 2
- Analysis of ATF source code by PVS-Studio static code analyzer HOT 2
- GlobalHistoryContext with multiple EditingContext on same DomNode HOT 7
- PropertyGrid does not update when using keyboard to select ListView item HOT 2
- Show/Hide properties on the PropertyGrid HOT 5
- <xs:all> nodes ignored by DomGen.exe HOT 2
- element minOccurs and maxOccurs are ignored by HOT 2
- Panel visiblity status is not reflected in the "Window" menu HOT 4
- Issue with Validatior/TransactionContext system HOT 1
- Redirect PropertyGrid data HOT 3
- Add "GeneratedCode" attribute to Schema class generated by DomGen
- Consider adding a strong name to DLLs. HOT 2
- DomNodeAdapter to TreeControl.Node
- Update SharpDX HOT 1
- isReadOnly parameter cannot by dynamic with defined editor HOT 3
- UnregisterMenu & Readding Menus HOT 2
- VirtualizingWrapPanel Error HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from atf.