CLR error when using xp_cmdshell (HRESULT 0x80131022)
I've found only a few other threads on this topic including: "xp_cmdshell causes "Failed to initialize the Common Language Runtime (CLR) v2.0.50727 with HRESULT 0x80131022" error" Followed the rabbit...
View ArticleHow to convert an IntPtr to an object in C#?
Hi,I have got my hands on a managed object pointer (no its not a GCHandle) and want to convert it back to its true object. Before you ask: Yes this is unsafe GC might have moved the pointer to the...
View ArticleGC and pinned objects
Hi,in my own VB project, I'm referencing a 3rd party assembly. I'm facing a strange exception that occurs randomly and that I've narrowed down in the past two days using Windbg. It turned to be a...
View ArticleLifetime of Eventsource created with C#
Hello,for writing to the application event log I nedd an event source, but the documentation says that a created event source needs some time before it can be used.So I thought about writing a short...
View ArticleAn unmarshaling policy check was performed when unmarshaling a custom...
Background: OS: Server Windows 2012 R2 SCCM 2012 R2 Service Manager we are receiving the error Event 10031: An unmarshaling policy check was performed when unmarshaling a custom marshaled object and...
View ArticleRegisterServiceCtrlHandlerEx Access denied
Hi,I am trying to do P-invoke to to RegisterServiceCtrlHandlerEx it fails, returns 0 which is invalid handle and the Marshal.GetLastWin32Error() returns 0xc0000005. Any idea? I have tried the same...
View ArticleVisual Studio 2012 Trusting Network drives
Hi,I am trying to get Visual Studio 2012 to trust our network drive (G:). I have tried a number of caspol commands and none have made a difference. caspol -m -ag LocalIntranet_zone -url...
View Articlereg-free COM with VB6 exe/.Net dll
hope this is the right forum... i'm trying to get a vb6 exe running with reg-free COM, referencing a VB.Net dll. on XP i get the useless "configuration incorrect" error on startup. on Vista i get a...
View Articlecode first approach
Hi,I am working on code first approach. I am having problem, How to convert the datatype of column using code first approach ? Please suggest me if anyone have idea.Thanks & RegardsRavideep Bansal
View ArticleFramework 4.5 64 bit speed issue
Hi All I have been investigating a strange problem for a couple of days, and it has come to this: I have a simple WinForms applications with a lot of controls, and a lot of them nested in multi layer...
View ArticleThe located assembly's manifest definition does not match the assembly...
I have developed a Custom control that is used by various different applications. Within my control I have some Ajax functionality and in the applicaitons that use my control there are differing...
View ArticleWCF Services consume more memory after upgrading to .Net 4.5 framework
We have a product we have been using for years. It is a WCF service and we noticed after upgrading the .Net 4.5 framework in our test environment the application is consuming twice as much memory. If...
View ArticleWCF
Hi Everybody, Please anyone say what is the use of WCF? how we want to create wcf? compare between web service, and wcf. please share me any link. better with snapshots. Thank you in...
View ArticleDifference between messagebox & sleep when using...
I'm making some simple web crawler for specific website. (that site is not mine.)It's behavior is navigate page by using System.Windows.Forms.WebBrowser. and documentcompleted event listener find...
View ArticleForcing basic authentication from desktop application
I have a C# desktop application that stores login data in a database, and uses that to automatically login to local devices that have an HTTP interface. I am using a WebBroswer control to show the web...
View ArticleHow to determine if CCW have released reference to wrapped object?
Is there any way to determine that CCW have released reference to wrapped object? I have some internal references to wrapped object so GC do not destroy wrapped object, but I still want to know that...
View ArticleDeadlock in a multidomain application. GC suspected
Hi, I''ll try to explain our problem we experience with one of our application.Our application is a multi AppDomain based Windows Service using the framework .Net 4. This is an application with only...
View ArticleSerialPort message frame detection
Using .NET 4.0 on Windows 8.1 (x64).I need to detect message frames in a "semi-real-time fashion", i.e. the only way to detect message frames are by detecting a mandatory minimum silent interval...
View ArticleThe type or namespace name 'XXX' could not be found (are you missing a using...
I have seen posts regarding this error message many time but none of them gives the answer to the problem. I will try to explain what happens very simple. I have 64 bit Windows 7, Visual Studio 2010....
View Article