Comments (4)
from pipelines.sockets.unofficial.
Thanks for the feedback. Since last night I've been playing around trying the newer csproj format (still targeting net472) and some other bits and peices, and now (after reverting) I can't even get back to the runtime error complaining about CompilerServices.Unsafe; it's stuck on complaining about System.Buffers.
I did earlier try the preview version of CompilerServices.Unsafe with no change. I've also tried manually adding references to the DLL's, with no change - but I can't manually add a reference to System.Buffers as VS complains "A reference to System.Buffers could not be added. This component is already automatically referenced by the build system."...
My knowledge is running up against a wall here. I'm using ILSpy to see what versions of DLL's are being placed in the build folder.. Which seems correct. My local machine GAC has no entries for System.Buffers, and fuslogvw won't show any binding logging information. But these last two points might be obsfucated by the emulator.
I've also tried just crossing my fingers and deploying to Azure, but it displayed the same issues running on Azure as well :/
For reference I also created a new .NET 4.7.2 console project and tested; everything works as expected (without needing to add any binding redirects or explicitly referencing System.IO.Pipelines, System.Buffers or System.Runtime.CompilerServices.Unsafe).
I believe this guy has run into the same issue: https://stackoverflow.com/questions/53429474/missing-assembly-binding-redirect-from-stackexchange-redis-2-0-513-package
from pipelines.sockets.unofficial.
After leaving the above comment I created a new Azure Worker Role project & Service (.net 4.7.2), added System.Buffers as a reference and ran GC.KeepAlive(typeof(System.Buffers.ArrayPool<byte>));
on start with no problems. I then pulled in the Pipelines.Sockets.Unofficial nuget package, created a rudimentary server and verified everything was working while debugging through the emulator.
No idea what was going wrong with my previous project structure - but I think you can consider this closed for now. Only differences are that the new project isn't using Package Reference style, it doesn't have a whole heap of legacy shit glued to it, and that I realised I was being stupid and inspecting DLL's / deleting bin/obj folders from the class library bin folder, not the Azure Cloud Service folder..
from pipelines.sockets.unofficial.
We experienced the same problem with the combination of an Azure Cloud Services Worker Role project + StackExchange.Redis
+ SDK-style CSPROJ/PackageReference
. Ultimately we got it working using Eric StJohn's script. Still not quite sure why it was copying the wrong DLL versions without it.
from pipelines.sockets.unofficial.
Related Issues (20)
- High CPU due to lock contention on _queue in DedicatedThreadPoolPipeScheduler.Schedule HOT 6
- Xamarin.Android crash with native exception on SocketConnection.Create HOT 2
- TLS/SSL support HOT 6
- How to find out when/if the reader/writer completed HOT 3
- Does this project only support .Net Core, instead of .Net Framework? HOT 8
- if the implementation of this library has relation ship for Rio(Winsock registered I/O extensions) in Windows? HOT 2
- Unable to wait for socket closure HOT 2
- Test: MutexSlim_ConcurrentLoadAsync_DisableContext - fails on my machine
- Test: ConnectTests.Connect - Fails on my machine HOT 1
- Test: BufferWriterDoesNotLeak also fails on my machine
- Set unsafeSuppressExecutionContextFlow on SocketAsyncEventArgs HOT 3
- Loopback fast path is deprected on Windows and can cause high cpu on Win Server 2019 HOT 2
- How do I flush synchronously? HOT 5
- Pump a pair of PipeReader/PipeWriter
- Investigating SemaphoreSlim on net6.0+ HOT 1
- Unnecessary _queue.Count check in DedicatedThreadPoolPipeScheduler.RunWorkLoop HOT 7
- netstandard2.1 DoReceive fails on Zero Length Reads on Mono HOT 1
- Thread Safety Violation Warnings found by InferSharp static analysis tool HOT 3
- Trim and AOT warnings in Delegates and PerTypeHelpers HOT 3
- Fix Thread Safety and other static code analysis issues reported by Infer#
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pipelines.sockets.unofficial.