microsoft.public.dotnet.framework.component_services Archive - March 2004
Post a message to this list
Messages
Page: 12
Use of static methods (4 replies, VIP)
microsoft.public.dotnet.framework.component_services
Hi, I was wondering if I can use static methods in a class that derives from the ServicedComponent. The expected callers of my class will be only other .NET clients and the static methods require COM services such as support for automatic transactions. What are the restrictions or recommendations for coding ServicedComponent derived classes? Thanks, Ohad Ohad Young Medical Informatics Research Cen...
COM+ Application Shutdown Cleanup (2 replies)
microsoft.public.dotnet.framework.component_services
I have developed a simple COM Component that I ve enabled Object Pooling on. It works just fine except that it doesn t execute Dispose or Finalize when the COM Application is being shut down. What do i have to do ? The class inherits ServicedComponent by the way. Niklas Manacore Softwise AB
AutoComplete (2 replies)
microsoft.public.dotnet.framework.component_services
Hello, We have a question about the transactionshandler in COM We have transaction objects like [TransactionAttribute(TransactionOption.Required), JustInTimeActivation()] public class BookTransaction : ServicedComponent [TransactionAttribute(TransactionOption.NotSupported), JustInTimeActivation()] public class BookService : ServicedComponent [TransactionAttribute(TransactionOption.Supported), Just...
AutoComplete and ContextUtil.DeactivateOnReturn (2 replies)
microsoft.public.dotnet.framework.component_services
What is the difference between AutoComplete attribute and ContextUtil.DeactivateOnReturn method? I would like to use AutoComplete. However I want to find out if stamping a method with AutoComplete is less efficient than calling DeactivateOnReturn method when using non transactional serviced component? Thanks. Raghu/..
ObjectPooling attribute (2 replies)
microsoft.public.dotnet.framework.component_services
We have a situation where object pooling may be used or not and it will be decided by the machine on which our serviced component is installed. The documentation for ObjectPoolingAttribute indicates that if a serviced component is stamped with this attribute, it should not be unchecked in COM catalogue. I wonder what is the reason behind this statement. Can some one explain? Here is our situation:...
Using EnterpriseServices with Remoting (2 replies)
microsoft.public.dotnet.framework.component_services
Hi! I want to use a serviced Component using JITA and Object Pooling as a server activated remoting component, as ServicedComponent inherits MarshalByRefObject. As the Component uses JITA and Object Pooling, it's stateless. I'm wondering, wheter I should export it as a "Single Call" or a "Singleton" Object. If I use it as a Singleton, what will happen, if a client calls a method on this object ? I...
Application Root Directory and config files (3 replies)
microsoft.public.dotnet.framework.component_services
Hi, I would like to have a config file to my Serviced component where I can keep a SQL connection string. I have found some information when searching saying that I should set the "Application Root Directory" to the folder where I keep my configuration file and rename the file to dllhost.exe.config. I have done this, but the application still executes in Windows\System32 on my XP development box. ...
COM+ and C# (2 replies)
microsoft.public.dotnet.framework.component_services
Hello, I am currently working with a C# solution within COM with an Oracle 9.2.0.3 backend. I have the following questions. 1.) Should there be one Oracle Session per COM transaction? 2.) Is it possible to debug within transactions (Libaray and Server activiation) 3.) If I can't debug within transactions what else could I do to replicate the transactional environment? Thanks in advance....
and No class interface error when there is one (9 replies)
microsoft.public.dotnet.framework.component_services
I get the classic error when I register my ServicedComponent with regsvcs: WARNING: The class 'AdTools.AuthenticatedComServer' has no class interface, whic h means that unmanaged late bound calls cannot take advantage of AutoComplete me thods. However, it *does* have a class interface on it. class code snippet // Force this class to recognize IAuthenticatedComServer // as its public interface. [Cl...
SendKeys - PostMessage problem (3 replies, VIP)
microsoft.public.dotnet.framework.component_services
Hi all. Probably a quick one, I'm using PostMessage to send keys to an applicatoin but how do I convert the key string to a long values so that I can pass this to the wParam. The definition is below Private Declare Auto Function PostMessage Lib "user32" ( ByVal hWnd As IntPtr, ByVal Msg As Integer, ByVal wParam As Long, ByVal lParam As Long) As Boolean This works PostMessage(myWindow, WM KEYDOWN, ...
How to configure existing component(no source code,written by other language) transaction options programlly? (3 replies, VIP)
microsoft.public.dotnet.framework.component_services
thanks in advance
What is causality? (2 replies)
microsoft.public.dotnet.framework.component_services
Hi. I have read the MS documentation about COM but I find myself very confused about some concepts. My main doubt is about synchronization and causality. It seems that these elements are related, but how exactly? Any help from you will be great!! Thanks, Robert Scheer
Object pooling timeouts (2 replies)
microsoft.public.dotnet.framework.component_services
Suppose I configure a class with object pooling, minpoolsize 5 and maxpoolsize 20. When my client calls the component for the first time, will COM creates 5 instances of my component in advance? When the component is not being used, will the 5 instances remain in the pool? TIA, Erik Cruz
COM error 429 ? (2 replies)
microsoft.public.dotnet.framework.component_services
Hi, I am trying to create a simple comobject that i want to use in ms word, I have used the sample included in VS .NET 2003 (you se it below) and compiled with COM Interop Now in Word i go to reference and add it by selecting the .TLB file created then using the following simple code i try using it but it allways fail with "429 cant create activex" or " 2147024713 Automation error, cant create fil...
Global cache..reference (2 replies)
microsoft.public.dotnet.framework.component_services
Hi can anyone tell me how to add reference to a dll that has been registered to the Global Assembly Cache? I generated the 'key' using 'sn' and then registered it to the global cache. But, I don't know how to refer it in my application(using VS.NET). When I tried this in the command prompt csc /r:Eng Run.cs (where Eng is the name of the assembly in the global cache) the compiler threw this error e...
design pattern (10 replies)
microsoft.public.dotnet.framework.component_services
this is the last announcement project ends in 2 weeks... if you did not allready answer the questions take this one minute!!! Hi developers! Are you using design pattern? And do you want to help me with my research project? Ok you only need two minutes I made a little survey form (8 very short questions). There are no mail address or other personal data questioned Just point your browser to: http:...
Unable to instantiate VB6 COM+ object from VB.NET (2 replies)
microsoft.public.dotnet.framework.component_services
Hi there, I got a legacy VB6 COM component called MyAppServer.dll. It is listed under Component Services | COM Applications. I have no trouble to use VB6 client to instantiate its objects. However, when I useVB.NET client to do it, I got: "Implementing class 'MyAppServer.myClass cannot be found" error. I believe the problem is related to COM Services Type Library. The VB6 COM component implements ...
List of Roles/Users (2 replies, VIP)
microsoft.public.dotnet.framework.component_services
We have a COM Application that uses role based security. There are numerous roles. I have been asked to assign USER2 to all of the roles to which USER1 is a member. Where can I find this information without opening up each and every role and looking for USER1. Michelle
Word and Serviced Component (3 replies)
microsoft.public.dotnet.framework.component_services
Folks, I developed 2 things: a serviced component and an assembly that interacts with the Word.Application. The serviced component consumes the assembly, therefore this assembly interacts with Word.Application. The problem is: When too many users are generating documents at the same time, the component don't having a normal behavior. UserA called the GenerateDocuments method, next the UserB called...
CRM article (2 replies, VIP)
microsoft.public.dotnet.framework.component_services
Hi. Can anyone point me to an article talking about creating Compensating Resource Managers and .NET? I found an article on MSDN, but it is from the 2000 year, so it does not use .NET Thank you. Julian
Nested Transactions... Need help (2 replies, VIP)
microsoft.public.dotnet.framework.component_services
Hi. I have a serviced component which calls a Data Access layer. The design of the DAL was done without any thoughts of being called from a ServicedComponent. ( Generated by NtierGen ) The problem is that the DAL calls BeginTransaction() & CommitTransaction() several times when the Serviced Component does its work. This seems to mess up the Distributed Transaction, when the second BeginTransaction...
Using a ServicedComponent as a remote component (2 replies)
microsoft.public.dotnet.framework.component_services
Hi! I want to use a serviced component (using JITA and object pooling) as a remote object, as ServicedComponent inherits MarshalByRefObject. Shall I export this serviced component as a "Singleton" or a "SingleCall" Object ? Best Regards, Manfred Steyer
Transaction error...Either enlist this session in a new transaction or the NULL transaction (6 replies, VIP)
microsoft.public.dotnet.framework.component_services
I am doing some database work, nothing fancy, just creating som new rows and stuff. When I get this error. Distributed transaction completed. Either enlist this session in a new transaction or the NULL transaction Exception Details: System.Data.SqlClient.SqlException: Distributed transaction completed. Either enlist this session in a new transaction or the NULL transaction When I remove the Servic...
distributed transaction problem (5 replies, VIP)
microsoft.public.dotnet.framework.component_services
Hi All, I'm having a problem running distributed transactions from a middle tier server to a SQL Server. I'm getting the following error when it attempts to connect to SQL Server inside a transaction: [COMException (0x8004d00e): The transaction has already been implicitly or explicitly committed or aborted] I've researched other posts on this error and none of the resolutions seem to help in my ca...
Combining 2 assemblies..GAC (3 replies, VIP)
microsoft.public.dotnet.framework.component_services
SQLParser.dll has a reference to Parser.dll. "How can I contain both the DLLs in a single assembly?" This assembly file has to be published in the GAC. Will the reference (early binding) take place automatically or should I have to use the Assembly.Load function? Any help is appreciated. Thanks, Arr S
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