RijndaelManaged terrible performance when compared to Java.
I have been currently investigating a performance bottleneck and found out that "RijndaelManaged" is causing it. I have an application that decrypts data that is encrypted by Java. The Java cipher is...
View Articlehow to transform run time values of app.debug.config or app.release.config
how to transform run time values from app.debug or app.release.config to app.config specially env specfic values in run time in dot net core 2.0.1
View Articlecapture unmanaged OutputDebugString output using a TraceListener class
I have a legacy MFC application that uses OutputDebugString to emit debugging information, the application also uses .NET libraries that emit debugging information using System.Diagnostics.TraceIf I...
View ArticleSystem.Reflection.ReflectionTypeLoadException when running unit test
I'm facing problems with unit tests. I wrote some tests which worked fine and yielded the expected results. Then I wrote a test which loads a TXT file:[TestMethod] public void TestLoadStopwords() {...
View ArticleCreate p7m envelope
Hi all, this is my first attempt at using pkcs classes to create a p7m envelope.I am trying to accomplish the following1. sign a document with a certificate2. envelope the signed document in a p7m file...
View Articlehow to use DefineMethodSpec to define a generic method instance for called in IL
Hi,i need to instrument generic method. Be more clearly i want to write IL to call the instrumented generic method when jit compile start. but now i don't know how to define a generic method that can...
View ArticleWhat is meant by Managed and Unmanaged code?
What is meant by Managed and Unmanaged code?
View Articleabout ecma-335 table type
Hi dear all,I'm trying to write a .winmd file reader to extract the metadata from it . and detected some table that can't found document for in ecma-335 (II.22) , for example , I detected 0x1f (which...
View ArticleICorProfilerCallback::ClassUnloadStarted not called for a generic class...
Hi CLR forum team,My company is developing a CLR profiler which keeps track of loaded classes based on ClassIDs, by following the ClassLoadStarted, ClassLoadFinished and ClassUnloadStarted callbacks....
View ArticleMouseKeyHook crashes C#
Hi I'm trying to use the MouseKeyHook class in my program but after a while running it crashes and I get various of error names for the MouseKeyHook .dll crashing. This is the line that...
View ArticleUnable to see results of updated/reregistered DLL Assembly when using REGASM.EXE
Hello,I have a C# COM Interop managed solution.I used "regasm /tlb:DatePickerLib.tlb DatePicker.dll /Codebase" to register the DLL the first time and the calling client worked fine. It executed the...
View ArticleHow do I know if Kestrel is running in windows environment?
I read that one of the reasons why asp.net core is cross platform is because of kestrel server and it's ability to serve requests in linux environment(correct me if I am wrong here). But what happens...
View ArticleIs the Name field of each metadata table in Dotnet file structure is important?
Hi, I'm trying to deobfuscate a Dotnet file that obfuscated by Eazfuscator.NET in manual. Just for fun and study.As far as I know, Dotnet files could be decompiled by decompilers. So, I thought that I...
View Articlep/invoke, delegates, garbage collector and relocation
Hi,When I pass a long-living callback to a native function, I have to explicitly keep a reference to the created delegate instance in my managed code (as explained e. G. in the remarks on...
View ArticleWhat is the dfference between password property text and...
Is DataType DataType.Password attribute and Password Property Text attribute do the same thing or is it different when to use what ? code [PasswordPropertyText]...
View ArticleC# Run Time Change SQLite Database Connection String
C# Can I RUN Time Change Database First EF Connection string???I Create the C# WPF project for multi machine and database is SQLite 3 Encrypted.I use the "ADO.NET Entity data model" "Database First"...
View ArticleWhat happened to Suzanne Cook's Blog?
What happened to Suzzane Cook's Blog? There use to be a number of good posts on how assemblies are loaded by the CLR.https://blogs.msdn.microsoft.com/suzcook/
View Article