Random AccessViolationException when calling IDispatch::Invoke
Hello,I have the following problem:I have a c++ Dll accessing with COM to a .NET DLL (C#). In most of the cases, everything goes fine, but when my dll is called by some optimized code, and in release...
View ArticleHow to detect UseRandomizedStringHashAlgorithm?
.NET Framework 4.5 and later can be configured to use a randomized string hashing algorithm. How can a managed-code library check whether the framework is using such an algorithm?A library of ours has...
View ArticleCLR.DLL fault crashing Windows Service
Hi,I have a number of Windows Services running on an Azure VM Windows Server 2012 R2.The Services where originally running under .Net 4.5 built with VS2013. They are now using 4.6 built with VS2015....
View ArticlePass pointer to another AppDomain in the same process
In our application, we have two AppDomains - the first one hosts object, inherited from MarshalByRefObject. The second one calls method on this object. The specifics of this method is that it receives...
View ArticleFaulting module name: clr.dll, version: 4.6.81.0
Hello folks,I already inquired Microsoft support about this, but they were useless and I was told to consult the folks over here. I'm having intermittent application crashes (with many programs, not...
View ArticleInterfaces and generics
I need to extend an interface to implement a base interface and have some extra methods/propertiesI want to do this in generic way so I don't have to repeat this code 100+ times.I was thinking to do...
View ArticleOctober 2015 Windows Update KB3097966 corrupted many Windows 8.1 store app...
After installing October 2015 Windows Updates on Windows 8.1 machine I found that all .NET applications (MSN Weather, HERE Maps, Lenovo Settings, VLC for Windows Store) starts slowly or crashes with...
View ArticleIncorrect process IDs returned by WMI's...
I'm using WMI's Win32_PerfFormattedData_NETFramework_NETCLRMemory query to retrieve information about local .NET processes. It works fine for most processes, but a few processes return 0 for ProcessID...
View ArticleAssemblies verification skipping enabled by default for x64 processes
Hi all,I was preparing a development environment on some computers and for this reason I have started to work with delay signed .Net assemblies. Executing the following command (64 bit...
View Articlehow can I use unmanaged c++/cli classes in c#?
I compiled box2d in a CLR Library project( and it did work ), then i reference this project in C#( as shown in the first block of code). So by now I can declare these objects. But when I want to set...
View Articleadvapi32.dll vs .Net4 Cryptography: Should\Can I upgrade to the .Net calls?
We have an existing codebase using the advapi32.dll calls for encrypting and decrypting out passwords and Licence files. It has been converted from VB6 to VB.Net, but we need to use it with C# now (we...
View ArticleHow do I query WMI performance data for ASP.NET 4.0.30319?
Data for the previous versions can be retrieved using Win32_PerfFormattedData_ASPNET_114322_ASPNETv114322 and Win32_PerfFormattedData_ASPNET_2040607_ASPNETv2040607 objects, but I can't find exact name...
View ArticleWMI performance query doesn't return correct data
private void GetAspNetInfo(Dictionary<string, Dictionary<string, object>> res) { if (_counter == null) _counter = new PerformanceCounter("ASP.NET Apps v4.0.30319", "Requests Total",...
View Articleis this is right to use ajax post call in mvc applicaion rather than normal...
Hi,I am working on a MVC application using repository pattern and entity framework. i am writing ajax call on most of the views for posting data and getting data.i am worried about the security , is...
View ArticleAm I Using RyuJIT?
I've deployed a WCF service to our server. In the web.config, I set the runtime environment to .Net 4.6 like this:<startup><supportedRuntime version="v4.0"...
View ArticleInitializing a dynamic variable inside an asyncrounous task
I want to perform some methods on a dynamic variable, say (C# and this is just a proof of concept):: object returnValue; dynamic myObject; Type someDynamicClass =...
View ArticleSetVirtualDiskMetadata function in C# with example
C++DWORD WINAPI SetVirtualDiskMetadata( _In_ HANDLE VirtualDiskHandle, _In_ LPGUID Item, _In_ ULONG MetaDataSize, _In_ PVOID MetaData...
View ArticleCan convert ASP.Net Web site to Web Role programitally
We want to create utility that convert all ASP.Net web site to Azure Web Role site. Is that possible that we can create dynamically create ASP.Net Web role project and then move exiting project files...
View ArticleHow to pre-JIT dynamically-constructed MSIL?
Is there a way to force MSIL-to-native code conversion for a method without actually calling the method? I'm experimenting with code to generate realtime audio in managed code. So far so good, except...
View ArticleSafe to delete PerfView temp files?
I noticed the temp files in %temp%\perfview use up a lot of space. I'm running PerfView from the command line with the "-zip" option. Is it safe to delete the files in %temp%\perfview after "PerfView...
View Article