warning msg didn't quite understand
there was a mismatch between the processor architecture of a project being bruit"MSIL" and the processor of the reference "Oracle.dataAccess, version2.112.1.0, Culture=neutral,...
View ArticleReferencing a .Net 2 Dll in .Net 4
I have 2 DLL's referenced in my project, both were written in .Net 2 and my application is in .Net 4.I am developing the application in an XP environment using VS2010, when I debug, or execute the exe...
View ArticlePeverify error - Unable to resovle token
hi,I am writing a very simple example from a book and I am getting an error when I run Peverify. It says it is unable to verify token. There are two files in the example. The first one - CILCars.il...
View ArticleHow to pass unmanaged C++ object to C# library and call methods on C++...
I'm new to C++ and COM Interop and will appreciate your help in pointing me to samples/posts that achieve the objective of passing a unmanaged C++ object to C# library and calling methods on C++ object...
View ArticleLDAPConnection heartbeat healthcheck and unbind
Dear all,We're using .net framework 2.0 using COM+ ServicedComponent as objectpool to launch ldapconnection. We want to have health check feature to poll ldap server periodically similar as heartbeat...
View Articleservicedcomponent which function call to return to objectpool
Dear all,We're using .net framework 2.0 with Com+ servicedcomponent and objectpooling feature. Which function call in servicedcomponent is dedicated to release the servicedcomponent to objectpool...
View ArticleHow to retrieve and parse the signature of a mdtTypeDef
HiI'm having a problem retrieving and parsing the signature of a mdtTypeDef token. My metadata knowledge is not the best, so for all I know I might be going about this in the completely wrong way.I've...
View ArticleUse c++ class library in C#, x86 vs x64, Framework 3.5 vs 4.0
Hi,I'm developing a simple c++ class library to use in C# console application. All works fine if I develop with Framework 4.0 for x86 and for x64. The same code used with Framework 3.5 for x86 is ok,...
View ArticleC++ V/s C# - Performance ?
I wanted to ask whose performance is better C# or C++. I believe that C++ is faster than C#.It will be very helpful if you provide some codes that might help keeping your argument. Thank You,Feurer
View Articlereflectiontypeloadexception unable to load one or more of the requested types
Hello,I have a dialog which loads all classes that belongs to given Interface in the current Assembly , that works very nice without any error on my maschine but does not work on my collegues maschine...
View Article"Cannot create ActiveX component" / Win8 / VB 2012
This is not a question but rather a finding of something in case any one else runs across the same problem.When using "CreateObject" in VB 2012 of an unmanaged com object on a system that was...
View ArticleLogin and Password are saved for bank websites even though I don't give...
When I login to mybank.com for the first time I supply my login and password, I am not prompted by my browser to save the login and password. I disabled all autologin features for my browser and in...
View ArticleVS2010 Crashes on debug
Hi! I've encountered a strange problem with VS2010 SP1 on one of our networks. We have 2 separate managed networks. The only real difference between them is a few group policies. On one network VS2010...
View ArticleApplication crashes on the main form constructor call deep inside .Net framework
One of our customers experiences a problem with our GUI app. It crashes on start during main Form initialization somewhere inside .Net Framework. This exception cannot be cought by standard .Net...
View ArticleCould not load file or assemple...incorrect format
My application runs well in debug mode. When I moved it to the server (SBS 2011), it failed with the above error. I have installed VS 2012 and copied all my files to thewwwoot folder on the server...
View Articlemscorlib Sort ERROR
The following ERROR occurs win trying to run the following code as it appears in the Pro C# 2010 and the .NET 4 Platform 5th Edition from Apress on page 357. I have the .NET 4.5 installed in Windows 7...
View ArticleGet the title of aspx page in code using reflection?
Hi, I was wondering, I want to get the titles of all the pages in my assemblies using reflection. I already know I can get the files in the assembly, but is there any better way to do this than a...
View Articlehow to provide system.diagnostics.performancecounter impersonation through c#?
i have used the following code,static void Main(string[] args){PerformanceCounterCategory cat = new PerformanceCounterCategory("Processor", "172.16.2.171");List<PerformanceCounter> counters = new...
View ArticleHow to deal with events/callbacks from something that appears to be on an MTA...
I am writing code with Visual Studio 2010 in VB.net with a WPF project. I have added references to MSHTML and SHDocvw as I am automating an Internet Explorer window. Note I am not hosting the...
View ArticleimpersonateValidUser works well when using administrator account but,for non...
hi. i am using impersonateValidUser(i will paste my code in the following) to access a folder.i've FINISHED DEVELOPMENT OF PROGRAM and i've DEPLOY and INSTALL on some people's PC. for some "good"...
View Article