Blogs Hub

by AskGif | Aug 05, 2019 | Category :coding

Implementing .NET Core Logging Levels and Categories

Implementing .NET Core Logging Levels and Categories

In .NET Core. One thing that I never implemented was granular control of logging specific levels by category. It turns out that it’s pretty easy to do, though. Logging in .NET Core passes LogLevel and Category whenever something is to be logged. Category corresponds, afaik, to namespaces. Y

read more...

by AskGif | Jan 04, 2019 | Category :coding

How can I log .net events and exceptions in google analytics?

How can I log .net events and exceptions in google analytics?

How to log .net events and exceptions in google analytics? I am having a requirement of logging the events as well as exceptions in my dot net application. I tried so many ways but none is working in dot net. I want to implement the same way am using in my javascript application.&nbsp;</p

read more...

by AskGif | Dec 24, 2018 | Category :coding

What is the difference between .NET Core and .NET Standard Class Library project types?

What is the difference between .NET Core and .NET Standard Class Library project types?

Question: In Visual Studio, there are at least 3 different types of class library you can create: &nbsp; Class Library (.NET Framework) Class Library (.NET Standard) Class Library (.NET Core) While the first is what we've been using for years, a maj

read more...

by AskGif | Nov 22, 2018 | Category :coding

How to Install dotnet core on Ubuntu 16.04.5 ?

How to Install dotnet core on Ubuntu 16.04.5 ?

Before installing .NET, you'll need to register the Microsoft key, register the product repository, and install required dependencies. This only needs to be done once per machine. Open a command prompt and run the following commands: <pre class="language-markup"><code>wget -qO- https

read more...

by AskGif | Nov 06, 2018 | Category :coding

I'm getting Error “Server Application Unavailable” in IIS

I'm getting Error “Server Application Unavailable” in IIS

The web service is throwing the following error when I browse from IIS: Server Application Unavailable The web application you are attempting to access on this web server is currently unavailable. Please hit the "Refresh" button in your web browser to retry your request. A

read more...

by AskGif | Nov 06, 2018 | Category :coding

Upload an image on Amazon S3 using C# in .net MVC 4.5 / Core 2.1?

Upload an image on Amazon S3 using C# in .net MVC 4.5 / Core 2.1?

Query: I want to upload and manage images on my Amazon S3 server. is there any c# plugin already available for the same? I'm using .net MVC 4.5 framework. I tried from the below link Upload an Object Using the AWS SDK for .NET <a title="http://docs.aws.amazon.com/AmazonS3/

read more...

by AskGif | Oct 26, 2018 | Category :coding

Xamarin.forms shared project gives error while creation

Xamarin.forms shared project gives error while creation

Whenever I try to create a new xamarin.forms project it is giving error. The Error Details is as below, Xamarin.Forms.1.3.1.6296: Could not install package 'Xamarin.Forms 1.3.1.6296'. You are trying to install this package into a project that targets 'Xamarin.iOS,Version=v1.0', but the pa

read more...

by AskGif | Oct 25, 2018 | Category :coding

How to Create and Delete edge properties (Titan 1.0) using c# in .net mvc?

How to Create and Delete edge properties (Titan 1.0) using c# in .net mvc?

Question:&nbsp; I was using Titan 1.0 with gremlin server to create and delete a vertex. I want to implement this logic in my .net project. I wonder if there is any pre-build plugin for Titan and gremlin server in asp.net? Currently, I'm directly using a command prompt to create a

read more...

by AskGif | Oct 25, 2018 | Category :coding

How can I get the total size of a particular folder in C#?

How can I get the total size of a particular folder in C#?

When I'm creating one application where I'm giving certain memory space to users and I want to calculate the total space he used in his folder and to show him/her the total space utilized and total remaining space that can be utilized. How can I calculate the size of the entire folder including a

read more...

by AskGif | Oct 25, 2018 | Category :coding

How to Convert given bytes in KB, MB, GB etc?

मैं केबी, एमबी, जीबी आदि में उपलब्ध बाइट्स में उपलब्ध बाइट्स कैसे परिवर्तित कर सकता हूं?

How to calculate total bytes available in particular folder and I want to convert the total bytes available to total bytes available in KB, MB, GB etc? if you are calculating total bytes then you can use the following function to find out the respective total bytes in KB, MB, GB, TB etc.<

read more...

by AskGif | Aug 27, 2018 | Category :coding

Sending email using Gmail SMTP in asp.net mvc application?

Sending email using Gmail SMTP in asp.net mvc application?

You can use GMAIL SMTP service to send emails using c# .net MVC. You can specify the property constants in a config file for easy alteration. Create Gmail Class comprises of all needed data type and member function as below. <pre class="language-csharp"><code>public class GMailer {

read more...