Scaling the Real-time Web with ASP.NET SignalR

SignalR made the real-time web incredibly simple for .NET programmers, but we’re not standing still. Version 1.1 brought improved performance and scale-out support via SQL Server, Redis, and Windows Azure Service Bus. But there’s more to SignalR scale-out than just this. What are the best strategies based on your application type? Version 2.0 continues the…

Continue reading

Handle the unhandled exception in Window Service C#

Sometimes window service crash due to unhandled exception occur in the code. Which cause service to be on halt without any error log and we are unable to restart or stop the service in the windows. In .net framework 4.5, Microsoft provides a method to handle the exception in the async event handler. Simply write…

Continue reading

Direct Access Raspberry Pi Shell and Desktop on Laptop/PC without installing anything on the Raspberry Pi OS or connecting it to a Display Unit

Update 29th Dec, 2016: If you’re using the latest PIXEL Image, please make sure you enable the SSH Server by placing a a file named as ssh in the boot directory before trying any of the following methods. The SSH Server on boot has been disabled in the latest Raspbian image as a security measure. Read more about…

Continue reading

ExecuteReader ExecuteNonQuery ExecuteScalar Examples in Asp.NET when to use what to use in C#.NET

Differences between ExecuteNonQuery, ExecuteReader and ExecuteScalar in asp.net If you want to know about each sqlcommand object check below articles ExecuteNonQuery ExecuteNonQuery method will return number of rows effected with INSERT, DELETE or UPDATE operations. Example: protected void btnSubmit_Click(object sender, EventArgs e) { using (SqlConnection con=new SqlConnection(“Data Source=SureshDasari;Integrated Security=true;Initial Catalog=MySampleDB”)) { con.Open(); SqlCommand cmd =…

Continue reading