Converting a SecureString object to byte array in .net
HiWe are using SecureString to store passwords in the memory. However, I didn't find any secured way to convert the SecureString to the byte array. Is there a way to do this?The idea is that i do not...
View ArticleCLR Profiling API and "unhandled exception in unknown module"
Hi! I'm trying to use the CLR Profiling API on a WPF process and something strange happens. When I run the WPF process in a normal way it runs fine. But when I run it with the evnironment variables of...
View ArticleCLR Profiler cannot start my C# Console Application
I've downloaded CLR Profiler. I followed How To: Use CLR Profiler instructions, but it doesn't work. Here are my steps. - I execute 32-bit version with administrative priviliges. - I checked my CLR...
View ArticleUnable to add Oracle.Dataaccess.dll
I am unable to add reference of oracle.dataaccess.dll in visual studio 2003.i am using oracle 11g and windows 8 (64 bit).Following error appear "This is not a valid assembly or COM component. Only...
View ArticleIdentify .NET dll's assemblies in Test System
Hi All,1) Given set of binaries/dll's(assemblies) 650 no's comprising, Win 32 dll's, COM dll's, .NET pure assemblies,.NET assembly with com Interfaces all above categories of dll's,and using Test...
View ArticleVerifyData signed with "SHA256withRSA" algoritm always return false.
The SignedString is generated by "eid-web-applet-1.0-20121010.132118-1.jar" whit the algoritm "SHA256withRSA"This is the code I use, but I d0n't understand why it returns me always false...
View ArticleFailed to debug C# application developed and compiled in .net 3.5 but...
Failed to debug C# application in a host having both .net 4.0 and 3.5 using windebug. This application was developed and compiled in .net 3.5 environment but targeted to .net 4.0 and 3.5 using...
View ArticleDIA SDK: thread safety of msdia library
I can't find information about thread safety of msdia. Could you please give me some tips? Can I access the same session in different threads without own synchronization? Can I access and...
View ArticleADODB.Recordset VS ADO.NET
I have migrates an application from VB6 to .Net 2005 and found ADODB.Recordset in that. Should I leave it as it is or should I change it with ADO.Net? Any insight about how ADODB.Recordset works in...
View ArticleVirtual mode in listview
How retrieve virtual item works when listview virtual mode property is true.
View Articlehow to see all the errors without getting “Maximum number of errors has been...
I am compiling a VB.Net project. It is giving 102 errors. One error among 102 errors is "Maximum number of errors has been exceeded". What I understand from this error is, Visual Studio is not showing...
View ArticlePlease check is it a bug in clr
when i read the source code , i wonder, if the gc is trigger when one preemptive disable thread fall into the code (exactly method ofSpinUntil which is higlight as below),that will cause the app hang...
View ArticleEncrypting data using AES 256
I am new to this whole encryption thing. I am creating a program to send some information to a vendor of ours. The problem I am running into is that they require that no padding be applied to the...
View ArticleBC30456: 'InitializeCulture' is not a member of FIXES
Windows 2003 Server SP1, ASP.Net 2.0BC30456: 'InitializeCulture' is not a member ofHave a bug in your code but throws this error instead of the actual error? Or getting this error randomly? Or a...
View ArticleAccess violation in CLR when trying to release RCW's
Hello,I have spent two days scratching my head trying to understand the following call stack...Any input/thoughts would be highly appreciated. Thanks in advance!In order to diagnose heap corruption in...
View ArticlePrincipal.IsInRole first call is slow
I have a windows forms application running on .NET framework 4.0 on Windows 7 Professional client machines. The application was performing fine for about a year. In the code there is a call to process...
View ArticleTo distinguish w.r.t .NET dll(pure) and .NET dll with COM Interface
Hi All,I have a set of .NET dll's/assemblies (pure) as well as .NET dll's with COM Interfaces, Could it be possible to identify/segregate the dll's /assemblies belonging to the above two categories.I...
View ArticleUnable to cast COM object of type...
On Windows 8 x64 Enterprise I have a test .NET 4.0 C# Console Program targeting 'any cpu' in Visual Studio 2012 to which I added the GPMC Assembly via the instructions...
View ArticleAttempted to read or write protected memory
I am running a c# app (.Net v3.5 compiled as x64) registered as a COM dll on Windows Server 2008 R2.The dll appears to have a memory management issue because I am getting the “Attempted to read or...
View ArticleInternals of String type and String.Intern()
I've lately been analyzing (and trying to improve) performance of a string intensive application. When checking the way strings are stored in memory in the .NET framework I came across this funny...
View Article