cant give reference to System.runtime.dll
if i give C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.2\Facades path the studio shows yellow to and says reference is missing .if i give...
View ArticleCommon Language Runtime error after upgradation to .NET 4.6.2
Very recently, our application was upgraded from .NET FW 4.5.2 to .NET FW 4.6.2. The application is a web application with 2 solutions, the front end solution which is hosted on IIS and the Services...
View ArticleHow to fix KB2640103 bug from .Net Framework 4.0
Our application crashes on Window 7, window 8.1, window 10 and windows server 2012 R2 due to the known .net Framework 4.0 bug (KB2640103), error description:...
View ArticlePass struct array from COM object to C# with SAFEARRAY
Hi All, Here's my problem: - I have a com object which does some processing, and the results must be saved in a SAFEARRAY; - there is another module written in c# which needs to pick up that vector...
View ArticleWindows Server 2012 having extended support for CLR 2.0, but are there any...
Windows Server 2012 have extended support for .Net application build in 2.0 or 3.5 with CLR 2.0 up to beginning of 2023.Are there any risk involve in running .Net application build in .Net 2.0 or 3.5...
View Articleuse a c++ struct in c#
Hello,I'm trying to call a c++ function in my c# application. I've been able to call the function using dllImport. But one of the parameters is a c++ struct :struct Item { struct EType { enum Type {...
View ArticleLimit ThreadPool.SetMaxThreads to a number smaller than the number of...
Hi,The documentation of ThreadPool.SetMaxThreads mention: the maximum number of worker threads or I/O completion threads cannot be set to a number smaller than the number of processors on the...
View ArticleCustom Control Serialization issue
I have a custom control which is inheriting "System.Windows.Controls.ContentControl". When i am trying to serialize my control it throws below exception.my control:[Serializable()] public class...
View ArticleVariable names are changing case during runtime
First, some background. Running Visual Studio Professional 2015. This project has a mix of VB and C# code. The code where the issue takes place is a VB controller. This code has existed and...
View ArticleHow to filter managed threads that are unsafe or during JIT compilation or...
Hi,I am writing a sampling profiler, but I get some trouble.I make a profiler for iis. When the site start and start sampling at the same time, the site will be very very slow , and then about 2~3...
View ArticleC# Combo Box Auto Suggestion code gives error 'current thread must be set to...
public void lists() { foreach (string s in tracker.projectsCollection) { comboBox1.Items.Add(s); } textCase.AutoCompleteCustomSource = tracker.namesCollection; textCase.AutoCompleteSource =...
View ArticleHow can I access the CLR stress log in windbg? - Error "SOS stress log not in...
This is essentially the same query as that raised by Rizwan Sharif in 2012 (Question: SOS.dll GC History commands). The difference is that all the necessary registry settings have been applied (as...
View ArticleDebugging Azure App Service w/WinDbg - can't load clr.dll
I have a full minidump from an Azure App Service. It comes with the .dmp file, sos.dll and mscordacwks.dll.I have WinDbg - x86 is the version that can open this dump file. I then use .load...
View ArticleCompressing folder in Windows application
Hi, Is it possible to compress (zip) a folder in .Net without using any third party tools ? Thanks, Raju S
View ArticleHow to implement interface of C# use COM of native C++?
I'm using .Net Core in cross platform, include windows and linux. I can't use ATL.Iembed the.Net core to myexecutableprogram.I hope expose c++ class instance pointer to .Net Core(C#), and convert to...
View Articleversions and assemblies
hiI've got some C++/CLI Projects. One I've done in Visual Studio 2010. It was targetet to v4.0 and was using Microsoft.Build.dll (version 4). That works fine. (we used it to build stuff and things like...
View ArticleService Referance Debug Release Differ
Hey, I am in need of being able to set a service reference however i need it to have a different address for debug and release as i don't want to accidentally send something up to the released...
View ArticleMulticorejit vs Forcejit in .net apps
Hi,HiI have asp.net project and increase the warmup performance I use System.Runtime.CompilerServices.RuntimeHelpers.PrepareMethod(method.MethodHandle); to forcejit.But as I read after .net 4.5...
View ArticleMemory leaks when using a C# COM interop class from C++?
I am trying to use a COM object written in C# from C++ and I don't understand why the memory becomes greater and greater. In C#, we have a very simple COM interface : public enum COMObjectErrorCodes {...
View ArticleFaulting module name: clr.dll" error message when you run a Microsoft...
The CLR.dll is crashing and my IIS pool is getting restarted. The .net version we have 4.6.2.Can someone help.
View Article