Current3DContext does not have implemetation

Help
Anonymous
2010-06-07
2013-06-12
  • Anonymous - 2010-06-07

    Hi all,

    I've just downloaded your code from HG repo.
    Complitation works fine but when I press F5 I get this error:

    "System.TypeLoadException: Method 'get_Current3DContext' in type 'Naro.Infrastructure.Library.Services.ContextService' from assembly 'Infrastructure.Library, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' does not have an implementation.\r\n   at AppShell.Entry.AfterShellCreated()\r\n   at Microsoft.Practices.CompositeUI.CabShellApplication`2.OnRootWorkItemInitialized()\r\n   at Microsoft.Practices.CompositeUI.BuilderStrategies.RootWorkItemInitializationStrategy.BuildUp(IBuilderContext context, Type typeToBuild, Object existing, String idToBuild)\r\n   at Microsoft.Practices.ObjectBuilder.BuilderStrategy.BuildUp(IBuilderContext context, Type typeToBuild, Object existing, String idToBuild)\r\n   at Microsoft.Practices.CompositeUI.BuilderStrategies.CommandStrategy.BuildUp(IBuilderContext context, Type t, Object existing, String id)\r\n   at Microsoft.Practices.ObjectBuilder.BuilderStrategy.BuildUp(IBuilderContext context, Type typeToBuild, Object existing, String idToBuild)\r\n   at Microsoft.Practices.C
    ompositeUI.BuilderStrategies.EventBrokerStrategy.BuildUp(IBuilderContext context, Type t, Object existing, String id)\r\n   at Microsoft.Practices.ObjectBuilder.BuilderStrategy.BuildUp(IBuilderContext context, Type typeToBuild, Object existing, String idToBuild)\r\n   at Microsoft.Practices.ObjectBuilder.MethodExecutionStrategy.BuildUp(IBuilderContext context, Type typeToBuild, Object existing, String idToBuild)\r\n   at Microsoft.Practices.ObjectBuilder.BuilderStrategy.BuildUp(IBuilderContext context, Type typeToBuild, Object existing, String idToBuild)\r\n   at Microsoft.Practices.ObjectBuilder.PropertySetterStrategy.BuildUp(IBuilderContext context, Type typeToBuild, Object existing, String idToBuild)\r\n   at Microsoft.Practices.ObjectBuilder.BuilderStrategy.BuildUp(IBuilderContext context, Type typeToBuild, Object existing, String idToBuild)\r\n   at Microsoft.Practices.ObjectBuilder.CreationStrategy.BuildUp(IBuilderContext context, Type typeToBuild, Object existing, String idToBuild)\r\n   at Microsoft.Pr
    actices.ObjectBuilder.BuilderStrategy.BuildUp(IBuilderContext context, Type typeToBuild, Object existing, String idToBuild)\r\n   at Microsoft.Practices.ObjectBuilder.ReflectionStrategy`1.BuildUp(IBuilderContext context, Type typeToBuild, Object existing, String idToBuild)\r\n   at Microsoft.Practices.ObjectBuilder.BuilderStrategy.BuildUp(IBuilderContext context, Type typeToBuild, Object existing, String idToBuild)\r\n   at Microsoft.Practices.ObjectBuilder.ReflectionStrategy`1.BuildUp(IBuilderContext context, Type typeToBuild, Object existing, String idToBuild)\r\n   at Microsoft.Practices.ObjectBuilder.BuilderStrategy.BuildUp(IBuilderContext context, Type typeToBuild, Object existing, String idToBuild)\r\n   at Microsoft.Practices.ObjectBuilder.ReflectionStrategy`1.BuildUp(IBuilderContext context, Type typeToBuild, Object existing, String idToBuild)\r\n   at Microsoft.Practices.ObjectBuilder.BuilderStrategy.BuildUp(IBuilderContext context, Type typeToBuild, Object existing, String idToBuild)\r\n   at Microso
    ft.Practices.ObjectBuilder.SingletonStrategy.BuildUp(IBuilderContext context, Type typeToBuild, Object existing, String idToBuild)\r\n   at Microsoft.Practices.ObjectBuilder.BuilderStrategy.BuildUp(IBuilderContext context, Type typeToBuild, Object existing, String idToBuild)\r\n   at Microsoft.Practices.ObjectBuilder.TypeMappingStrategy.BuildUp(IBuilderContext context, Type t, Object existing, String id)\r\n   at Microsoft.Practices.ObjectBuilder.BuilderBase`1.DoBuildUp(IReadWriteLocator locator, Type typeToBuild, String idToBuild, Object existing, PolicyList transientPolicies)\r\n   at Microsoft.Practices.ObjectBuilder.BuilderBase`1.BuildUp(IReadWriteLocator locator, Type typeToBuild, String idToBuild, Object existing, PolicyList transientPolicies)\r\n   at Microsoft.Practices.CompositeUI.WorkItem.BuildUp()\r\n   at Microsoft.Practices.CompositeUI.CabApplication`1.Run()\r\n   at AppShell.Entry.Main() in d:\\Samples\\narocad\\Source\\AppShell\\AppShell\\Entry.cs:line 62"

    Could you pls so kind to help me?
    Thanks
    makka

     
  • bxtrx

    bxtrx - 2010-06-07

    Hello Makka,

    You get this error because you didn't install OpenCascade: http://www.opencascade.org/getocc/download/loadocc/
    NaroCad uses for 3D modeling the OpenCascade engine.

    Best regards,
    Mihai

     
  • Anonymous - 2010-06-08

    Hello Mihai,

    Many thanks for your prompt reply.
    I'm looking at NaroCAD as a great sample for OOC

    This means that an application based on OCC doesn't support XCOPY deployment ?

    Thnks
    m.

     
  • bxtrx

    bxtrx - 2010-06-08

    Hello Makka,

    We made an installer where we deploy the OCC dll files in the Naro application folder. When starting the exe we pass the OCC environment variables to the Naro exe file. You can see a sample in sources on devel/Lib/Install/
    It is possible to make xcopy deployment.

    Best regards,
    Mihai

     
  • Anonymous - 2010-06-09

    Hello Mihai,

    I found what I need in StarterUtils.RunNaroCad :)
    Thanks
    makka

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks