Asp.net core Identity successful login redirecting back to login page
I have a problem where the asp.net identity framework is redirecting the user back to the login page after they have logged in successfully. This is using the standard Asp.net Core Identity. It is t...
- Modified
- 21 Apr at 12:36
Servicestack - get metadata programmatically
Is there a way to get the metadata of a website built using Servicestack framework programmatically? We're looking to build an app that will look for a Servicestack website hosted on 2 different envir...
- Modified
- 30 Jul at 19:14
How can hide the opened child windows from taskbar (WPF)?
How can hide the opened child windows from taskbar when I am showing and hiding the child windows even when I hide the child window the hidden window still appear in the taskbar WPF? Thanks in advance...
Breakpoints not being hit in JetBrains Rider?
I am trying to set a breakpoint in JetBrains Rider, but the debugger isn't breaking. I know for sure the application should reach the code I'm trying to break on, as changing string literals appears ...
- Modified
- 31 Jul at 08:10
ServiceStack.OrmLite: Reading back a TimeSpan using Untyped API results in InvalidCastException
I let ServiceStack OrmLite (5.1.1) create the table, and persist the object, that contains a TimeSpan: ``` // ... public TimeSpan _Jobs_VehicleNotificationTime { get; set; } // ... ``` When I try t...
- Modified
- 31 Jul at 19:58
How to find a description of a function/interface/etc
The following is possibly two questions. When trying to avoid asking questions here at Stackoverflow I guess each and everyone of us do the following: searches need to consider a number of questions t...
- Modified
- 30 Jul at 13:31
ServiceStack.OrmLite: Can custom naming of index be done in code?
I happen to have a few objects that has a long name, and creating the table as it is setup now creates a table with a long name. When OrmLite tries to create an index on one column, it fails with: > ...
- Modified
- 1 May at 17:59
Why does this interface have to be explicitly implemented?
Coming back to C# after a few years so I'm a little rusty. Came across this (simplified) code and it's leaving my head scratching. Why do you have to explicitly implement the `IDataItem.Children` pr...
addressSanitizer: heap-buffer-overflow on address
I am at the very beginning of learning C. I am trying to write a function to open a file, read a `BUFFER_SIZE`, store the content in an array, then track the character `'\n'` (because I want to get e...
- Modified
- 18 Sep at 20:38
WPF responsive design (Liquid layout)
I want to make my WPF application fully responsive application, I read a lot of posts about this topic, but unfortunately all of these postes does not helped my to accomplish what I want. What I want ...
- Modified
- 19 Sep at 08:38
ServiceStack.OrmLite. CreateTable method lacks option to define COLLATION?
I found out that the tables created followed the `collation_database`/`collation_server` variables in MySql. I was confused for a while why "Ö" and "O" was interpreted the same way, but when I realize...
- Modified
- 19 Dec at 23:58
Creating Custom AuthorizeAttribute in Web API (.Net Framework)
I'm using OAuth2.0 Owin (password grant) in my WebAPI.My initial token Response is like below ``` { "access_token": "_ramSlQYasdsRTWEWew.....................", "token_type": "bearer", "ex...
- Modified
- 28 Jul at 05:40
Build failed. Check the Output window for more details - C# publishing fails but build succeeds
I am trying to publish a web application on Visual Studio 2017. The build succeeds but the publishing fails. When it fails an error dialog comes up which says "Publish has encountered an error. Build ...
- Modified
- 22 Oct at 20:23
Can not stop async TCP sever Windows service
I have a TCP server windows service developed in .net 4.0 with asynchronous server sockets. It works, but about 90 % of the time I simply can not stop it: after pressing stop button in Windows Servic...
- Modified
- 7 Aug at 09:53
ServiceStack.OrmLite: NullReferenceException in ServiceStack.Text.AssemblyUtils.ToTypeString(Type type)
As I continue testing out OrmLite, I ran into another problem, this one appears to happen in the ServiceStack.Text.AssemblyUtils: ``` System.NullReferenceException: Object reference not set to an inst...
- Modified
- 24 Dec at 09:50
View models in Servicestack
The term is mentioned in the Servicestack documentation and here and there in questions/answers at Stackoverflow. Is this referring to viewmodels á la dotNET MVC all the time ? Is this always used...
- Modified
- 27 Jul at 12:20
How to use IApplicationBuilder and IServiceCollection when downgrading from .NET Core 2.1 to .NET 4.7.1?
I had to change my project from .NET Core 2.1 to .NET 4.7.1 and I fixed almost all errors except the following that are still eluding me - > 'IApplicationBuilder' does not contain a definition for 'U...
- Modified
- 27 Jul at 08:28
NuGet, Packages.config, .csproj and references
I have a question so that I can better understand `NuGet` packages, `packages.config` and the `.csproj` file. It is my understanding that the setting in the NuGet Package Manager >> General for defaul...
Where to validate AutoMapper Configuration in ASP.Net Core application?
Building an ASP.Net Core 2.0 web application and can't figure out where to validate the AutoMapper configuration. In my `ConfigureServices()` method, I have ``` services.AddAutoMapper(); ``` And I...
- Modified
- 7 Oct at 19:21
Why can the C# compiler "see" static properties, but not instance methods, of a class in a DLL that is not referenced?
The premise of my question, in plain english: - `Foo``Bar`- - - `FooBar` Consider the following sample: ``` class Program { static void Main(string[] args) { Foo foo = Foo.Instance;...
- Modified
- 26 Jul at 21:6
Test Exceptions in Xunit ()
I am trying to write Xunit test on this method: ``` public async Task<IEnumerable<T>> RunSQLQueryAsync(string queryString) { try { //do something } catch (DocumentClientExcept...
- Modified
- 26 Jul at 19:59
Flutter : Vertically center column
How to vertically center a column in Flutter? I have used widget "new Center". I have used widget "new Center", but it does not vertically center my column ? Any ideas would be helpful.... ``` @overr...
- Modified
- 24 May at 19:48
How can I pass values to xUnit tests that accept a nullable decimal?
One of my unit tests has this signature: ``` public void FooWithFilter(string fooId, decimal? amount) ``` When I test it with null, it works: ``` [InlineData("123", null)] ``` But if I use an ac...
caching by inbound url not working because of timestamp querystrings
My web guys are appending a timestamp to the end of their service calls to help overcome local javascript caching. So a typical querystring for a service call ends like this. ``` ../LvGmReferencePeri...
- Modified
- 26 Jul at 17:38