Monday, 26 November 2018

Debug .NET Core 2.1 Azure Function V2 with Visual Studio 2017

Issue:

When you create a new .NET Core 2.1 Azure Function in Visual Studio and then try to debug it, you see the console pop up and disappear then you get this error:

A fatal error has occurred and debugging needs to be terminated. For more details, please see the Microsoft Help and Support web site. HRESULT=0x8000ffff. ErrorCode=0x0.

image

Workaround:

I’m sure Microsoft will resolve this soon but what you have to do to get around it is to configure the project debug properties and configure Visual Studio with the Executable to run and give it the path of func.dll. See steps below.

1) Install the Azure Functions Core Tools:

You can find more info here.

2) Right click your project, click on Properties and go to the Debug tab

3) Set the Launch type to Executable 

4) Set Executable to

5) Set the Application arguments

You settings should look like this when done.

image

Let’s go ahead and try debug our function and we can see it’s working now:

image

Happy coding!

7 comments:

  1. Replies
    1. Great Article Cloud Computing Projects

      Networking Projects

      Final Year Projects for CSE

      JavaScript Training in Chennai

      JavaScript Training in Chennai

      The Angular Training covers a wide range of topics including Components, Angular Directives, Angular Services, Pipes, security fundamentals, Routing, and Angular programmability. The new Angular TRaining will lay the foundation you need to specialise in Single Page Application developer. Angular Training

      Delete
  2. It worked for me, But the moment I start calling the API endpoints, program crashes and stopping the debug session. Do you know why this is happening?

    ReplyDelete
  3. Wow! this is Amazing! Do you know your hidden name meaning ? Click here to find your hidden name meaning

    ReplyDelete
  4. Great set of tips from the master himself. Excellent ideas. Anyone wishing to take their blogging forward must read these tips. Thank you .Visual Studio 2020 Crack with Activation Key Full Free Download

    ReplyDelete
  5. Each loT engineer will concede that the Internet of Things (IoT) and implanted spaces present a wide cluster of choices as far as picking Operating Systems to help their plans. This compounded with key actual information that can be additionally prepared to offer organizations monstrous chances as far as definite understanding. Moreover, the constant joint effort among IoT and Yocto is set to extend the universe of a Yocto developer.IoT or broadly alluded to as "web of things" is a mixture of interconnected actual gadgets all throughout the planet that gather and shared information. This is made conceivable by modest quicker processors and remote associations. Subsequently, imbecilic gadgets would now be able to impart without human mediation combining the actual world with the advanced world.In the 1980s, there was a seething discussion on whether to consolidate sensors and insight to even the most essential items. Albeit significantly sooner this had been utilized in things like candy machines, the advancement was meticulously delayed because of the shortfall of technology.As innovation developed, modest processors turned out to be more open and it became simpler to associate different gadgets cost-viably. Among the underlying IoT applications were RFID labels, which got rid of the issue of gadgets conveying remotely. This alongside the reception of IPv6 implied that each gadget could now get an IP address which was a truly necessary advance for the scaling of IoT.In 1999, Kevin Ashton instituted the 'Web of Things' expression in spite of the fact that it didn't realize for basically one more decade whereby innovation had the option to coordinate with the vision.Fast forward to now, our homes and workplaces are spilling over with brilliant gadgets. This has changed pretty much every part of the manner in which we direct our business meaning we are forever stayed with IoT.Let's face it; we are living in a Linux world. The remainder of the processing scene in a real sense rests inside Linux all graciousness of containerization and the Internet of things hasn't been saved the fierceness by the same token. Actually like you, designers at Mobilunity are consistently quick to find the most recent patterns and openings in the open-source programming world. Since the approach of IoT, such applications have seen remarkable development and most imaginative organizations are coordinating them into their item lines.There are numerous assets like Yocto Project in the Linux world that presents any Yocto designer a commendable stage to test and discover.This is an open-source cooperation project that gives the engineer layouts and instruments to fabricate custom Linux-based frameworks for installed items independent of what equipment engineering they use.The project utilizes Poky as a kind of perspective form framework. This basically implies that once you download the Yocto Project, you are downloading devices, utilities, toolchain, and libraries, from which you can fabricate your default framework. Since the vast majority of them have an adjustable source code, they can be circulated to make special Yocto layers. Thus, the task isn't joined to a specific merchant or organization making it practically idiot proof from outer powers. The subsequent explanation is the inadequate OpenEmbedded documentation during the underlying stages which was a significant Catch 22 for engineers in attempting to set up how it operates.The solid collaboration among the Yocto Project partners guarantees there are customary and stable stores like clockwork, you can learn this here now.

    ReplyDelete