Categories
Mastering Development

Spring Rest Paypal Payment Integration (version 1)

I have a springboot rest application in the back end, and a react js for the front end. I do not have access in the reactjs side of the project. Now, I needed to integrate paypal (version 1) payment to the application, and this is my first time to use/integrate paypal in my application. Currently, […]

Categories
Mastering Development

System.InvalidOperationException: ExecuteReader requires an open and available Connection. The connection’s current state is open

Hi So I have an error appearing in logs, and some functionality is sometimes broken, it’s intermittent though. The full stack trace looks lie this: System.Data.Entity.Core.EntityCommandExecutionException: An error occurred while executing the command definition. See the inner exception for details. —> System.InvalidOperationException: ExecuteReader requires an open and available Connection. The connection’s current state is open. […]

Categories
Development

Database creation is failing, Why?

One of the application is creating a database for that we are passing domain user and password. For some user I am getting the below error, what this mean and how to solve it? Do I need to give sysadmin permission to user domain\userA? [Error] [2/3/2020 3:35:57 PM]: System.Management.Automation.CmdletInvocationException: Could not obtain information about Windows […]

Categories
Development

SignalR method work in azure and on 1 development machine but on another it results in “An asynchronous operation cannot be started at this time”

The following method works as a charm in our 3 azure environments and on the main developer’s machine, but on a new development machine it fails with the error: An asynchronous operation cannot be started at this time. Asynchronous operations may only be started within an asynchronous handler or module or during certain events in […]

Categories
ASP.NET Development

Web page in ASP.NET and Entity Framework giving error I am struggling to resolve

I am creating a website that will take data from a form and store it in a database. I am using C#, ASP.NET and Entity Framework. I plan to host this website on a local server, the website/server may get restarted and I need the code to not write over any data. using System; using […]

Categories
Development

The data area passed to a system call is too small when saving with C# EF6

I have a C#, Winforms EF6 application. Database is SQL Server Compact 4. In some computers (most work fine) I get the Exception “The data area passed to a system call is too small” when saving a simple object like in the code below public void Add(SimpleObject simpleObject) { try { using (var db = […]