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.TypeInitializationException from fusillade in win7 / VS 2015 environment #19

Closed
haamaanaa opened this issue May 6, 2016 · 3 comments
Labels

Comments

@haamaanaa
Copy link

haamaanaa commented May 6, 2016

Same code breaks in Win10 /VS 2015 environment as well. On some machines (whether win 7 or 10), code wokrs fine.

Seems that similar reference issues have been earlier as well:
System.IO.FileNotFoundException: Could not load file or assembly 'Splat, Version=0.0.0.0

error.txt

@haamaanaa
Copy link
Author

ari [15:41]
Error truck: at Fusillade.NetCache.get_OperationQueue()
at Fusillade.RateLimitedHttpMessageHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken) in c:\Users\paul\code\paulcbetts\Fusillade\Fusillade\RateLimitedHttpMessageHandler.cs:line 95
at System.Net.Http.HttpMessageInvoker.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
at System.Net.Http.HttpClient.SendAsync(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationToken cancellationToken)
at Refit.RequestBuilderImplementation.<>c__DisplayClass2e1.<<buildCancellableTaskFuncForMethod>b__2d>d__30.MoveNext() in y:\code\paulcbetts\refit\Refit\RequestBuilderImplementation.cs:line 314 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter1.GetResult()

@haamaanaa
Copy link
Author

problem has something to do with Microsoft.CodeDom.Providers.DotNetCompilerPlatform

<system.codedom> <compilers> <compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:6 /nowarn:1659;1699;1701" /> <compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.VBCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:14 /nowarn:41008 /define:_MYTYPE=\&quot;Web\&quot; /optionInfer+" /> </compilers> </system.codedom>

@haamaanaa
Copy link
Author

Problem solved!

Error was caused by missing Splat.dll file in ASP.NET web project's bin folder

"System.TypeInitializationException: The type initializer for 'Fusillade.NetCache' threw an exception. --->
System.IO.FileNotFoundException: Could not load file or assembly
'Splat, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies.
The system cannot find the file specified."

@lock lock bot added the outdated label Jun 24, 2019
@lock lock bot locked and limited conversation to collaborators Jun 24, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants