No mapping specified for instances of the EntitySet and AssociationSet in the EntityContainer
When you move your Visual Studio solution to another workstation you may encounter the following error message: System.Data.Entity.Core.MappingException was unhandled by user code HResult=-2146232032 Message=Schema specified is not valid. Errors: : error…
Save the key file password in Visual Studio
When you have already set up the project signing of the C# application for ClickOnce deployment, and move the solution to another workstation you may get the following error message when you build the solution: Severity Code Description Project File Line…
How to rename a TeamCity agent
It is important to keep the TeamCity agent names unique. If you launch a TeamCity agent with a name that is already used by another agent that is connected to the TeamCity server, the new agent will not show up in the Unauthorized agent list. To change…
DevOps Engineering part 7. – Launching production instances in the cloud
In the previous parts of this tutorial we have launched instances (servers) in the cloud, but those were created by Test Kitchen, running on our workstation. Those instances are as good as they can be, but the cookbook did not reside on the Chef server.…
DevOps Engineering part 6. – Infrastructure as code
Terraform If you use Terraform in the corporate environment your company most likely has multiple AWS accounts. One for pre-production, one for production. To be able to work in multiple AWS accounts, add those keys to the credentials file…
Enable user to import projects in TeamCity
It is not enough to belong to the “System Administrator” group to be able to import projects from backup in TeamCity. The user has to be in the “System administrator” role for the “Root project”. To enable the user to…
DevOps Engineering part 5. – Create an enterprise cookbook
In this exercise we will create a Chef cookbook for a corporation. It will be robust and include all the necessary elements to be used in a large enterprise. If your company already has established standards, as you progress with this tutorial, copy the…
DevOps Engineering part 4. – Connect to the Chef server
Find a Chef Server To work in a corporate environment, your organization needs access to a Chef server. To learn Chef and test your cookbooks for free, you can create an account on the “hosted” Chef server, maintained by the Chef company. The…
Last characters of a string in Ruby
To get the last characters of a string in Ruby, use the following instructions. If the string is shorter than the selected number of characters, the entire string is returned. a = '12345' b = a[-3..-1] || a puts b Returns 345
Permission denied message when you try to upload your new repository to GitHub from a Windows computer
If you work on a Windows computer and create a new GitHub repository, you can copy the code from the GitHub page to set the remote address and push the existing code to the GitHub server. You may get the following error message: $ git push -u origin…