How to understand what is blocking the main STA thread -...
Hi Everyone.I am way out of my depth in this part of the forum and do hope you can give me some guidance on what I should do.Upon opening a second Excel file Excel 2007 hangs and eventually shows...
View ArticleCombo Box Data Duplication
Hi, I'm having a problem concerning data duplication in a combo box in Visual Studio 2010. Can someone help me in allowing only different items in the combo box (i.e. I do not want to have similar...
View ArticleExcel Interop w/ VB.NET
Good Afternoon Everyone -I am having difficulty accomplishing a few specific features within Excel Interop. I can successfully open a text file using .OpenText but can't get the following things to...
View ArticleCLR Profiling API problem: IL rewriting issue "System.IO.FileLoadException:...
Failure details: System.IO.FileLoadException: Loading this assembly would produce a different grant set from other instances. (Exception from HRESULT: 0x80131401) at...
View ArticleMemery leak in mixed mode program that use native DLLs.
I wrote a mixed mode program that calls the API of a third party library built using native code. The third part library has a dependency on MFC90 and MSVCRT90/ I think there is some initialization...
View ArticleFailure adding assembly to the cache: The module was expected to contain an...
Hi I got the error while running the below commandgacutil -i "C:\WINDOWS\system32\SFImpersonator.dll"Failure adding assembly to the cache: The module was expected to contain an as sembly manifest.Can...
View ArticleDifferent compile option, different app behavior
Hello.I have developed a windows phone 8 application. Many floating point operation are performed in it. When I ran the aplication in emulator (debug or release mode with anycpu target) all was ok. So...
View ArticleCodeDom implicitly creating resource retrieval statements; causes unloadable...
I’m using a standard C# WinForms Designer to let the user create a Dialog box. When the user wants to show the dialog box, I compile it into an Assembly file (a DLL) using my own subclass of...
View Article“Value does not fall within the expected range.” when trying to call a method...
I get an exception when trying to call a method on a COM object using c#.This only happens when I try to call the method without using the COM runtime callable wrapper (RCW) interop assembly generated...
View ArticleRunning wmic.exe using c# always produces the error message “The system...
Running wmic.exe using c# always produces the error message "The system cannot find the file specified." when it works in a command prompt.C# assembly is built with "Any CPU" targeting .NET Framework...
View ArticleHow to use a SafeHandle with the WinUSB API
For an application that uses the WinUsb API, I'm attempting to use a handle from a derived SafeHandle class in place of an IntPtr: [SecurityPermission(SecurityAction.InheritanceDemand, UnmanagedCode =...
View Article.NET Exit Code 80131506
Hi All,I am trying to run some call management software on Windows 8 and, if it is used in a particular way, it crashes and the following error is received:'Framework Version: v4.0.30319Description:...
View ArticlePerform signedXml.ComputeSignature method manually
Hello,I have tried to compute enveloped signature using signedXml.ComputeSignature() method as show in example below. It worked fine, signedXml.ComputeSignature() method have calculated hash value of...
View Articlewhy does .net suck at simple math???
take the simple subtraction 43.709719 - 43.7097189which should yield 0.0000001, however when i type in that problem into the watch bar(or have a pair of values with sufficient precision i get a result...
View ArticleVisual Studio: Referencing the Same Assembly Multiple Times framework 3.5
At work I have the somewhat esoteric requirement of referencing multiple versions of the same assembly from a consuming assembly.I change the alias of the reference from global to "XXX" and in the...
View ArticlePrefView (1.6) - System.IndexOutOfRangeException
Hi, I was using PrefView 1.6 and on Windows 2008 Server and I keep getting the following exception when I try to open CPUStack for any processes. Is there any way to work around this, or would an older...
View ArticleIIS 7.5 new Application pool account is not working in Asp.net site
I have newly created application pool to use it in our new Asp.net website. When i try to access the site i am getting response asThis page can't be displayedMake sure the web address...
View ArticleAppDomain issue with casting
Background:The company I'm working for is developing an enterprise application.We need the ability to load up multiple versions of our application releases into the same memory space.The applications...
View ArticleCOM interop assemblies and PrimaryInteropAssemblyCodeBase
We have a pretty big issue with registering 32-bit and 64-bit primary interop assemblies and maintaining IntelliSense support. We ship both 32-bit and 64-bit COM in-proc servers and register the...
View ArticleIMetaDataImport::FindTypeRef fails to return TypeRef token for known Type...
I am writing and IL re-writing profiler for .NET assemblies.I have the following code snippet and applying it to the EntityFramework.dll assembly function. //Enumerate all reference assemblies for...
View Article