Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

System.IO.FileNotFoundException #3008

Closed
jim1019 opened this issue Apr 18, 2019 · 4 comments
Closed

System.IO.FileNotFoundException #3008

jim1019 opened this issue Apr 18, 2019 · 4 comments

Comments

@jim1019
Copy link

jim1019 commented Apr 18, 2019

System.IO.FileNotFoundException: δ�ܼ����ļ�����򼯡�netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51��������ijһ�������ϵͳ�Ҳ���ָ�����ļ���
�ļ���:��netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51��
�� OmniSharp.Stdio.Driver.Program.<>c__DisplayClass0_1.

b__1()
�� OmniSharp.HostHelpers.Start(Func`1 action)

����: ���򼯰���־��¼���رա�
Ҫ���ó��򼯰�ʧ����־��¼���뽫ע���ֵ [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD)����Ϊ 1��
ע��: ����һЩ����򼯰�ʧ����־��¼������������ʧ��
Ҫ�رմ˹��ܣ����Ƴ�ע���ֵ [HKLM\Software\Microsoft\Fusion!EnableLog]��

@arundavidshelly
Copy link

System.IO.FileNotFoundException: Could not load file or assembly 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The system cannot find the file specified.
File name: 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'
at OmniSharp.Stdio.Driver.Program.<>c__DisplayClass0_1.

b__1()
at OmniSharp.HostHelpers.Start(Func`1 action)

@SirIntruder
Copy link

SirIntruder commented Apr 18, 2019

This appears to happen only with 19 extension version

System.NullReferenceException: Object reference not set to an instance of an object.
   at Roslyn.Utilities.EventMap.AddEventHandler[TEventHandler](String eventName, TEventHandler eventHandler)
   at lambda_method(Closure , LifetimeContext , CompositionOperation )
   at System.Composition.Hosting.Core.LifetimeContext.GetOrCreate(Int32 sharingId, CompositionOperation operation, CompositeActivator creator)
   at System.Composition.Hosting.Providers.ImportMany.ImportManyExportDescriptorProvider.<>c__DisplayClass3_2`1.<GetImportManyDescriptor>b__4(ExportDescriptor e)
   at System.Linq.Enumerable.WhereSelectArrayIterator`2.MoveNext()
   at System.Linq.Buffer`1..ctor(IEnumerable`1 source)
   at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
   at lambda_method(Closure , LifetimeContext , CompositionOperation )
   at System.Composition.Hosting.Core.LifetimeContext.GetOrCreate(Int32 sharingId, CompositionOperation operation, CompositeActivator creator)
   at System.Composition.Hosting.Providers.ImportMany.ImportManyExportDescriptorProvider.<>c__DisplayClass3_2`1.<GetImportManyDescriptor>b__4(ExportDescriptor e)
   at System.Linq.Enumerable.WhereSelectArrayIterator`2.MoveNext()
   at System.Linq.Buffer`1..ctor(IEnumerable`1 source)
   at System.Linq.Enumerable.ToArray[TSource](IEnumerable`1 source)
   at System.Composition.Hosting.Core.CompositionOperation.Run(LifetimeContext outermostLifetimeContext, CompositeActivator compositionRootActivator)
   at System.Composition.Hosting.Core.LifetimeContext.TryGetExport(CompositionContract contract, Object& export)
   at System.Composition.CompositionContext.GetExport(CompositionContract contract)
   at System.Composition.CompositionContext.GetExports(Type exportType, String contractName)
   at System.Composition.CompositionContext.GetExports[TExport](String contractName)
   at OmniSharp.Stdio.Host.Initialize()
   at OmniSharp.Stdio.Host..ctor(TextReader input, ISharedTextWriter writer, IOmniSharpEnvironment environment, IServiceProvider serviceProvider, CompositionHostBuilder compositionHostBuilder, ILoggerFactory loggerFactory, CancellationTokenSource cancellationTokenSource)
   at OmniSharp.Stdio.Driver.Program.<>c__DisplayClass0_1.<Main>b__1()
   at OmniSharp.CommandLineApplication.<>c__DisplayClass11_0.<OnExecute>b__0()
   at OmniSharp.CommandLineApplication.Execute(IEnumerable`1 args)
   at OmniSharp.Stdio.Driver.Program.<>c__DisplayClass0_0.<Main>b__0()
   at OmniSharp.HostHelpers.Start(Func`1 action)

@jwerra
Copy link

jwerra commented Apr 18, 2019

Same issue reported here #3004

@filipw
Copy link
Contributor

filipw commented Apr 23, 2019

This was resolved by OmniSharp/omnisharp-roslyn#1469
Until the next release, the workaround is to install .NET 4.7.2 or use the method described here #3004 (comment) which will prompt automatically for .NET 4.7.2 installation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants