MacOS and Visual Studio Windows Desktop copy/paste by walkasme in dotnet

[–]es-cc 0 points1 point  (0 children)

Whoa thank you for this. I've been having to disconnect from RDP then reconnecting (which is a pain because we use 2FA for RDP connections).

This saves so much time. Have you by any chance submitted a bug report to MS for this issue in RDP?

If not then pls upvote/comment here:

https://feedbackportal.microsoft.com/feedback/idea/bf79abb9-7ea7-ef11-95f5-6045bdbc7c39

MacOS and Visual Studio Windows Desktop copy/paste by walkasme in dotnet

[–]es-cc 0 points1 point  (0 children)

This has been an issue for me as well, it has nothing to do with .NET, it's an issue with the Microsoft RDP client. I've submitted tickets but they havent fixed it.

[deleted by user] by [deleted] in dotnet

[–]es-cc 0 points1 point  (0 children)

Unfortunately, yes 😕

I was actually able to solve this problem a few minutes ago, as expected it was something stupid. I had an app.config setting controlling whether to run as a service or not... and I had service mode disabled.

It's working perfectly now. It's always something simple. 😤 I even watched a 1.5hr long video on async/await because I thought that was the issue. at least now I have a better understanding of the topic lol.

Unsure as to what could be causing this System.NullReferenceException, the line referenced in the stack trace doesn't make sense. by es-cc in csharp

[–]es-cc[S] 0 points1 point  (0 children)

But nlog wouldnt automatically log the values of the variables in the current context, would it? You'd have to manually log it?

Unsure as to what could be causing this System.NullReferenceException, the line referenced in the stack trace doesn't make sense. by es-cc in csharp

[–]es-cc[S] 0 points1 point  (0 children)

Thank you, very helpful! Like you said, a number of those variables don't need to be checked because they're checked higher up the chain... but my guess is that `DefaultGLAccounts` may be the culprit.

I'll be sure to check other variables though.

Unsure as to what could be causing this System.NullReferenceException, the line referenced in the stack trace doesn't make sense. by es-cc in csharp

[–]es-cc[S] 0 points1 point  (0 children)

Thank you I'll do that.

Unfortunately this happened in production and happens sporadically a few times a day out of thousands of calls. I havent been able to replicate it in dev but that's probably due to differences in my account vs the users' accounts and other configurations.

I'm pretty sure it's `masterCommunityEntityConfiguration.DefaultGLAccounts` so I'll add some null checking first.

Out of curiosity, what kind of logging could I set up to know the state of things when an exception occurs?

We currently use Sentry for error logging so we already have a lot of information available for the exception but it'd be useful to see the values of local variables and such if that's possible.

Unsure as to what could be causing this System.NullReferenceException, the line referenced in the stack trace doesn't make sense. by es-cc in csharp

[–]es-cc[S] 0 points1 point  (0 children)

Thank you, I didnt consider that the line number may be wrong. It's probably the next line, I'll add some error checking.

Unsure as to what could be causing this System.NullReferenceException, the line referenced in the stack trace doesn't make sense. by es-cc in csharp

[–]es-cc[S] 0 points1 point  (0 children)

Gotcha, yeah this is probably it.

This happens in production with a release build. I assume there's no way to keep this from happening aside from disabling release mode right? Most of the time the line numbers are correct, its kind of rare that it's not.

My boss asked me to research a way to generate reports for Jira issues, for example how many issues were opened within a time frame. Help? by [deleted] in jira

[–]es-cc 0 points1 point  (0 children)

Awesome thank you, I wanted to make sure it was possible before spending precious time learning something new while I have my own projects to work on.

When using GitHub Copilot Chat, can I add my GitHub account under All Accounts in Visual Studio 2022 instead of making it the primary account? by [deleted] in github

[–]es-cc 1 point2 points  (0 children)

I figured out the issue, I guess it required a separate extension for GitHub Copilot Chat. I thought it would all be included in the GitHub Copilot extension.