microsoft.public.dotnet.framework.component_services Archive - June 2002
Post a message to this list
Messages
Page: 12
ERROR: Failed to register assembly (4 replies)
microsoft.public.dotnet.framework.component_services
I have two components. The first, called McpDac, supports tranasctions (TransactionOption.Supported). The second, QmcaOrder, requires new transactions. QmcaOrder uses the data access methods in McpDac when accessing the db. The rest of the web app also uses McpDac to access the db but not in transaction mode. I have created the .snk files no problem and referenced them in the AssemblyInfo.cs file....
message loops (7 replies)
microsoft.public.dotnet.framework.component_services
Hi, Suppose the Main method in a windows application is marked with the [STAThread] attribute and the Main method calls Application.Run(new Form()). Being a STA thread, the main thread uses a message loop. Does Application.Run initialize another message loop or it uses the same ? If there are 2 message loops, how do they relate to each other ? I suppose it's like this: bool firstTime true; while (...
Using CDO from COM+ or a service (2 replies)
microsoft.public.dotnet.framework.component_services
Has anybody had any success interoping with CDO 1.21 in either a component that runs under COM , or in a Windows Service? I'm trying to build a way to give broad access to send mail from a particular Exchange 5.5 mailbox via a code component. When I reference CDO.DLL in a Windows App, the code below works fine. But when I use the same code in a Windows Service or in a COM component, I get a UNKNOW...
Com+ and OleDBParameter (2 replies)
microsoft.public.dotnet.framework.component_services
Hi. I am trying to implement a COM component using JIT and Object Pooling. I have the component set up and registered and everything is working fine, except if I call a method on the object that accepts an OLEDBParameter object as an argument. If I do that, I get an error that says: System.Runtime.Remoting.RemotingExceptionL This remoting proxy has no channel sink which means either the server has...
AutoComplete attribute on ServicedComponents (2 replies)
microsoft.public.dotnet.framework.component_services
I wonder if when the AutoComplete attribute is applied to a method, and you explicitly call SetAbort, if upon return, then the ServicedComponent calls SetComplete(), overriding your intention to Abort the transaction? [VB.Net]: Inherits System.EnterpriseServices Public Class TestClass AutoComplete() Public Function DoSomeWork(byval param1 as String, byval param2 as Integer) as Boolean Dim serviced...
Newbie: How to register a COM+ serviced component (3 replies)
microsoft.public.dotnet.framework.component_services
Hi I have created(?) a simple COM serviced component as follows Assume that my dll name is Hello.dll Module Name is Hello.vb Key file name is Hello.snk Imports System Imports System.Reflection Imports System.EnterpriseServices Assembly: ApplicationName("Hello") Assembly: ApplicationActivation(ActivationOption.Server) Assembly: AssemblyKeyFile("Hello.snk") Public Class HelloServer Inherits Serviced...
Destructor not called on shutting down COM+ Application (7 replies)
microsoft.public.dotnet.framework.component_services
If my COM component (using object pooling) is configured as a Server Application, the destructor does not seem to be getting called when I shut down the application. If it is configured as a library application, running under IIS, the destructor in just one instance of the object gets called when I stop the IIS service. I really need to run some clean up code when each instance dies can anyone tel...
Serviced Component with interface (2 replies)
microsoft.public.dotnet.framework.component_services
Hi all! There is a component (C#) which inherits EnterpriseServices.ServicedComponent and registers in COM . And assemble is registered in GAC. The component is invoked from Web Service. Everything works well, but I want to describe interface and inherit the component from it as well. I did it and the component (which in fact has not changed) can not be called as soon as I told it to inherit from ...
Automatic MSMQ transaction, rollback not working (8 replies)
microsoft.public.dotnet.framework.component_services
a) In a serviced component with TransactionOption.Required I receive from a local private transactional queue an write to a SQL server table. Rolling back the transaction works for the database but not for the queue. Is there any trick I am missing? I tried using Automatic and throwing an Exception and ContextUtil.SetAbort in both cases the messages are deleted from the queue instead of remaining....
Replacing ActiveX-Exe by NET-Component? (3 replies)
microsoft.public.dotnet.framework.component_services
Hi, i want to replace a vb6 ActiveX Exe by a VB.NET component that is doing the same. The vb6 activeX Exe is used as an out of process component. It is started by creating an object to these in a "normal" vb6 executable. Now i want to replace the activeX exe by a NET Component. The calling executable is still vb6. I think a can do these with "remoting", but how? I can call a NET DLL from from the ...
COM+ .NET Tutorial (3 replies)
microsoft.public.dotnet.framework.component_services
Hello All, Does anyone know any good tutorials that describe the development of COM applications using the .NET framework? I consider myself a pretty good COM programmer and have written quite a few COM applications using Visual C 6.0. However, somewhere along the lines, my .NET COM applications seem to work, but I am not sure if they should be programmed differently under .NET (issues like overhe...
Word automation with .NET (3 replies)
microsoft.public.dotnet.framework.component_services
Hello! I'd like a C# programm do automation on an already running instance of Word2000. So I cannot use "ref new Word.Application()" but instead I have to get a reference of the type Word.Application to that running Word2000 instance. Maybe it's something about a 'GetObject("Word.Application")' method, but there are several and I don't know which one to choose and how to use it to obtain the refer...
ParamArrays in VB.NET (2 replies)
microsoft.public.dotnet.framework.component_services
I am in the process of re developing a VB6 Data Access Layer component into VB.NET. I have one method that I use to create all my parameters for my proc calls. In VB6, this worked by passing an ADO command object and a ParamArray to my function. The ParamArray would be a 2 dimensional array of variants, where one dimension stores the parameters, and the other dimension stores the parameter fields,...
Activation cycles (2 replies)
microsoft.public.dotnet.framework.component_services
Hello all, I have developed a COM component using C# and declared it with the following attibutes: [Transaction(TransactionOption.Required)] [ObjectPooling(true, 2, 5)] [EventTrackingEnabledAttribute(true)] [ClassInterfaceAttribute(ClassInterfaceType.AutoDual)] class trxCustomers : ServicedComponent { } In my component, I have a another COM component that logs the method calls along with the trans...
COM+ and Web Services (3 replies)
microsoft.public.dotnet.framework.component_services
I have created a very simple C# assembly with a single method int Add(int x, int y). I have built it with a strong name (sn.exe), registered it with COM (regsvcs.exe) and placed it in the GAC (gacutil.exe). Under the COM activation tab I then enabled SOAP. From a separate C# project I then added a Web reference to my newly exposed SOAP interface. However when I attempt to use the web service I rec...
accessing MS-Word keywords from C# (2 replies)
microsoft.public.dotnet.framework.component_services
Hello! I can't access the keywords list of a MS Word document from C#. Can someone tell me how to get a reference in C# to that string that contains the keywords of a Word document? In VB no problem: ActiveDocument.BuiltInDocumentProperties(wdPropertyKeywords) "another keyword"; (is the same as:) ActiveDocument.BuiltInDocumentProperties.Item(wdPropertyKeywords) "another keyword"; In C# I tried: us...
COM+ queued component method parameter (2 replies)
microsoft.public.dotnet.framework.component_services
I want to pass an object(instead of primitive type) to a COM queued component as method parameter using C#. I cannot find the dll with the IPersistStream interface. Thanks.
Constructors with COM+Application as a server (4 replies)
microsoft.public.dotnet.framework.component_services
Hello to all, Question on the COM server. Is the constructor called when a compenent is created. It dosen't to be on my end so I'm not sure if thats by design. Also is there a way to read a Appconfig file? Thanks Randy
Interfaces and ServicedComponents (4 replies)
microsoft.public.dotnet.framework.component_services
Hi, when do I have to use Interfaces when developing ServicedComponents? Does it has something to do with unmanaged clients using my Serviced Components? Thanks
Assemby registration (3 replies)
microsoft.public.dotnet.framework.component_services
I've got an assembly that inherits from System.EnterpriseServices.ServicedComponent it has also been signed so that it can be put in the gac. After building the assembly and putting it in the gac, I get the following error on the first attempt to use it: System.Runtime.InteropServices.COMException (0x8004E025): COM Activation failed because an initialization function failed. Check the event log fo...
You made a method call on a COM+ component that has a transaction that has .... (11 replies)
microsoft.public.dotnet.framework.component_services
I have several transactional Serviced Components that call each other. Everything works fine when COM application is library. If it is server, I get this error message: You made a method call on a COM component that has a transaction that has already aborted or in the process of aborting. It does not look that I call components that aborted transaction and it is really hard to understand what is g...
No class interface (2 replies)
microsoft.public.dotnet.framework.component_services
When I use the regsvcs to register my code: Option Strict On Option Explicit On Imports System Imports System.EnterpriseServices Imports System.Runtime.CompilerServices Imports System.Reflection ' Create assembly attributes assembly: ApplicationName("AccountCOM") assembly: AssemblyKeyFileAttribute("COMKey.snk") Namespace AccountService Transaction(TransactionOption.Required) Public Class Account I...
Custom expection and Enterrpise Services (2 replies)
microsoft.public.dotnet.framework.component_services
Is there anyway to alter the HRESULT to Type mapping used with the DCOM protocol in EnterpriseServices ? I would like to throw custom exceptions from EnterpriseServices components without having them deserilized as COMExceptions. Any ideas ? Morty
DNA.Net Project (2 replies)
microsoft.public.dotnet.framework.component_services
Hi, I suppose that a common framework scenario for a .Net project is n computers serving ASP.NET, calling Serviced Components methods in another COM layer via proxy. The COM layer access the database cluster. In this scenario, my COM applications must be set to Server instead of Library, because of the cross machine communication. But, when configuring COM attributes in my ServicedComponents I get...
Problem with data type mapping when using automation (4 replies)
microsoft.public.dotnet.framework.component_services
I was trying to use automation of a MS Office application from .NET. Communication seems to work over COM and usally .NET nicely maps datatypes from a COM server to .NET types. With the exception of Collections. Everyone who has worked with VB in MS Office, has heavily used these collections, but from .NET, it seemed impossibe for me to access the objects in these collections. The method call whic...
Ad
Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification