.NET Framework and .NET Core
37 articles
Resolved: The "Microsoft.CodeAnalysis.BuildTasks.Csc" task could not be loaded from the assembly
Fix and resolve: Resolved: The . Resolved: The Microsoft. Csc task could not be loaded from the assembly I recently have been working on an ASP.Microsoft....
.Net: Supported Console Colors
Net: Supported Console Colors The days of writing applications that write to the console seem to be over for a while now
Pro Tip: Never use type double for money / financial applications
Pro Tip: Never use type double for money / financial applications When you are new into coding financial applications one of the mistakes people tend to do
How to: Improve the performance of the Entity Framework
After writing code using entity framework for sometime and seeing the code base continue to grow I realized the importance of coding with performance in mi
Enumeration: What are the different SharePoint permission levels and their enumeration values?
You can learn more about this here: com/en-us/library/microsoft. spbasepermissions.
How to: Convert a string into an Enum in C#.Net
Recently I came across the need to convert a string stored in the database into an enumeration in our application
What character escape sequences are available in C#.Net?
What character escape sequences are available in C#.Net? - A technical guide covering .Net configuration and best practices. - double quote, needed for...
How to: Hide a row in Telerik's RadGrid
If you are looking for a way to programatically hide rows you don't wish to show from your data source whether by triggering an event or by a condition you
How to: Telerik RadGrid loses it's state of expanded and contracted groups whenever you databind
The grouping functionality of the Ajax control RadGrid from Telerik is probably one of its most attractive features
From where does ASP.Net tries to load Assembly files?
The answer can be found if you look at the error message when ASP. Net can't find the assembly
How to: Call a base constructor in C#.Net
Recently I decided I wanted to start creating children classes to handle my Exceptions, but I ran into the issue that I couldn't quite call the base constr
How to: Parse an Enumeration
Learn parse an enumeration. You can simply use the Enum.
How to: turn off custom errors for debugging mode in SharePoint 2010 application pages
Unfortunately custom errors is a setting that lives at the SharePoint site level, not at the 'application page / _layouts' level, so you will have to edit
What is the generic implementation of a HashTable?
The generic HashSet<T> class is a not ordered collection for containing unique elements which is the equivalent of the HashTable but for use with gen
How to: Create a generic method constraining T to an Enumeration
Learn create a generic method constraining t to an enumeration. Although I believe that as part of the.
Error 1 SQL03006: User: [ ] has an unresolved reference to Login [ ]
I am running into an issue when I import a db into a SQL Database project which indicates that Error 1 SQL03006: User: [x] has an unresolved reference to
How to: Initialize a .Net Dictionary at the variable declaration level
How to: Initialize a Dictionary with a Collection Initializer Sometimes in your project you want to initialize a Dictionary or other sort of collection at
The specified domain either does not exist or could not be contacted
I have a method that queries Active Directory and it works fine on a domain computer, however, when I try using another machine that has connectivity towar
How to maintain a centralized repository of the db schema and have it under source control
A question on many development projects that use a database is how to share that database with the entire development team and keep up a centralized, versi
How to make your Telerik controls work on a Custom SharePoint 2010 web application
There are 3 important things you need to do in order for the Telerik controls to work with your custom
Telerik - The base class includes the field {}, but its type {} (Telerik.Web.UI.RadGrid) is not compatible with the type of control (Telerik.Web.UI.RadGrid).
The error message: The base class includes the field , but its type Telerik. RadGrid is not compatible with the type of control Telerik.The base class...
How to make DevExpress work on your Sharepoint 2010 Application Page
After reading many posts I can say it is very hard to find information on how to get Custom Controls created by third parties working properly in SharePoin
Entity Framework 4: Any way to know the plural form of an Entity Type?
While working on a project I came across the need to identify what the entity set name is so I can use that to add an updated entity to the set
Pluralization Services
Recently as part of my work with the Entity Framework (EF) I came across a very interesting feature that could be leveraged in many other areas beyond the
Entity Framework - Why can't I see the child entities of my entity
So currently I'm working on an entity model in which there are a lot of parent - child relationships and for obvious reasons the entity framework is a grea
How to enable Session in a SharePoint 2010 Application page?
How to enable Session State in SharePoint 2010 So as a developer you may have come across the need to use the Session object along the way
LINQ to Entities does not recognize the method ‘get_Item(Int32)’ method.
LINQ to Entities does not recognize the method ‘get_Item(Int32)’ method. - A technical guide covering .Net configuration and best practices.LINQ to Entities...
What is the meaning of the "Guid?" type?
What is the meaning of the — explained with examples. Recently when working with the Entity Framework I had a parameter marked as 'Guid.
Why is the Logging Application Block Not Writing to Vista Event Log?
Fix and resolve: Why is the Logging Application Block Not Writing to Vista Event Log?. Q: I'm currently working with Enterprise Library 4.
"Hashed passwords cannot be decoded."
While working with C. Net memberhsip I get the following error: Hashed passwords cannot be decoded.Hashed passwords cannot be decoded
How do you read a parameter from the URL?
Learn how do you read a parameter from the url?. I am trying to use the login.
What is the best way to redirect a user to the login page?
If I wanted to redirect the user to the login page for some reason (either they are not logged in or we sign them out automatically) what would be the best
Resolved: You must specify a non-autogenerated machine key to store passwords in the encrypted format. Either specify a different passwordFormat, or change the machineKey configuration to use a non-autogenerated decryption key
Fix and resolve: Resolved: You must specify a non-autogenerated machine key to store passwords in the encrypted format. Either specify a different...You...
How do you display custom error pages on an ASP.Net application?
How can you create custom error pages on an ASP. Net application so that you can better control the user experience when the unexpected happens
How to modify the time Session objects are available in ASP.Net?
Learn modify the time session objects are available in asp.net?. How can you change the time the session is alive in ASP.
What are the options for formatting a string? What are the options for formatting when using .ToString()?
What are the options for formatting a string? What are the options for formatting when using .ToString()? — explained with examples.
Why are my Dynamic Controls not persisting via ViewState
Currently I am having the issue that when I create dynamic controls, even though I re-create them they still lose their respective ViewState