Click here to Skip to main content
15,881,173 members
Home / Discussions / C#
   

C#

 
AnswerRe: how to remove node from string formatted xml using c# Pin
Richard MacCutchan18-Jun-21 22:15
mveRichard MacCutchan18-Jun-21 22:15 
AnswerRe: how to remove node from string formatted xml using c# Pin
Richard Deeming20-Jun-21 23:22
mveRichard Deeming20-Jun-21 23:22 
GeneralRe: how to remove node from string formatted xml using c# Pin
michael nabil21-Jun-21 10:31
michael nabil21-Jun-21 10:31 
QuestionShared memory Pin
manoharbalu18-Jun-21 2:26
manoharbalu18-Jun-21 2:26 
AnswerRe: Shared memory Pin
Richard Andrew x6419-Jun-21 14:39
professionalRichard Andrew x6419-Jun-21 14:39 
GeneralRe: Shared memory Pin
manoharbalu21-Jun-21 1:15
manoharbalu21-Jun-21 1:15 
AnswerRe: Shared memory Pin
Richard Deeming20-Jun-21 23:18
mveRichard Deeming20-Jun-21 23:18 
QuestionRegarding Use of System.Text.JSON in .NetFramework 4.7.2 Pin
Member 1522917418-Jun-21 1:11
Member 1522917418-Jun-21 1:11 
Hi,

I have created one C# dll of .Net Framework 4.7.2. In this DLL, I want to deserialize the JSON file and when I have added the code for deserialization ,I got compilation error to install the NuGet package
After installing System.Text.Json NuGet package of latest version(5.0.2), dll builds successfully.
When I connect this Dll with the C++ application and calls the deserialization method of the DLL, at that time I got one run time exception stating that:
“Could not load file or assembly 'System.Runtime.CompilerServices.Unsafe, Version=4.0.4.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.”

Solutions I Tried:

1) I tried to change in the app.config file with the value of the version which is specified in the error.
After changing in app. Config file , I got different run time exception:
“System.IO.FileNotFoundException: 'Could not load file or assembly 'System.Buffers, Version=4.0.2.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' or one of its dependencies. The system cannot find the file specified.'”

I tried changing the version of System. Buffers also in config file, but still getting the same error.

2) I tried to install the System.Text.Json of version 4.7.2
In this version also I am getting the same System. Buffers error.


Note: If we use the .Net 5.0.0(Core version) then System.Text.Json already present in it as default but with this version we are not able the generate the .tlb file as Regasm.exe gives error while registering the dll and in .Net 5.0.0 Register for COM interop is also disabled.

Thank you in advance.
AnswerRe: Regarding Use of System.Text.JSON in .NetFramework 4.7.2 Pin
Dave Kreskowiak18-Jun-21 5:00
mveDave Kreskowiak18-Jun-21 5:00 
GeneralRe: Regarding Use of System.Text.JSON in .NetFramework 4.7.2 Pin
Richard Deeming20-Jun-21 23:10
mveRichard Deeming20-Jun-21 23:10 
GeneralRe: Regarding Use of System.Text.JSON in .NetFramework 4.7.2 Pin
Dave Kreskowiak21-Jun-21 4:41
mveDave Kreskowiak21-Jun-21 4:41 
AnswerRe: Regarding Use of System.Text.JSON in .NetFramework 4.7.2 Pin
Richard Deeming20-Jun-21 23:16
mveRichard Deeming20-Jun-21 23:16 
QuestionHow to use web browser control to automate login to a site Pin
Mou_kol16-Jun-21 10:28
Mou_kol16-Jun-21 10:28 
AnswerRe: How to use web browser control to automate login to a site Pin
Christian Graus16-Jun-21 11:24
protectorChristian Graus16-Jun-21 11:24 
GeneralRe: How to use web browser control to automate login to a site Pin
Mou_kol16-Jun-21 21:05
Mou_kol16-Jun-21 21:05 
AnswerRe: How to use web browser control to automate login to a site Pin
Richard Deeming20-Jun-21 23:08
mveRichard Deeming20-Jun-21 23:08 
GeneralRe: How to use web browser control to automate login to a site Pin
Mou_kol21-Jun-21 4:19
Mou_kol21-Jun-21 4:19 
Questionimage processing Pin
elham mohammed16-Jun-21 5:53
elham mohammed16-Jun-21 5:53 
AnswerRe: image processing Pin
Dave Kreskowiak16-Jun-21 5:54
mveDave Kreskowiak16-Jun-21 5:54 
AnswerRe: image processing Pin
OriginalGriff16-Jun-21 9:34
mveOriginalGriff16-Jun-21 9:34 
QuestionVisual Basic Commission Switch Statement + Calc Pin
Member 1524886715-Jun-21 11:46
Member 1524886715-Jun-21 11:46 
AnswerRe: Visual Basic Commission Switch Statement + Calc Pin
Dave Kreskowiak15-Jun-21 17:44
mveDave Kreskowiak15-Jun-21 17:44 
AnswerRe: Visual Basic Commission Switch Statement + Calc Pin
Richard Deeming15-Jun-21 22:07
mveRichard Deeming15-Jun-21 22:07 
GeneralRe: Visual Basic Commission Switch Statement + Calc Pin
Member 1524886716-Jun-21 9:36
Member 1524886716-Jun-21 9:36 
QuestionGet serial number from local printers connected to workstation by USB Pin
SzakiII15-Jun-21 2:28
SzakiII15-Jun-21 2:28 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.