Programming Tutorials

all Tutorials

11. Severity Code Description Project File Line Suppression State Error CS0103 The name 'JsonConvert' does not exist in the current context.

By: Niraj : 2023-06-01

Description: Severity Code Description Project File Line Suppression State Error CS0103 The name 'JsonConvert' does not exist in the current context.


12. Passing a model globally to all Views in your Asp.net webapp

By: Terrence : 2023-06-01

Description: Let us say you have a model named customerSettings that you initialize when the user logs in and then you want to save it globally for later use throughout the application in all views


13. Severity Code Description Project File Line Suppression State Error CS0246 The type or namespace name 'JToken' could not be found.

By: Terrence : 2023-06-01

Description: Severity Code Description Project File Line Suppression State Error CS0246 The type or namespace name 'JToken' could not be found.


14. HttpError is not found in Asp,net core project

By: Linda Ng : 2023-06-01

Description: In the newer versions of ASP.NET Core, the HttpError type is not available. Instead, you can handle the error response using the HttpResponseMessage object and extract the error message from the response content


15. Microsoft.Identity vs Microsoft.IdentityModel.Clients.ActiveDirectory

By: Linda Ng : 2023-06-01

Description: To work with the newer Microsoft.Identity package instead of the deprecated Microsoft.IdentityModel.Clients.ActiveDirectory, you can use the ConfidentialClientApplicationBuilder class to acquire a token


16. Getting values from appsettings.json ASP.NET

By: Linda Ng : 2023-06-01

Description: To access values from appsettings.json in an ASP.NET Core application, you can use the IConfiguration interface


17. Severity Code Description Project File Line Suppression State Error CS0308 The non-generic type 'List' cannot be used with type arguments.

By: Linda Ng : 2023-06-01

Description: Severity Code Description Project File Line Suppression State Error CS0308 The non-generic type 'List' cannot be used with type arguments.


18. Pagination in ASP.net core application

By: Linda Ng : 2023-06-01

Description: To display a read-only grid of records with pagination in an ASP.NET Core view, you can follow these steps:


19. Severity Code Description Project File Line Suppression State Error CS1061 'string[]' does not contain a definition for 'Any' and no accessible extension method 'Any' accepting a first argument of type 'string[]' could be found (are you missing a using directive or an assembly reference?)

By: Linda Ng : 2023-06-01

Description: Severity Code Description Project File Line Suppression State Error CS1061 'string[]' does not contain a definition for 'Any' and no accessible extension method 'Any' accepting a first argument of type 'string[]' could be found (are you missing a using directive or an assembly reference?)


20. Severity Code Description Project File Line Suppression State Warning Found conflicts between different versions of the same dependent assembly.

By: Niraj : 2023-06-01

Description: Severity Code Description Project File Line Suppression State Warning Found conflicts between different versions of the same dependent assembly.