question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG]System.Net.Sockets.SocketException in netcoreapp TargetFramework

See original GitHub issue

Describe the bug Simple console application targeting net48 works without problem, retargeting to netcoreapp3.0 cause SocketException Exception or Stack Trace No connection could be made because the target machine actively refused it

To Reproduce Change TargetFramework from net48 to necoreapp3.0

Code Snippet

    class Program
    {
        static void Main(string[] args)
        {
            var serviceBusConnectionString = "yourConnectionString"
           var queue = "yourqueue";
            var messageReceiver = new MessageReceiver(serviceBusConnectionString, queue);
            messageReceiver.ServiceBusConnection.TransportType = Microsoft.Azure.ServiceBus.TransportType.AmqpWebSockets;
            var message = messageReceiver.ReceiveAsync().Result;

        }
    }

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Setup (please complete the following information):

  • OS: [Windows 10]
  • IDE : [Visual Studio 2019]
  • Version 4.0.0

Additional context Add any other context about the problem here.

Information Checklist Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report

  • Bug Description Added
  • Repro Steps Added
  • Setup information Added

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:33 (11 by maintainers)

github_iconTop GitHub Comments

3reactions
davidshcommented, Oct 9, 2019

@davidsh , I see that PR dotnet/corefx#41692 issue is marked with 5.0 milestone.

Changes are made first to master branch (5.0). I suspect that after that change is validated, then @stephentoub will create a release/3.0 PR for evaluation for servicing release of .NET Core 3.0.

1reaction
apraovjrcommented, Oct 24, 2019

@AndreiDegtiarev The fix would be released in .net-core 3.0.2 and 3.1 version

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to change target framework of a .net core project from ...
1 Answer 1 ... Edit the core.csproj file and change the TargetFramework property to 3.1. and save the file. Rebuild the solution, if...
Read more >
NETSDK1138: The target framework is out of support
NETSDK1138 indicates that your project targets a version of the framework that is out of support. The full error message is similar to...
Read more >
The TargetFramework value was not recognized. - .NET CLI
The SDK tries to parse the values provided in the project file for <TargetFramework> or <TargetFrameworks> into a well known value.
Read more >
Target Framework .Net Core 3.0 not available
I've just updated Visual studio to 15.9.2. I've been working on a project which was using .Net core 3 preview framework.
Read more >
Target Multiple Frameworks in .NET Core 2.x App
To target multiple frameworks, change <TargetFramework> to plural <TargetFrameworks> and include monikers for different frameworks you want to target separated ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found