Azure service bus "send" throws Operation is not valid due to the current state of the object
I'm not sure what has changed but all of a sudden I get an "InvalidOperationException - Operation is not valid due to the current state of the object". My code has definitely worked previously and I c...
- Modified
- 6 Sep at 21:22
"export 'default' (imported as 'Vue') was not found in 'vue'
I am a beginner with VueJs and this is my first App: ``` import { BootstrapVue } from 'bootstrap-vue' import { createApp } from 'vue' import App from './App.vue' const myApp = createApp(App) myAp...
- Modified
- 13 Apr at 08:43
Dynamically compile multiple files into assembly using Rosyln
I've recently seen using CSharpCodeProvider is deprecated in .NET Core 5. I was wondering if there was a smart way to combine into one dll from which I can load up using Rosyln instead. I'd hate to h...
- Modified
- 8 Sep at 19:36
.NET SDK's Not Installing Correctly
I am getting an issue with installing the .NET SDK, at first when I went into visual studio 2019 it said that I was missing the dotnet runtime sdk so I installed it like it asked and restarted my comp...
- Modified
- 11 Apr at 23:30
EF: Passing a table valued parameter to a user-defined function from C#
I have a user-defined function in SQL Server that accepts a TVP (table valued parameter) as parameter. In EF, how do I call such a function from C# ? I tried using the method `ObjectContext.CreateQuer...
- Modified
- 10 Sep at 03:51
github/git Checkout Returns 'error: invalid path' on Windows
When I attempt to checkout a repository from github I get the error: ``` error: invalid path 'configs/perl-modules/DIST.64/perl-HTML-Tree-1:5.03-1.el6.noarch.rpm' ``` I suspect the issue is that the ...
- Modified
- 4 Sep at 15:23
Using C# 9.0 records to build smart-enum-like/discriminated-union-like/sum-type-like data structure?
Playing around with the `record` type in C#, it looks like it could be quite useful to build discriminated-union-like data structures, and I'm just wondering if I'm missing some gotchas that I'll regr...
- Modified
- 8 Sep at 14:25
How to change .NET Framework to .NET Standard/Core in Visual Studio?
I have a solution in C# in Visual Studios. It was first created in .NET Framework. I want to convert the project to .NET Standard/Core. If I go into project --> properties I see the attached screen, w...
- Modified
- 3 Sep at 12:15
Implicit static constructor called before Main()
I have the following piece of codes. ``` class Program { static void Main(string[] args) { Enterprise.Initialize("Awesome Company"); // Assertion failed when constructor of 'Re...
- Modified
- 3 Sep at 08:1
Getting ProtocolException runtime error Blazor project
I'm developing a simple Blazor ASP.NET CORE Web Assembly project with Visual Studio Professional 2019 version 16.8.1 (the exception also happens in version 16.8.0). Sometimes when I start the applicat...
- Modified
- 14 Nov at 10:36
OrmLite will not allow '@@' in postgresql query
I am trying to add parameterised query using tsquery for postrgresql. The raw postgresql looks like: ``` and search @@ 'john' ::tsquery; ``` Any time I try to add it to a query like: ``` query.And("s...
- Modified
- 31 Aug at 21:42
Force string interpolation to always follow CultureInfo.InvariantCulture
For a given .NET assembly compiled from C# (latest version), I would like to force all the string interpolations to systematically use `CultureInfo.InvariantCulture` instead of using `CultureInfo.Curr...
- Modified
- 16 May at 18:26
Can't retrieve metadata from BlobItem
I'm struggling with fetching meta data from BlobItem when fetching Blobs from Azure storage. I'm definitely missing something but can't to figure it out what or where Here is simple block of code wher...
- Modified
- 7 May at 03:48
ServiceStack translates HttpError.Unauthorized from backend into ArgumentNullException on client ("Value cannot be null. (Parameter 'RefreshToken')")
I have an ASP.NET Core 3.1 application which serves as API to mobile client written written Xamarin Forms. An API has a TryAuthenticate method which expects userName and password to perform authentica...
- Modified
- 30 Aug at 15:0
'Serilog.Extensions.Hosting.DiagnosticContext' while attempting to activate 'Serilog.AspNetCore.RequestLoggingMiddleware'
When I run my program until Startup > Configure, it can create the log text file at C:\Serilog but it breaks at this line below: ``` app.UseEndpoints(endpoints => { endpoints.MapCo...
- Modified
- 29 Aug at 03:0
How does Visual Studio syntax-highlight strings in the Regex constructor?
Hi fellow programmers and nerds! When creating regular expressions Visual Studio, the IDE will highlight the string if it's preceded by a verbatim identifier (for example, `@"Some string`). This looks...
- Modified
- 28 Aug at 19:19
Unable to find package NETStandard.Library
I tried to add a new Class library(.Net Standard) in Visual studio 2019. But I get [this error message][1]: > Unable to find package NETStandard.Library. No packages exist with > this id in source...
- Modified
- 30 Apr at 17:50
How to get server side events (onmessage) in C# in Unity?
Im not experienced at all with SSE (or web development in general) so please forgive my ignorance on display. Im trying to get `onmessage` events from an SSE stream in C# in Unity. I need this to run ...
- Modified
- 27 Aug at 19:51
How to solve the Error MSB3644 in Visual Studio 2019 com. edition?
I have a dev machine with - - - I install net plataform sdk 5.0 to run Fluid UI Desktop apps (using C#). When i create and run a blank template project, i got the error MSB3644 > Error MSB3644 The re...
- Modified
- 13 Nov at 18:39
Non-nullable reference types' default values VS non-nullable value types' default values
This isn't my first question about nullable reference types as it's been few months I'm experiencing with it. But the more I'm experiencing it, the more I'm confused and the less I see the value added...
- Modified
- 26 Aug at 13:38
(node:9374) Warning: To load an ES module, set "type": "module"
I just started to learn React today. How do I get rid of that error message on my Console in the Terminal in Visual Studio. ``` (node: 9374)Warning: To load an ES module, set "type": "module" in the ...
- Modified
- 2 Mar at 08:53
How to use a .Net Standard 2.1 DLL in .Net Framework 4.8?
I have a project that is targeted to .Net Framework 4.8. Now, we need to use a 3rd party dll. The problem is that the dll is targeted to .Net Standard 2.1. Is there a way to use this dll in the .Net F...
Can't refresh materialized view with ormlite
I have updated ServiceStack to latest version on a project and now this line seems to be giving me issues: ``` _db.ExecuteNonQuery("REFRESH MATERIALIZED VIEW product_book;"); ``` It generates this er...
- Modified
- 26 Aug at 05:14
AsyncPageable<T> Get first result asynchronously
I have `AsyncPageable` and want to get only the first result from the list. MS docs suggests using `await foreach` Is there any efficient way to get only the first result? Something like `FirstOrDefau...
- Modified
- 6 May at 18:41
How to add 'request body' in serilog's output .net core?
I have a web API based on .net core 3.1. I'm using the SeriLog library as a logger. Here is my SeriLog Configuration. Serilog has been configured from 'appsettings.json'. [](https://i.stack.imgur.com/...
- Modified
- 25 Aug at 07:3