Legal Notice
The opinions expressed herein are my own personal opinions and do not represent my employer’s view in anyway.Top Posts
- C# HttpClient POST or PUT Json with content type application/json
- C# get results from Task.WhenAll
- Run tasks in parallel using .NET Core, C# and async coding
- C# Get expiry timestamp from JWT token
- Using C# HttpClient from Sync and Async code
- Creating dynamic arrays and lists using Dynamic and ExpandoObject in C#
- C# Remove Duplicates from List with LINQ
Archive
Meta
Tag Archives: .NET 4.5
Using C# HttpClient from Sync and Async code
The .NEt 4.5 C# System.Net.Http.HttpClient() is a very nice http client implementation, but can be tricky to use if you (like me) are not a trained asynchronous programming coder. So here is a quick cheat sheet on how to work … Continue reading
.NET Session state is not thread safe
When working with the .NET session state you should bear in mind that the HttpContext.Current.Session cannot be transferred to another thread. Imagine that you, from the Global.asax would like to read the SessionID each time a session is started: To … Continue reading
Posted in .net, c#, General .NET
Tagged .NET 4.5, global.asax, HttpContext, QueueUserWorkItem, session, Session state, ThreadPool
Leave a comment
(System.Web.UI.HtmlControls.HtmlIframe) is not compatible with the type of control (System.Web.UI.HtmlControls.HtmlGenericControl)
Yesterday I got the following error: Parser Error Message: The base class includes the field ‘IFrame’, but its type (System.Web.UI.HtmlControls.HtmlIframe) is not compatible with the type of control (System.Web.UI.HtmlControls.HtmlGenericControl). Source Error: Line 14: <iframe id=”IFrame” frameborder=”0″ runat=”server” visible=”false”/> Reason: The code … Continue reading