Giter Site home page Giter Site logo

Comments (4)

mgravell avatar mgravell commented on September 21, 2024

from pipelines.sockets.unofficial.

jonorogers avatar jonorogers commented on September 21, 2024

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.

jonorogers avatar jonorogers commented on September 21, 2024

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.

Quppa avatar Quppa commented on September 21, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.