Mar 29, 2017 Exception Details: System.NullReferenceException: Object reference no set to an instance of an object. Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Object reference not set to an instance of an object. System.NullReferenceException When running a Coded UI-test on my local machine. The test runs fine on other machines, both virtual and physical ones with different Visual Studio and IE-versions. I've got Visual Studio 2013 Update 2, and IE11 installed.
![Object Object](/uploads/1/2/5/5/125543074/829948893.jpg)
. Tips about commenting your code, making it more readable in order to help others developers to understand it. Object naming practices, creating a pattern to name variables, services, methods.
Handling errors to not show sensitive data to your users. Security tricks to protect your data. Reading/writing data without breaking your architecture.I am planning to write more about common mistakes and to share tips to improve code quality.
If you have any specific topic that you would like to read here, please write it below in the comments section.
Where would you like to come with your friend's comment: Don't let better be the enemy of good.?If you want to contribute with some suggestion of your own as being closer to my problem, I thank you again.Friend, I've posted my questions, comments and my code here for help, re-reading your supposed suggestions, I can not find your solution at any time in your posts presented here, if possible and if you still want to contribute your tip, Could I please reviewmy content, which was elaborated with great care and did not detract from its contribution? Your lines do not look like the doubt I'm having in your two comments.Obrigado.Atenciosamente,RtaVix. RtaVixI can not find your solution at any time in your posts presented hereThe solution is right there in my first replyYou need to initialize vi at some point so that there is an object that you can reference.I can't write the code for you. You haven't given the definition of theComprovanteInfoclass so I don't know what constructors are available to you. I don't know the full business situation so I can't know which of the constructors would be the best to use.You don't need a better program.
You just need one that works.