Click here to Skip to main content
15,894,460 members
Everything / .NET / .NET4.6

.NET4.6

.NET4.6

Great Reads

by Altaf Ansari
SignalR Real-Time ChatApp with Emoji / Smiley and sending file attachment
by Yaseer Mumtaz
This article helps to understand the architecture and use of simple data grid developed in Angular 4.
by Igor Ladnik
Basic infrastructure for massive continuous data acquisition and processing using ZooKeeper-Kafka and Redis
by honey the codewitch
An LL(1) pull parser and generator that thinks it's an LL(k) parser - with a rich, simple and beautiful EBNF syntax

Latest Articles

by Yahya Mohammed Ammouri
A plugin Copy/Clone existing child records from one Entity to another in Dynamic CRM without doing field mapping.
by NikStar
Using OutgoingMessageProperties and OperationContextScope to implement authorization by http header for WCF client that communicates with non WCF-based web services.
by Shao Voon Wong
Bring your animations to H264/HEVC video using C++ and C# with h/w acceleration
by #realJSOP
This library is intended for use in a multi-environment system, but it certainly be used under less stringent environmental confines, even down to a single desktop machine taht needs to connect to a single database server.

All Articles

Sort by Title

.NET4.6 

11 Jan 2018 by Member 13123235
Hi All, My requriement is to automate the CodedUItest (developed by using visual studio 2017)in the machine(WindowsServer2012-R2 OS) where I should not download the Visual Studio and I should not use the network connection.So, I downloaded the visual studio Test Agent from...
11 Jan 2018 by Michael Haephrati
The solution I have found is to go to RegEdit. go to Computer\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\VisualStudio\\EnterpriseTools\QualityTools\TestTypes\\Extensions See my screenshot. Make sure .dll is included in addition to .exe.
12 Nov 2017 by GauravKrishn
Hi, I am using angular 4 in a .Net project in VS 2015 and the getting the following error message when application loads in the browser : Error: (SystemJS) Unexpected token ) at Object.eval...
19 Mar 2020 by RickZeeland
Version all your .NET Core projects in one swoop fell!
22 May 2017 by Dhineshkumar Velmayil
Hi All, JUst now i have upgraded my .net framework version from 4.0 to 4.6.2. But still i cant use TLS 1.2 in my project. ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12; is not supporting. All replies welcome. Note: My application is developed in .net 4.0 ...
21 May 2017 by Maciej Los
Please, check this: How to: Target a Version of the .NET Framework[^]
22 May 2017 by Dave Kreskowiak
To target .NET 4.6.2, you have to upgrade your Visual Studio to 2015. VS2010 only supports through .NET 4.0.
11 Oct 2018 by Goutam Babu
Hi Team, i am getting 500 error for using header Content-Security-Policy: default-src 'self'; in web.config(>net Application). Please help. What I have tried: i am getting 500 error for using header Content-Security-Policy: default-src 'self'; in web.config(>net Application). Please help. ...
11 Oct 2018 by Richard MacCutchan
See html 500 error - Google Search[^].
29 Aug 2017 by Ammar Shaukat
I’m currently working on a UWP app to work with scanners. This application is a POS app and reads barcodes. Windows 10 Provides its built in barcode scanner class. That is used for UWP apps but it is limited in functionalities. you can check it here. Window 10 barcode Scanner for UWP
29 Aug 2017 by Dave Kreskowiak
Some COM components work in UWP apps, most don't. Why? UWP applications run in a "sandbox" where the application needs permissions to do just about anything. They are restricted to using a limited subset of the Win32 and COM API's. Most existing COM components, unless they are explicitly...
4 Jan 2020 by The Ænema
Here's the best, beautiful and easiest way to create an animated and smooth sliding scroll viewer in WPF Platform (Windows Presentation Foundation).
2 Aug 2018 by Marc Clifton
A discussion of various approaches to threading, covering locks, mutexes, semaphores, concurrent collections, work queues, threads, PLINQ, TPL, exception handling, and cancellation tokens
9 Mar 2021 by #realJSOP
This library is intended for use in a multi-environment system, but it certainly be used under less stringent environmental confines, even down to a single desktop machine taht needs to connect to a single database server.
31 Mar 2019 by honey the codewitch
A Non-Backtracking Regular Expression Engine for .NET (Core)
19 Feb 2021 by honey the codewitch
Use TaskCompletionSource to turn an event or callback based model into a Task based one
3 Jul 2019 by Prakash Singh
Resolution of Security rule has invalid Port range issue
28 Dec 2018 by Member 14100488
I'm trying to make an C# Excel addin in order to automate the calculus of some cells value.What the addin should do is when a box is checked it should multiply the value of a cell with other cells and paste the result in different cells.The error that I get is "Cannot convert null to int because...
28 Dec 2018 by Maciej Los
The best way to resolve your issue is to use debugger[^]. As to the first error message: Quote: Cannot convert null to int because it is not a non nullable value type Yes, this might means that sheet.Cells[1, 12].Value2 holds nullable value. As to the second error message: you don't need to...
17 Jan 2021 by Member 15048285
I have only recently started with C# (before that I already had experience with Java), so please provide more detailed explanations and in the best case also refer to pieces of code or already existing libraries, classes and/or projects. ...
17 Jan 2021 by Garth J Lancaster
There are are a couple of links below for suggestions, in addition to Richard's comment, which is very valid. In addition to Richard's comments 1) think about 'when you want to start' predictive matching - eg on the 2nd or 3rd character being...
25 Nov 2020 by Member 14362033
Hello , I have a input type button and I want to call ajax after button click but ajax event is not fired . When I change input type to submit click event works but page reloads and ajax call is not called . Please help me to solve this issue . ...
24 Apr 2018 by didourebai
Mobile alerts in Xamarim.forms
27 Jan 2021 by Member 11760345
I have a user control MembersFoundControl.ascx that is loaded into the MembersControl.ascx when duplicate members are found. The MembersFoundControl control definition is:
27 Jan 2021 by Richard Deeming
You need to recreate the controls on every postback. The best place to do that would be the Init event of the placeholder you're adding them to. Dynamically Adding Wired Controls to Web Forms[^] Remember, your page and the entire control...
27 Jan 2021 by Member 11760345
I am not sure what you mean. The initialization of a control is OnInit. This would meant that this would fire everytime the MembersContol is refreshed. And the lifecycle of the MembersFoundControl is only for the duration of selecting one of...
18 Sep 2017 by massimiliano aronica
Speed up the loading of the main view by automatically loading partial views in async
10 Jul 2017 by Yaseer Mumtaz
This article helps to understand the architecture and use of simple data grid developed in Angular 4.
12 Jun 2017 by Yaseer Mumtaz
In this part, we will enhance our user management application to have search/filter, global error handling and debugging functionalities.
31 Mar 2018 by DARKHORSE09
Error 524 'ServiceClient.Repor...
31 Mar 2018 by OriginalGriff
The error message means exactly what it says: your ReportHandler class does not contain a method called "get_Settings" and no extension method has been found which provides it. Check the class, check your names - and remember that C# is case sensitive, so get_Settings is not the same as...
18 Feb 2021 by #realJSOP
A WPF ListView that automatically generates columns (that are also sortable) based on decorated entity properties
19 Mar 2018 by jcsanchez1
I am trying to create a b* tree data structure using list. List> List> I am not pretty sure, in the first one I just get 2 levels of the tree, but in the case, the tree will be deeper? I think in the second case fit more with my needs because I can use a list as an...
9 Sep 2018 by ahmed_sa
Problem Barcode scanner return only first digit only why and How to Return Full Number as 6221133347389 6221133347389 return 6 4716201020476 return 4 screen shoot debug File sharing and storage made simple[
9 Sep 2018 by OriginalGriff
We can't tell - we don't have your scanner, and we can't run your code as a result. So, it's going to be up to you. Fortunately, you have a tool available to you which will help you find out what is going on: the debugger. Put a breakpoint on the first line in the function, and run your code...
3 Dec 2018 by replaysMike
How to binary serialize your classes without having to modify them
14 Nov 2017 by jgauffin
Save time and effort with the help of codeRR, which finds and analyses errors for you, improving code quality along the way.
25 Apr 2023 by Shao Voon Wong
Bring your animations to H264/HEVC video using C++ and C# with h/w acceleration
7 Jun 2018 by Habibur Rony
This article mainly covers how to create new build and release definition using VSTS. There are short descriptions of DevOps, continuous integration, continuous delivery and continuous deployment.
15 Jul 2018 by Muhammad Usama Khan
In this article we'll build test and consume an asp.net web api.
1 Dec 2019 by Dan Ionescu (USINESOFT)
Complex cascade defaulting of properties on an object graph triggered by other property changes
18 Jun 2017 by Heather Czerniak
I'm writing a C# .NET WinForms app where I need to create a zip file (using DotNetZip) consisting of items of the following types: System.Drawing.Image someimage Microsoft.DirectX.AudioVideoPlayback.Audio someaudio Microsoft.DirectX.AudioVideoPlayback.Video somevideo Problem: In all the code...
16 Jun 2017 by Dave Kreskowiak
Ummm...it seems you have no idea how .ZIP files work. Either that or you're doing a terrible job of describing the problem. The original path is not saved in the .ZIP. If you add folders to a .ZIP the RELATIVE path is saved. That means the files are unzipped to a path relative to where the...
16 Jun 2017 by Heather Czerniak
Dave, I know that the original filepath is not saved in the .zip, only what's at the end of it. Apparently, DotNetZip will only allow me to add a file from a filepath, so I need to find a way to write the value of a variable to a temp file so I can read it into a byte array from that temp file...
18 Jun 2017 by RickZeeland
I don't know about DotNetZip, but 7zip can do it, you can call it with Process.Start(). Examples from 7zip help: 7z a archive1.zip subdir\ adds all files and subfolders from folder subdir to archive archive1.zip. The filenames in archive will contain subdir\ prefix.7z a archive2.zip .\subdir\*...
17 Jun 2017 by Heather Czerniak
Rick, the problem is that the end user might open the zip archive in my app on a different computer where those image, audio and video files may not exist. If they open the zip, those files won't load because they won't exist on another computer. Once I add an image, audio or video to a file in...
18 Jun 2017 by Heather Czerniak
Rick, if you mean copy the files to the app's executable path, that means I'll still have a filepath rely on. Is it possible to write the value of a DirectX Audio or DirectX Video variable to a file? I read the value into a variable from a filepath, now I want to write the value of that variable...
13 Jun 2018 by Jordan Nash
Hello, I want to display certain metadata in my listbox for the selected image in my picture viewer that isn't in this library by Asim Goheer which I'm using. https://www.codeproject.com/Articles/11305/EXIFextractor-library-to-extract-EXIF-information?msg=5528243#xx5528243xx PROBLEM: ...
7 Nov 2018 by TheBigBearNow
Hello all, I have a question. I have a user object with properties. I have a login screen and when the user logins correctly I pass the user object to the next window. On the top of this next window I would like to display this below with the new line in the control. Should I use a text block or...
6 Nov 2018 by #realJSOP
should i be doing this with data binding because this is WPF? Yes.
7 Nov 2018 by M.Kamran Asim
1. Choice between Label and Textblock depends on requirements. If your data is only text, go for TextBlock. As it is light weight, but if you need some content like image, grid or other complex typed, then label is fine for you. Personally for simple messages, I use textblock with some styling...
15 Apr 2019 by Dan Ionescu (USINESOFT)
A newly released as open source nosql database for .NET (classic or core). Already used in production environments
16 Apr 2019 by Dan Ionescu (USINESOFT)
LINQ extensions that allow to describe and to safely query cached data
26 Sep 2018 by MattiLindroth
An example on how to call Oracle stored procedures with UDTs from ASP.NET MVC / REST API
23 May 2018 by Member 13841239
Can any one tell me, how constructors are implemented internally in c# and how are they able to intialize default values,I mean the mechanism that goes internally? Plzz help What I have tried: I ws unable to get internally implementation,how it was able to intilize values.
23 May 2018 by David O'Neil
They were implemented in the manner that Microsoft decided to. This answer is as clear as what you have tried. Show us that you actually tried, and you might get an answer that actually helps you.
30 Mar 2017 by ahmed_sa
I work in windows form application c# vs2015 integrated to sql server 2012I face problem i need to select more specific number in same time but i dont knowwhat query i write or what i do in c#current i using select * from table where userID=@UserIDthis is select only numberbut if i...
30 Mar 2017 by Garth J Lancaster
Have you tried the 'IN' SQL operator ?select * from tablewhere userID=@UserIDand number in (1005, 1009, 1012, 1017)
30 Mar 2017 by F-ES Sitecore
In addition to IN, if it is a range you want to select thenWHERE userID >= 1001 AND userID
30 Mar 2017 by Richard Deeming
Quote:textbox have values 1002,1991,2007,3006so that how to select these valuesYou'll need to split the text, convert each value to an integer, and build up a parameterized SQL command using the IN operator:string text = YourTextBox.Text;string[] parts = text.Split(new[] { ',' },...
1 Jun 2017 by Khageswar Rao
i created library project. Inside library project created one class and one interface.Interface has some methods. Class has some properties. On same solution i created another library project. I added entity framework and one class. This class has inherit previous project interface file. And...
1 Jun 2017 by F-ES Sitecore
You are trying to add an EmployeeRegistration class to a collection of Employee objects. Employees.Add needs you to pass an Employee object but you are passing EmployeeRegistration. If you want to add to the Employees you need to add an Employee object.
29 Nov 2018 by Ameer Salah
I faced issue with reading large data using ajax request: from javascript to C#. Notes : 1- I have set to maxRequestLength="52428800" and maxAllowedContentLength="52428800" 2- The request worked successfully for normal data. And I still get: 500 (Internal Server Error) for large data case....
28 Nov 2018 by Dave Kreskowiak
500 errors mean your server-side code crashed or otherwise threw an error. Unless YOU go through some diagnostic steps on your own code and supply additional information in your question, NOBODY can tell you what's going wrong with what you've posted in your question. We only get to work with...
29 Nov 2018 by Abdelrahman Ismaeel Hegazy
try anther internet connection without any domain Administration
31 Jan 2018 by Pawel idzikowski
How to replace the web API request query string to provide case insensitive OData search
15 Jun 2017 by Ordiales
Create default interface implementation or whatever you want with runtime checking not implemented members
25 Nov 2018 by Roshan Choudhary
Component Interaction in Angular using Input Output decorator
1 May 2017 by Roshan Choudhary
Handling data concurrency in Entity Framework 6 with Database First Approach.
28 Mar 2017 by DotNetCraft
This article describes one of the easiest ways to read configurations from the App.config.
15 Jul 2018 by Muhammad Usama Khan
Here we’ll discuss how to work with controller actions and routing.
5 Sep 2018 by Member 8025807
Hi, Kindly help. I need a function which will contain a class object and it will return a dictionary as key value pair where key will be the name of the property and value will be the values of the property. that means :- DictionaryObject. It is easily...
10 Oct 2018 by Koundinya
Hello All I have multiple installers along with my application where in I want to bundle all of them to one single setup file. When user wants to install the software, I would like to make sure all installers install first before installing my application files. Using MS Visual studio...
9 Oct 2018 by Dave Kreskowiak
The Visual Studio installer project is a bit simplistic and will not do what you want. Actually, every installer won't do this. What you CAN get is a 3rd party installation technology, like Wix, that can bundle all of your prereq app installers together into a single setup executable. When...
10 Oct 2018 by johannesnestler
I use wix bootstrapper Projects to bundle mutltiple msi-packages. Very easy to use - I can recommend it. Just download wix - it's free: WiX Toolset[^] It Comes with VS Extensions so you have some new Project-types to select. Just create a new Bootstrapper Project and work through the...
3 Mar 2018 by Athari
CsConsoleFormat library for .NET - Formatting in Console using modern technologies
4 May 2020 by Ayyappan Ramachandran
An overview of custom authorization with user groups in MVC
15 Feb 2019 by aditya pewekar
Create custom HTML helper to manage Page Mode like View (Readonly) and Edit/Add (Editable)
28 Jan 2020 by kingsa
Hi , I tried to redirect error pages to custom pages ,but in network tab in browser its showing as 302 instead 404 can please suggest how can i overcome this issue What I have tried:
28 Jan 2020 by Richard Deeming
By default, ASP.NET will issue a 302 redirect to the error handler. You can change that by setting the redirectMode to ResponseRewrite:
24 Apr 2018 by ahmed_sa
Problem Datagridview show only last record although I have more rows when currentreading excel is less than currentreading invoice table . wrong result in else statement of btn_import click inside for loop count I need to modify code in else to accept list not show only one record . Details ...
24 Apr 2018 by Wendelius
At least few things to notice When you loop through the rows from Excel, you set a new data table and a new dataview on each iteration when the amount is less than what is found in the database. This causes the situation where only the last row remains. You should use a single data table and...
13 Nov 2018 by Prabakaran Rajendran
Setting up automated build and deployment for Windows service using Azure Pipeline
2 Dec 2018 by Aydin Homay
How to use Microsoft OWIN to build a Microservice
15 May 2019 by Member 14330973
I have a generated a view for a particular search type ( agency -name Abc Enterprise) having the following details and a webgrid(as per search) Name of the Institute: ABC ENTERPRISE Total No. of Feedback submitted: 5 Incountry Feedback: 5 Overseas Feedback: 0 Overall Score of the...
15 May 2019 by Gerry Schmitz
Download as CSV, open in Excel: ABC ENTERPRISE, 5, 5, 0, 3.3 etc.
8 Feb 2018 by Member 11583833
I got a question about DPI issue with winforms applications. I am having a winforms C# application, built with .NET 4.5.2 using VS 2013. Many of our customers are using Window 8 or 8.1 and Windows 10 and some of them are complaining about the DPI issue when they switch between laptop and big...
21 Oct 2019 by Chris A. Johnson
Drag and Drop between Multiple Trees in Jquery using jstree
4 Nov 2018 by Shagoon
I am using Component one flex grid in my C# application form. I need to add drag drop functionality in the grid. My grid row has folder names which contains files name. My files are stored in SQL Server 2008 database. Expected behavior -If grid row is dragged inside grid then row should move...
28 Jan 2018 by Rich Insley
A library for adding DirectShow GraphEdit-like abilities to .NET applications
N 5 May 2024 by Yahya Mohammed Ammouri
A plugin Copy/Clone existing child records from one Entity to another in Dynamic CRM without doing field mapping.
11 May 2018 by Member 13710772
I have already a drop-down.on every one click button, it appends another dropdown.but in the table it shows only one dropdown selected value. Instead it should show all of dropdowns selected value. What I have tried: this is jquery $(document).ready(function () { ...
1 Jun 2017 by Sherjil_Ahmed
Mixing DB-First and Code First Approach for using SPs in EF-Way
12 Nov 2019 by Alejandro Horcajo Diestro
Hello, I have a problem with the EPPlus library. When taking an excel with image, when adding rows above it using .InsertRow(), the image does not change row. However, if I add a row directly using Excel, yes. Any ideas? What I have tried: worksheet.InsertRow(tableRowNum, 1); ...
12 Nov 2019 by OriginalGriff
Then raise an issue with the GitHub repository, not on an unrelated site: Issues · JanKallman/EPPlus · GitHub[^]
1 Jun 2020 by s yu
I created a project with an aspx page + an ashx file. This process consists of 2 steps: 1) After clicking the button in the aspx page (http://localhost/default.aspx), it directs to the ashx. http://localhost/myHandler.ashx?12345. 2) When the...
1 Jun 2020 by Richard Deeming
Quote: When the ashx file is called, a generated file will save into a desired local folder. Your ASHX code is running on the server. You are trying to save the file to a folder on the server. It's quite likely that the folder either doesn't...