I've two solutions. The first one from the internet (working NMF sln) that I copy into the second one, which is mine. I did almost nothing except of copy 6 file and change on the naming.
var repository = new ModelRepository();
var transitionGraph = repository.Resolve("c:\\W.......er4_3.xmi").RootElements[0] as TransitionGraph;
In the original solution, there is no problem, but in my case, I get this exception:
System.InvalidOperationException was unhandled
HResult=-2146233079
Message=The type TransitionGraph in namespace http://transitiongraph/1.0 could not be resolved.
Source=NMF.Serialization
StackTrace:
at NMF.Serialization.XmlSerializer.GetTypeInfo(String ns, String localName)
at NMF.Serialization.XmlSerializer.GetRootElementTypeInfo(XmlReader reader)
at NMF.Serialization.XmlSerializer.CreateRoot(XmlReader reader)
at NMF.Models.Repository.Serialization.ModelSerializer.Deserialize(Stream source, Uri modelUri, IModelRepository repository, Boolean addToRepository)
at NMF.Models.Repository.ModelRepository.Resolve(Uri uri, String hintPath, Boolean loadOnDemand)
at NMF.Models.Repository.ModelRepository.Resolve(String path)
at TTC2017.StateElimination.ModelHandler.CheckModel() in c:\WD_PaMMTE\PaMMTE_Managed\Call_PaMMTE\MyFiles\ModelHandler.cs:line 21
at TTC2017.StateElimination.Program.Main(String[] args) in c:\WD_PaMMTE\PaMMTE_Managed\Call_PaMMTE\Program.cs:line 39
at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
InnerException:
I've two solutions. The first one from the internet (working NMF sln) that I copy into the second one, which is mine. I did almost nothing except of copy 6 file and change on the naming.
In the original solution, there is no problem, but in my case, I get this exception:
Thanks, Tamás