Tag: MVC5
-
Unable to Access RDS Database from Elastic Beanstalk Application
Hey everyone, I ran into a bit of an issue today where I was unable to access my RDS SQL Express instance from my .NET Elastic Beanstalk instance. I was receiving the following error: The server was not found or was not accessible. The solution turned out to be fairly simply thanks to this StackOverflow…
-
Could not find part of the path ‘C:xlib’ – Adding new Web API Project
Hey everyone, I ran into the following error when I tried to add a new Web API project in Visual Studio Express 2015 for Web: Could not find part of the path ‘C:xlib’ The workaround for this was to temporarily unbind the project from TFS: File > Source Control > Advanced > Change Source Control…
-
Culture Info Codes
Hey everyone, Just posting a link to this list of culture info codes etc. I was looking for the en-AU one but had a bit of trouble tracking it down. Language Culture Name Display Name Culture Code ISO 639x Value af-ZA Afrikaans – South Africa 0x0436 AFK sq-AL Albanian – Albania 0x041C SQI ar-DZ Arabic…
-
Cannot parse *.config file – AdaptivePayments SDK (PayPal)
Hey everyone, Just working on a small project that uses PayPal’s C# AdaptivePayments SDK. I hit an error while attempting to make the following payment: var service = new AdaptivePaymentsService(); payResponse = service.Pay(payRequest); “Cannot parse *.config file. Ensure you have configured the ‘paypal’ section correctly.” at PayPal.Manager.ConfigManager..ctor() at PayPal.Manager.ConfigManager.get_Instance() at PayPal.BasePayPalService..ctor() at PayPal.AdaptivePayments.AdaptivePaymentsService..ctor() It turns…
-
TF30063: You are not authorized to access asxproject – TFS Online/Visual Studio
Hey everyone, I ran into the following issue while trying to install the HTML Agility Pack via Nuget today: TF30063: You are not authorized to access asxproject… This fixed it for me: – Go to “Team Explorer” – Up the very top click on the “Connect to Team Projects” button (power cable looking icon next…
-
The installer has encountered an unexpected error installing this package.This may indicate a problem with this package.The error code is 29506 – SQL Server Management Studio
Hey everyone, I ran into the following error while trying to install Sql Server Management Studio on Windows 8: The installer has encountered an unexpected error installing this package.This may indicate a problem with this package.The error code is 29506 To fix it, all you need to do is run the exe with administrative privileges.
-
No Entity Framework provider found for the ADO.NET provider with invariant name ‘System.Data.SqlClient’ – MVC5
Hey everyone, Just an error I came across while trying to use a new solution project: No Entity Framework provider found for the ADO.NET provider with invariant name ‘System.Data.SqlClient’ The fix for this was simply to run the following command in the package manager console: PM> Install-Package EntityFramework Thanks to StackOverflow for the details: http://stackoverflow.com/a/18642452/522859
-
Change Default MVC5 Password Complexity Requirements – Passwords must have at least one non letter or digit character. Passwords must have at least one digit (‘0’-‘9’). Passwords must have at least one uppercase (‘A’-‘Z’)
Hey everyone, I’ve started on a new MVC5 project and came across the following error message while trying to register a new user: Passwords must have at least one non letter or digit character. Passwords must have at least one digit (‘0’-‘9’). Passwords must have at least one uppercase (‘A’-‘Z’) While having a secure password…
-
View Generated SQL in Entity Framework (EF)
Hey everyone, Just a quick post on how to view the generated sql in entity framework. To start with, just add the following line to your db context constructor: public class TestDbContext : DbContext { public TestDbContext() : base(“name=TestDbContext”) { this.Database.Log = s => System.Diagnostics.Debug.WriteLine(s); //This line } … With this line added, you should…
-
Duplicate type name within an assembly. – Entity FrameWork (EF)
Hey everyone, I ran into this error message while trying to debug a project today: “Duplicate type name within an assembly.” The workaround to this was actually pretty weird. Remove all of your breakpoints that appear before this exception and place one after it instead. That’s it! A bit of a weird issue, but…