Blog

Page 238 of my articles, tutorials, and thoughts

Latest Articles

Cover Image for Get url without querystring
c#

Get url without querystring

Published on September 2, 2023

# How to Get a URL Without Query String 🌐 Are you dealing with a URL that has a query string and you just want to get the clean URL without the query string? 🤔 Don't worry, we're here to help you out! In this guide, we'll provide you with easy solutions

Cover Image for How to Publish Web with msbuild?

How to Publish Web with msbuild?

Published on September 2, 2023

📢 How to Publish Web with msbuild? 🚀 So, you've built a sweet Web Application Project in Visual Studio 2010 and now you want to publish it using msbuild on your TeamCity build server? No worries, I got you covered! 🎉 You might have tried using the "Pu

Cover Image for Why use HttpClient for Synchronous Connection
c#

Why use HttpClient for Synchronous Connection

Published on September 2, 2023

**🤔 Why use HttpClient for Synchronous Connection?** If you're building a class library to interact with an API and find yourself pondering over the use of `HttpClient` for synchronous connectivity, you may wonder if there are any real benefits compared

Cover Image for IIS7 deployment - duplicate "system.web.extensions/scripting/scriptResourceHandler" section

IIS7 deployment - duplicate "system.web.extensions/scripting/scriptResourceHandler" section

Published on September 2, 2023

📝 **IIS7 Deployment: Duplicate 'system.web.extensions/scripting/scriptResourceHandler' Section** So you're trying to deploy a .NET 3.5 website on the default app pool in IIS7, but you're encountering an error that says, "There is a duplicate 'system.web.

Cover Image for Best way to run scheduled tasks
windows

Best way to run scheduled tasks

Published on September 2, 2023

```markdown # The Best Way to Run Scheduled Tasks: Simplify and Streamline Your Process! Are you tired of dealing with error-prone and difficult-to-maintain scheduled task execution in your ASP.NET environment? Look no further! In this blog post, we will

Cover Image for Convert JSON String to JSON Object c#
c#jsonparsingstring

Convert JSON String to JSON Object c#

Published on September 2, 2023

# Converting JSON String to JSON Object in C#: A Complete Guide 😎 So you have a JSON string stored in your database and you want to convert it into a JSON object or `JObject` in C#. You've tried casting the string directly to `JObject`, but it didn't wor

Cover Image for How to return a file (FileContentResult) in ASP.NET WebAPI
c#

How to return a file (FileContentResult) in ASP.NET WebAPI

Published on September 2, 2023

# How to Return a File in ASP.NET WebAPI 📄 Have you ever struggled with returning a file in ASP.NET WebAPI using the `FileContentResult`? If so, you're not alone! Many developers have found it challenging to adapt the MVC controller approach to an ApiCon

Cover Image for What is the claims in ASP .NET Identity

What is the claims in ASP .NET Identity

Published on September 2, 2023

🔒💻 Demystifying Claims in ASP.NET Identity Core 💡🧩 Hey there, tech enthusiasts! Have you ever wondered what the deal is with claims in ASP.NET Identity Core? 🤔 Don't worry, we've got your back! In this post, we'll break down common issues and provide

Cover Image for Serializing a list to JSON
c#json

Serializing a list to JSON

Published on September 2, 2023

# Serializing a List to JSON: Simplifying your Code and Avoiding Errors 👨‍💻🔤🔃 Have you ever found yourself manually serializing a list to JSON in your code? If so, you might have encountered some challenges, like writing complex code and encountering

Cover Image for How can I add an ampersand for a value in a ASP.net/C# app config file value
c#

How can I add an ampersand for a value in a ASP.net/C# app config file value

Published on September 2, 2023

**🎉 Adding an Ampersand in ASP.net/C# App Config File Value: A Simple Solution! 🎉** So, you're working on a cool ASP.net/C# app and you're facing the dreaded ampersand problem in your config file value, huh? Don't worry, I've got you covered! Let's dive