com

Why does authenticating against LDAP with DirectoryEntry intermittently throw COMException (0x8007203A): "The server is not operational"?

If anybody has a similar story, please post details below! I'm building an ASP.NET website which needs to support authentication against LDAP. On windows, LDAP auth can be performed via Active Directory (I'm no expert, but AD seems to simply be a particular flavor of ldap). I don't control the AD and/or LDAP servers. I've tried vario...

Redemption + Clickonce = :-(

I have a normal windows forms program (Not VSTO) which deploys using click once. The issue is that loads of user are having problems with random errors generally stating (from the IClassFactory failed due to the following error: 80004005). Im deploying Redemption by changing the mode to "Isolated" which appears to work for some users bu...

What is the 'COM context' referred to in the 'ContextSwitchDeadlock' MDA message?

While running unit tests, I'm getting the MDA shown below. In the error message, what is the hexadecimal value refered to as a 'COM context'? Can I determine this value for a given STA thread? If so, how? Managed Debugging Assistant 'ContextSwitchDeadlock' has detected a problem in 'C:\Program Files\Microsoft Visual Studio ...

Compiling VB6 app w/ .NET interop, only runs if compiled on my machine

I recently developed an interop user control in .NET (Visual Studio 2008, project targetting .NET 2.0) to be used in a VB6 application. The assembly exposes 1 control, 1 class, and a few enums and structs. I developed it using C# translations of the Interop Forms Toolkit 2.0 project template found here. The assembly has a strong name and...

Find the version of an ActiveX COM component

I have a web application that uses an ActiveX COM component, for example: <OBJECT id="SomeObject" style="VISIBILITY: hidden" etc... classid="clsid:0A6AD658-F144-4412-AB94-9C8F298973E1"></OBJECT> I've produced the ActiveX control myself, and I want to be able to determine in JavaScript the version of the control that is installed a...

How to use WINDBG debugging tool for debugging??

Hi Can any one tell me how to use the WinDbg . I am created an Application it is works fine in one machine.when i try to run on another machine it fails how can i debug it using windbg. ...

How to add a reference to Photoshop CS4 COM in C#

Hello! I'm having a little problem with Photoshop CS4 automation. When I want to add a reference to the COM API in my Visual Studio 2008 project, the Adobe Photoshop Object Library doesn't show up in the "Add References" panel under the "COM" tab. However, the Illustrator CS4 Type library show up just fine. Photoshop itself run perfectl...

Create a new connection point in VC++ 6?

I have an ATL/COM project, in VC++ 6. I want an existing class, that has never before been defined to raise events, to raise events. To do this, the class will have to implement a "connection point". These events are of a type that no class has ever raised before, so I will have to create a new connection point, rather than reuse an...

Using Reflection with COM Interop

After an interop call, I get back a COM object. I know this object will be one of three possible COM classes (Class1, Class2, Class3), but do not know which one in runtime. The reflection upon that object (interopObject.GetType()) returns the base RCW wrapper of System.__ComObject. What I need is to set some properties on the object - ...

Create header file from COM TLB

Given a managed COM object and an associated tlb file, I would like to access it from some unmanaged C++ code WITHOUT using the TLB/import command. But use a header file. Is there a way to extract a header file from a TLB? Thanks ...

what is difference betwen allocating pointer object by the follwing 2 ways??

I have created a COM componenet named as Test.dll in that i have created an interface IDiscover. Now i came to 2 ways of allocating the memory as IDiscoverPtr id(__uuid(TestClass)); and Test::IDiscover *id=NULL; What is the differnce between these two....Any Information is appreciated.. Thanks in Advance ...

How to register a class in the registry?

Hi what's wrong with my code I am trying to register the class in registry in the following way but while I am debugging it shows that class is not registered and application crashes. What is wrong in this code please Help me. Test::IDiscover *pICalc = NULL; HRESULT hRes=CoCreateInstance(Test::CLSID_SqlClass, NULL, CLSCTX_INPROC_SER...

what is difference b/w RegAsm.exe and regsvr32 ?? How to generate a tlb file using regsvr32??

Hi Can any body tell me what is diff between regsvr32 and RegAsm and My Dll is C# dll so how can i import the classes to c++. ...

Creating another Window from code?

I'm currently working on a game and relaly want to add an external console to it (right now it's built into the main game window). What I would really like is to create a new Window which acts as the console with maybe a text box in the bottom to add new commands into it and a larger text box on top which outputs information. I'm using...

what's wrong in my code related to COM??

*****BLOCK_1**** if( strcmpi(appName.c_str(),MSSQL)==0 ||strcmpi(appName.c_str(),MSSQL2005)==0 ) { if (FAILED(CoCreateInstance (CLSID_SQLDMOServer, NULL, CLSCTX_INPROC_SERVER, IID_ISQLDMOServer, (LPVOID*)&m_pSQLServer))) { DMOAvailable=false; IDiscoverPtr pICalc; HRESULT hRes=CoCreateInstance(Test::CLSID_SqlClass, NU...

Can a VB6 component be compiled to 64 bit?

Is there a way to compile a VB6 component into 64 bits? My feeling is that the answer is "no", but I would like to confirm this. Please, if you can, paste a link to an authorative source that would confirm. ...

Where do I put my Office Add-In configuration page(s)?

I'm writing a COM add-in for Word, Excel and PowerPoint. This add-in has some user-configurable settings (about a page full of them actually... or perhaps even more than a single page). What is the standard way of presenting these to the user? Through a custom page under Tools->Options? (how?) Under a custom button on a custom toolbar? A...

Is there a .NET equivalent to CoCreateInstanceEx?

The closest thing I've found is using Activator.CreateInstance, but you can't pass it a server name/account information. What I would like to do is programmatically create a COM object on a different computer. (I know I can create it on a different computer by manipulating the component properties in the control panel, but I want to sta...

Publishing COM/ActiveX interface using SOAP - what's the best solution?

We have a COM api (Windows DLL file) that other systems want to access using SOAP. What would be the best choice for SOAP-enabling this? Interesting parameters are: License costs Ease of setup and maintenance Ease of configuration/development if needed Compatibility Security, security updates etc. All suggestions are welcome, please...

Going from COM to DCOM

I have a out of proc COM server (ATL based) and a Java app that instantiates objects from this COM server on the same machine. What more is needed to DCOM enable it? Is work needed on the COM server only or server and client? ...