Quantcast
Channel: Visual COBOL - Forum - Recent Threads
Viewing all articles
Browse latest Browse all 4356

RE: Error with Visual Studio 12 with Visual Cobol

$
0
0

Hi Chris,

I just install the Visual Studio 12 that comes with the Visual Cobol installation.

Yes I have both product in my machine: VC for Visual Studio 12 and VC for Eclipse. I installed the Eclipse version when the problem appeared with Visual Studio.

I tried to open WINBook sample. The solution explorer shows all the content but when I click to open BookException.cbl an exception error (attached) is shown.

ActivityLog.xml show this error:

<entry>

   <record>302</record>

   <time>2014/02/28 21:54:43.727</time>

   <type>Error</type>

   <source>Editor or Editor Extension</source>

   <description>System.TypeInitializationException: The type initializer for 'MicroFocus.COBOL.Services.CobolServicesFactory' threw an exception. ---> System.TypeLoadException: Method 'Message' in type 'MicroFocus.COBOL.Services.Implementations.ParseHarvester' from assembly 'MicroFocus.COBOL.Services, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0412c5e0b2aaa8f0' does not have an implementation.&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly.GetExportedTypes(RuntimeAssembly assembly, ObjectHandleOnStack retTypes)&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly.GetExportedTypes()&#x000D;&#x000A;   at MicroFocus.COBOL.Runtime.Common.ReflectionUtils.GetExportedTypes(Assembly assembly)&#x000D;&#x000A;   at MicroFocus.COBOL.Runtime.Common.LoadedAssembly..ctor(Assembly assembly)&#x000D;&#x000A;   at MicroFocus.COBOL.Runtime.Common.Global.RegisterAssembly(Assembly assembly)&#x000D;&#x000A;   at MicroFocus.COBOL.Program.Control.Init(RuntimeTypeHandle rth)&#x000D;&#x000A;   at MicroFocus.COBOL.Services.CobolServicesFactory..cctor()&#x000D;&#x000A;   --- End of inner exception stack trace ---&#x000D;&#x000A;   at MicroFocus.COBOL.Services.CobolServicesFactory.CreateServices(IProject project)&#x000D;&#x000A;   at MicroFocus.COBOL.Editor.ProjectManagement.CblPrjProject..ctor(IVsHierarchy hier)&#x000D;&#x000A;   at MicroFocus.COBOL.Editor.ProjectManagement.ProjectManager.ConstructProjectRealization(IVsHierarchy item, UInt32 itemid)&#x000D;&#x000A;   at MicroFocus.COBOL.Editor.ProjectManagement.ProjectManager.ConstructProjectMap(IVsHierarchy hier, UInt32 itemid)&#x000D;&#x000A;   at MicroFocus.COBOL.Editor.ProjectManagement.ProjectManager.GetProjectForHierarchy(IVsHierarchy hier, UInt32 itemid)&#x000D;&#x000A;   at MicroFocus.COBOL.Editor.ProjectManagement.ProjectManager.GetProjectForBuffer(IVsTextLines buffer)&#x000D;&#x000A;   at MicroFocus.COBOL.Editor.Extensions.WpfEditorExtensions.GetProject(ITextView textView)&#x000D;&#x000A;   at MicroFocus.COBOL.Editor.Mef.SmartTags.ImplementsSmartTaggerProvider.CreateTagger[T](ITextView textView, ITextBuffer buffer)&#x000D;&#x000A;   at Microsoft.VisualStudio.Text.Tagging.Implementation.TagAggregator`1.GatherTaggers(ITextBuffer textBuffer)</description>

 </entry>

 <entry>

   <record>303</record>

   <time>2014/02/28 21:54:44.038</time>

   <type>Error</type>

   <source>Editor or Editor Extension</source>

   <description>System.TypeInitializationException: The type initializer for 'MicroFocus.COBOL.Services.CobolServicesFactory' threw an exception. ---> System.TypeLoadException: Method 'Message' in type 'MicroFocus.COBOL.Services.Implementations.ParseHarvester' from assembly 'MicroFocus.COBOL.Services, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0412c5e0b2aaa8f0' does not have an implementation.&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly.GetExportedTypes(RuntimeAssembly assembly, ObjectHandleOnStack retTypes)&#x000D;&#x000A;   at System.Reflection.RuntimeAssembly.GetExportedTypes()&#x000D;&#x000A;   at MicroFocus.COBOL.Runtime.Common.ReflectionUtils.GetExportedTypes(Assembly assembly)&#x000D;&#x000A;   at MicroFocus.COBOL.Runtime.Common.LoadedAssembly..ctor(Assembly assembly)&#x000D;&#x000A;   at MicroFocus.COBOL.Runtime.Common.Global.RegisterAssembly(Assembly assembly)&#x000D;&#x000A;   at MicroFocus.COBOL.Program.Control.Init(RuntimeTypeHandle rth)&#x000D;&#x000A;   at MicroFocus.COBOL.Services.CobolServicesFactory..cctor()&#x000D;&#x000A;   --- End of inner exception stack trace ---&#x000D;&#x000A;   at MicroFocus.COBOL.Services.CobolServicesFactory.CreateServices(IProject project)&#x000D;&#x000A;   at MicroFocus.COBOL.Editor.ProjectManagement.CblPrjProject..ctor(IVsHierarchy hier)&#x000D;&#x000A;   at MicroFocus.COBOL.Editor.ProjectManagement.ProjectManager.ConstructProjectRealization(IVsHierarchy item, UInt32 itemid)&#x000D;&#x000A;   at MicroFocus.COBOL.Editor.ProjectManagement.ProjectManager.ConstructProjectMap(IVsHierarchy hier, UInt32 itemid)&#x000D;&#x000A;   at MicroFocus.COBOL.Editor.ProjectManagement.ProjectManager.GetProjectForHierarchy(IVsHierarchy hier, UInt32 itemid)&#x000D;&#x000A;   at MicroFocus.COBOL.Editor.ProjectManagement.ProjectManager.GetProjectForBuffer(IVsTextLines buffer)&#x000D;&#x000A;   at MicroFocus.COBOL.Editor.Extensions.WpfEditorExtensions.GetProject(ITextView textView)&#x000D;&#x000A;   at MicroFocus.COBOL.Editor.Mef.SmartTags.NamespaceSmartTag.NamespaceSmartTaggerProvider.CreateTagger[T](ITextView textView, ITextBuffer buffer)&#x000D;&#x000A;   at Microsoft.VisualStudio.Text.Tagging.Implementation.TagAggregator`1.GatherTaggers(ITextBuffer textBuffer)</description>

 </entry>

Regards,

Juan Urraburu


Viewing all articles
Browse latest Browse all 4356

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>