Skip to main content

Posts

Showing posts from June, 2022

Connect to Azure SQL database using managed identity C# .Net 6.0

Connect to Azure SQL database using managed identity C# .Net 6.0 Let's discuss the connecting .net 6.0 c# application to azure SQL serve using MSI .NET 6.0 applications are more flexible and require less work than other.NET frameworks, such as.NET Core 3.1,.NET 4.8, and so on. Connect  .Net Core 3.1 or the Lower version Application to azure SQL   you will be using the following package Install - Package Azure . Identity Install - Package System . Data . SqlClient Connect .Net 6.0 Application to Azure SQL:  you will be using only following the NuGet package with the new connection string dotnet add package Microsoft . Data . SqlClient  if you are using system-assigned identity MSI then uses the following connections string and code.(Local Machine) using Microsoft . Data . SqlClient ; ... // Uncomment one of the two lines depending on the identity type     SqlConnection connection = new SqlConnection (     "Server=tcp:<server-name>.da...

Microsoft Graph API upload large file to SharePoint

How to Upload a file to SharePoint using Microsoft Graph API - C#/.Net? To make it easier to upload large files, a number of entities in Microsoft Graph support plus some extra file uploads. Instead of attempting to upload the entire file in a single request, the file is divided into smaller pieces and a single request is used to upload a single slice. To make this process easier, the Microsoft Graph SDKs include a large file upload task that handles the uploading of the slices. Azur AD Setup:  you need to complete the following steps to configure the azure ad. Step - 1: Register an application with the Microsoft identity platform Sign in to the  Azure portal . If you have access to multiple tenants, use the  Directories + subscriptions  filter in the top menu to switch to the tenant in which you want to register the application. Search for and select  Azure Active Directory . Under  Manage , select  App registrations  >  New registration ...

azure function error unknown argument --port

How to run Azure Function app on a different port in Visual Studio or  azure function error unknown argument --port How to Fix it? Update Project Properties -> Debug to following put the following command  "host start --port 7071 --pause-on-error" Finally, it works 

flutter/Android WebView not loading an HTTPS or http URL

flutter/Android WebView not loading an HTTPS or http  URL You can use the WebView plugin to display a webpage within your Flutter application. A Flutter plugin that provides a WebView widget. Step 1: Install web view using the following command   flutter pub add webview_flutter Step 2: user android:usesCleartextTraffic="true" to run  HTTP sites. not require for  HTTPS websites Step 3: Final Code: You can use the following code to run the website under android import 'package:flutter/material.dart' ; import 'package:webview_flutter/webview_flutter.dart' ; void main () {   runApp (     const MaterialApp (       home : WebViewApp (),     ),   ); } class WebViewApp extends StatefulWidget {   const WebViewApp ({ Key ? key }) : super ( key : key );   @ override   State < WebViewApp > createState () => _WebViewAppState (); } class _WebViewAppState extends State < WebViewApp > { ...

What is a Non-fungible token?

 What is an NFT? NFTs, or non-fungible tokens, are cryptographic tokens that exist on a blockchain but cannot be copied, each with its own unique identifying number and metadata. NFTs are comparable to orators or information tokens, but they are neither interchangeable or fungible like cryptocurrencies like Bitcoin or Ethereum. NFT supporters claim that NFTs provide a public certificate of authenticity or proof of ownership, but the legal rights conveyed by an NFT are uncertain. The request of an NFT, as defined by the blockchain, has no inherent legal meaning and provides no other legal rights over the digital files associated with it. A Non-fungible Token (NFT) is a digital asset, also known as a cryptographic asset, that has a unique identification code and metadata that distinguishes it from a fungible token. They, like cryptocurrencies, cannot be traded or exchanged at equivalent values. The difference between fungible tokens and cryptos is that cryptos are exactly the same an...