"The breakpoint will not currently be hit. A copy of file was found in dll file, but the current source code is different"
I keep getting this error saying there's a copy of the .cs file hence the break point will not get hit. I have tried cleaning solution, rebuilding , deleting the .pdb files in the obj and bin folder...
- Modified
- 14 Jun at 20:19
java.io.FileNotFoundException: /storage/emulated/0/New file.txt: open failed: EACCES (Permission denied)
I've been trying to encrypt files and write those files back on to the same place. But I got the error message saying `"java.io.FileNotFoundException: /storage/emulated/0/New file.txt: open failed: EA...
- Modified
- 14 Mar at 00:34
Async call to WCF client blocks subsequent synchronous calls
I'm seeing a problem with WCF when calling the generated Async methods on the client... If I await on an async method, and then subsequently call a non-async method on the same client, the blocking me...
- Modified
- 14 Jun at 17:43
Use of symbols '@', '&', '=' and '>' in custom directive's scope binding: AngularJS
I have read a lot about the use of these symbols in the implementation of custom directives in AngularJS but the concept is still not clear to me. What does it mean if I use one of the scope values in...
- Modified
- 28 Aug at 17:53
How can I limit ngFor repeat to some number of items in Angular?
My Code: ``` <li *ngFor="let item of list; let i=index" class="dropdown-item" (click)="onClick(item)"> <template [ngIf]="i<11">{{item.text}}</template> </li> ``` I am trying to have only 10 list ...
- Modified
- 7 May at 04:17
Cannot convert type 'Task<Derived>' to 'Task<Interface>'
I have the following function with a delegate parameter that accepts a type of one interface and returns a task of another. ``` public void Bar(Func<IMessage, Task<IResult>> func) { throw new Not...
- Modified
- 14 Jun at 18:42
This view is not constrained
I get the following error and I am using Android studio 2.2 Preview 3. I searched Google but couldn't find any resources. ``` Error: This view is not constrained, it only has design time positions, s...
Is it possible to create a DbContext Interface or abstract class and use it to inject different DbContext Objects?
I have a software product which database was created on SQLServer and the table and column names were defined by the dev team, the model was then imported to Visual Studio using Database First approac...
- Modified
- 19 Apr at 14:16
How to pass data to the previous page using PopAsync?
Consider the following scenario: 1. User is on some Page 1 2. He clicks button that moves him to Page 2 (calling await Navigation.PushAsync(new SomePage()); ) 3. After finishing certain action, he c...
- Modified
- 14 Jun at 16:29
Enumerable.Concat not working
Below is the code: ``` string[] values = Acode.Split(','); IEnumerable<Test> tst = null; foreach (string a in values) { if (tst== null) tst = entities.Test.Where(t=> (t.TCode == Convert....
SyntaxError: Unexpected token function - Async Await Nodejs
I was experimenting on using Node version with some of my code. Had plans to migrate most of the hyper-callback oriented codes to something that looks cleaner and maybe performs better. I have no cl...
- Modified
- 14 Feb at 01:34
Check if Field Equals Null in MongoDb C# Driver 2.0
I have a very simple query for mongo: ``` db.items.find( { MyFieldName: { $exists: true, $eq: null } } ); ``` Not that it needs to be explained, but it finds documents which have a `MyFieldName` an...
Enumerable.Empty<T>().AsQueryable(); This method supports the LINQ to Entities infrastructure and is not intended to be used directly from your code
I am getting runtime error > This method supports the LINQ to Entities infrastructure and is not intended to be used directly from your code.Description: An unhandled exception occurred during the...
- Modified
- 14 Jun at 15:9
How to manage the version number in Git?
Let's imagine the [blerp](http://xkcd.com/1692/) command line tool maintained on [git](/questions/tagged/git). This tool has the (hidden) `--version` option which returns its [version](https://en.wiki...
- Modified
- 2 Sep at 17:19
ASP.NET Core DependencyResolver
In ASP.NET MVC 5 is possible to obtain some dependency through `DependencyResolver.Current.GetService<T>()`. Is there something similar in ASP.NET Core?
- Modified
- 15 Mar at 02:59
Git - remote: Repository not found
I have SourceTree with local working copy. And all operations work good, I can simple fetch, push, pull and etc via SourceTree. I just needed to make force push which does not exist in SourceTree. I ...
- Modified
- 14 Jun at 13:31
Swashbuckle adding 200 OK response automatically to generated Swagger file
I am building swagger docs using Swashbuckle in my WebApi 2 project. I have the following definition of the method: ``` [HttpPost] [ResponseType(typeof(Reservation))] [Route("reservations")] [Swagge...
- Modified
- 14 Jun at 18:37
ServiceStack 4.0.60: How to modify/kill sessions if the default behaviour is to not persist them to cache?
In my existing application I am able to log out (destroy) sessions because I keep a list of session Id's associated to a user. This would allow me to provide functionality like "log out all other sess...
- Modified
- 20 Jun at 09:12
Check if a type belongs to a namespace without hardcoded strings
Is it possible to check if a type is part of a namespace without using harcoded strings? I'm trying to do something like: ``` Type type = typeof(System.Data.Constraint); if(type.Namespace == System....
- Modified
- 14 Jun at 12:31
async TryParse(...) pattern
There are a lot of common `bool TryXXX(out T result)` methods in the .NET BCL, the most popular being, probably, `int.TryParse(...)`. I would like to implement an `TryXXX()` method. Obviously, I can...
- Modified
- 15 Jun at 13:21
ServiceStack Serialize and Deserialize Dictionary with Objects
I have a very weird problem here pertaining to ServiceStack.Text's serializer. Suppose I have two classes, one called `Person` and another called `Address`. Person: ``` public class Person { p...
- Modified
- 14 Jun at 10:31
What is a complex type in entity framework and when to use it?
I have tried to read the msdn [article](https://msdn.microsoft.com/en-us/library/cc716799(v=vs.100).aspx) on complex types. But it does not explain when to use it. Also there is not a comprehensive ex...
- Modified
- 14 Jun at 07:56
Cookies in ASP.Net MVC 5
I am developing an application in which users are SignUp or SignIn by External Identity Providers like AAD, Google, WS-Federated Authentication etc. Now I want to create cookies on a user machine to l...
- Modified
- 2 Mar at 12:42
How do I resolve C# dependencies automatically?
I've been reading about Unity's dependency injection and I understand it's a thing and that it allows you to type a class to an interface. What I'm curious about is, do I HAVE to? In the below scena...
Ruby: What does the comment "frozen_string_literal: true" do?
This is the `rspec` binstub in my project directory. ``` #!/usr/bin/env ruby begin load File.expand_path("../spring", __FILE__) rescue LoadError end # frozen_string_literal: true # # This file was ...
- Modified
- 7 Mar at 23:2