Skip to main content

Posts

Showing posts with the label Errors and Exception

Git commands and errors

 The “ nothing added to commit but untracked files present ” error is raised when you create new files in your local working copy of a repository and forget to add them to the staging area before you pull a new version of the repository.   List All Branches To see local branches, run this command: git branch. To see remote branches, run this command: git branch -r. To see all local and remote branches, run this command: git branch -a.   To delete a local branch in Git, you simply run: git branch -d <branch-name> ... git branch -D <branch-name> ...  Show all your stashes You can show all your stashes with git stash list. Maybe you can write a script to show both git stash list   and git log and use it with an alias. STASH RELATED QUERIES  Q) How to discard the particular stash? Q) How to discard the particular files in the stash? Q) How to modify the particular files in the stash? Q) How to remove/delete the stash? Q) How to revert the stash? Q...

Errors in App Development (Android, Flutter...)

 Brief Contains all the errors occurred for me while working with App Development. Could not initialize class org.codehaus.groovy.runtime.InvokerHelper HAXM is not installed on this machine Open SDK Manager and download Intel x86 Emulator Accelerator (HAXM installer) if you haven't. Now go to your SDK directory (C:\users\username\AppData\Local\Android\sdk, generally). In this directory, go to extras → Intel → Hardware_Accelerated_Execution_Manager and run the file named " intelhaxm-android.exe ". In case you get an error like "Intel virtualization technology (vt,vt-x) is not enabled", go to your BIOS settings and enable hardware virtualization. Restart Android Studio and then try to start the AVD again. It might take a minute or 2 to show the emulator window. Please this answer for images Error in launching AVD with AMD processor

Errors in SQL (MySQL or SQL Server or SQLite)

   Brief Contains all the errors occurred for me while working with SQL Server or MySQL or SQLite. Can a table have the foreign key reference of more than one table and data along it?  Answer -> Yes SQL Server Invalid version: 15 (Microsoft.SqlServer.Smo) Ans -> Using SSMS version 18.0 instead of 17.0 seems to be working. You can download it from  https://docs.microsoft.com/en-us/sql/ssms/download-sql-server-management-studio-ssms?view=sql-server-2017

Errors in Blazor Server App

Brief Contains all the errors occurred for me while working with .NET Core Web Application. The IDP.Generic Virus when running blazor server app. This is false positive while blazor server app so please put in to the exception list. This will be detected by the Anti-Virus running in Windows machine. The 'inherits` directive must appear at the start of the line. This happened with me because I copy pasted whole code of page or components in razor from the internet. Solution  - Simply manually write the inherits at the top of page and it will work.

Erros in .NET Core - Web Application

 Brief Contains all the errors occurred for me while working with .NET Core Web Application. HTTP Error 500.24 - Internal Server Error -  An ASP.NET setting has been detected that does not apply in Integrated managed pipeline mode. This happens when running new created .net core - web application from the visual studio. fig. Error Solution1: Simply run your application from command line.  Solution2: Simply use your project name instead of the IIS Express and run your project.

Errors in Github

 Brief Contains all the errors which I have encountered while working with github and their soltuions. Git's famous “ERROR: Permission to .git denied to user” If problem is coming on windows then remove the Credentials from the Windows history. Go to Credential Manager Go to Windows Credentials See the github user is there. If yes, then update the username and password latest. If no, add new username and password for the github.com Try connecting again. This time, it should prompt you for the correct username and password. Github - error(upcoming)

Errors in Software Development(Github, Gitlab, TFS or Azure Devops, C# NET, .NET Core, SQL, Flutter, ReactJS, ....)

 Brief This contains the link to errors which occurs when working with different platforms such as github, gitlab, and so on. Note - the errors here are only those which are occurred for me. Git Errors in Github Gitalb Errors in .NET Core - Web Application Errors in Blazor Server App Errors in SQL (MySQL or SQL Server or SQLite) Errors in App Development (Android, Flutter...)

Kotlin Errors and Possible Solutions Part (1)

1)  Can anybody help me with this issue? Error: Could not find or load main class kotlin.function.MainFunctionKt Scenario: I have created below project structure. package name "kotlin.function" ClassName: MainFunction.kt Only One Method: fun main(args: Array<String>) { println("Hello") } Solution : 2) Error: Only kotlin standard library is allowed to use kotlin package. Solution: