9
Every time I create any project Xamarin in the Visual Studio 2017 the following error is displayed when running the application:
Erro: ValueFactory tentou acessar a propriedade Value dessa instância.
Why is this error happening? What should I do to fix?
You create the project and not modified anything, and the error occurs, is that it? Or you tried to make some modification in the code?
– perozzo
Without a limited context the possibilities are very wide. If it is the case to give error in a naked project is likely to be a problem with the project templates, some error or omission in the installation or a package upgrade problem or Xamarin.... it’s hard to say
– Diego Rafael Souza
@Perozzo, this occurs when creating a new project and running it without making changes.
– Leonardo
@Diegorafaelsouza the installation is correct because it worked previously. I noticed that this problem occurs when I am already with an open project and wish to create a new... If I close VS and open the last project created is compiled normally...
– Leonardo
You may have identified a bug in Visual Studio then, since you have identified what exactly to do to generate the error.
– perozzo
And if you open the 'blank' visual studio, create a new project and run it works normal?
– Diego Rafael Souza
Opening VS and creating a new blank project runs. Now if I close this project and create a new blank project gives this error while running.
– Leonardo
I’m with @Perozzo. I think it’s the same VS bug. There are other similar ones: for example, if you open two solutions in different instances of VS it does not perform correctly, the caches of
bin
andobj
, the needs of clean/rebuild and so on. I think there is a bit of environment in this too, it is not in all computers that happens... difficult to diagnose even =/ but I do not think it is a programming error in which we can help, so ,even having given +1, I am signaling the question to the attention of the reviewers.– Diego Rafael Souza
I voted for the question. In addition to the bugs that @Diegorafaelsouza mentioned, if you open Android Studio at the same time as Visual Studio, in addition to no longer identifying the physical device connected by USB, strange build errors occur. Could take advantage that discovered another bug and report to VS.
– perozzo
I will report, probably more people are going through this problem... who knows in a next update these errors are fixed
– Leonardo