microsoft.public.dotnet.framework.component_services Archive - July 2002
Post a message to this list
Messages
Page: 12
Call context cannot be accessed after call completed? (2 replies)
microsoft.public.dotnet.framework.component_services
I'm getting the following error when trying to instantiate a simple .Net class (as an HttpHandler). (Although I was getting the same error when trying to implement this as a standard class, so I do not think that this factor has any bearing on my problem.) Call context cannot be accessed after current call completed Here's the very short and simple code. (I'm just trying to demonstrate for a clien...
Component versions (2 replies)
microsoft.public.dotnet.framework.component_services
Hello all, Anyone have a clue as to how I can pull the version from com components, and\or rferenced dll's into the main app for information purposes? For troubleshooting purposes, If a problem arises, I can say"whats the version of this component?". Any help would be appreciated. Scott.
ServicedComponents are too slow or ADO.NET is too slow? (6 replies)
microsoft.public.dotnet.framework.component_services
I develop a ServicedComponent that its main purpose is to interact with an SQL Server v7 database in order to execute some sql procedures and return values or datasets to an application (an ASP.NET app). This servicedcomponent is the upgrade of my old COM component. Look the following two functions, one from the new component and the other from the old COM component: Function from new Servicedcomp...
Problems with Object Pooling (9 replies)
microsoft.public.dotnet.framework.component_services
Hi all, I am experiencing a problem which leaves me clueless: I have a ServicedComponent that uses JIT, ObjectPooling (and EventTracking just for debugging purposes). When I call the component from my client, the first time (i.e. when there are no objects in the pool) all will be well. On the second time, however, I am getting an exception with the following message: "Cannot access a disposed obje...
Exception: Root component wanted to commit, but transaction was already commited (2 replies)
microsoft.public.dotnet.framework.component_services
Hi! I have a problem where a serviced component calls commit, before it should be. This leads to a exception saying somthing like "Root component wanted to commit, but transaction was already commited. Enlist the transaction in...... ". Let me describe my design: Data access layer consists of Serviced Components written in C#. They are declared with the "Transactionoption.Required" or "Transaction...
Problem getting ASP.NET objects (Session, Application, etc) from a Library ServicedComponent. Any ideas please? (3 replies)
microsoft.public.dotnet.framework.component_services
I'm writing a serviced component that will be called from aspx pages. The problem I have is that I can not access ASP.NET objects like Session, Application, etc and always gets an "Object reference not set to an instance of an object" error. My serviced component will run as a Library component. Below is part of my code: Component Assembly Imports System.Reflection Imports System.Runtime.InteropSe...
Can you help me with this Constructor String? (7 replies)
microsoft.public.dotnet.framework.component_services
I'm puzzled. Transaction(TransactionOption.NotSupported) Public Class DataBrokerSQL Inherits ServicedComponent Implements IDataBroker Private m Constructor As String "" .... blah blah blah.. Protected Overrides Sub Construct(ByVal s As String) m Constructor s End Sub OK, here's what's happening. The object is in a COM Library application. It installed itself (neat!). Sub Construct is called, I can...
Deserialize a BinaryFormatter stream without framework (3 replies)
microsoft.public.dotnet.framework.component_services
Hello, Imagine this situation. You are a C# programmer and you have written a program that write a custom object into a binary file with BinaryFormatter and FileStream classes. Now, you give one of these files to a VC 6 programmer without framework, how can he deserialize the object?? How BinaryFormatter works? and using XmlFormatter, and using my own serialize/deserialize funcions? ?, What soluti...
Invalid ServicedComponent-derived classes (4 replies)
microsoft.public.dotnet.framework.component_services
I would appreciate anyone's input on this. I have the following object hierarchy in C#. Person ChildObject BusinessObject : ServicedComponent Person inherits Child etc. BusinessObject is of Type: ActivationOption.Library Transactional Poolable JITActivation LoadBalancingSupported Upon invocation of the Person obj I get the following error: Invalid ServicedComponent derived classes were found in th...
Not Getting the Base Exception? (4 replies)
microsoft.public.dotnet.framework.component_services
Hello All, I've been trying with no luck to get the base excepection that was thrown in a service component in my UI to dispaly it. But the Original Base Excecption is not there. It seems like the when you Throw an error in the service component only the Thrown exception is pass on. Example of the Sevice Component Try 'working Catch Ex AS Exception Throw new Exception("Custom Error Message", Ex) E...
COM+ internal failure causing aspnet_wp.exe deadlock? (5 replies)
microsoft.public.dotnet.framework.component_services
I have a set of .NET components that are derived from ServicedComponent. These serviced components are marked with TransactionOption.TransactionRequired, and uses the AutoCompleteAttribute(true) on all methods. These components are strong named and registered in the GAC, as well as registered in COM using the regsvcs.exe utility. The first component accessed on the web server locks the ASP.NET pag...
C# COM+ component leaking memory? (4 replies)
microsoft.public.dotnet.framework.component_services
Maybe you guys can help me with this memory leak. I've created a COM component in C# to wrap retrieving a message off a MSMQ and dropping the body of the message into the database. The COM component is being called from a multi threaded console application. Over the course of an hour, my application consumes all the available memory on my test server. I've tracked the leak down to where my applica...
COM+ to .Net Conversion Question - How to get user name? (14 replies)
microsoft.public.dotnet.framework.component_services
How does this COM operation get accomplished in .Net? UserID GetObjectContext.Security.GetOriginalCallerName Will my new .Net class need to be installed under COM ? How does this work? via InterOp? (This particular component is configured for COM solely for the purpose of this one operation. It is non transactional. If I can leverage the facilities of the Framework for this operation then it won't...
Dispose (bool Disposing) does not appear to be called in ServicedComponent (2 replies)
microsoft.public.dotnet.framework.component_services
Hi: I have built a serviced component that overrides the Dispose(bool Disposing) method to release external resources. The method also writes an entry to the event log whenever it is called. The event log did not however, show any entries. I then ran the component (attached to dllhost.exe) & observed that other breakpoints in the code worked as expected, but breakpoints in Dispose(bool Disposing) ...
Is n-Tier Dead? (81 replies)
microsoft.public.dotnet.framework.component_services
I'm looking at the SQLDataReader object which is acomponent of Data.SQLClient, a portion of the .Net framework. The SQLDataReader is a derivative of the MarshalByRef base class. This means, that in order to use the SQLDataReader, the consumer of the DataReader must be in the same physical tier. Otherwise, every access to the DataReader will be across at least a logical tier boundary, which preclud...
Transactions and 0x8004D00E? (6 replies)
microsoft.public.dotnet.framework.component_services
Hi all, I have a really strange problem with the transactionhandler in COM . I have designed a demo enterprise system with the following services which are involved with in my transaction process: Facade objects Like: [TransactionAttribute(TransactionOption.Disabled)] public class LibraryMaintainer : ServicedComponent Transaction objects Like: [TransactionAttribute(TransactionOption.Required)] pub...
Trying to Dunamically Load Assembly via Reflection (2 replies)
microsoft.public.dotnet.framework.component_services
I have a flexible object creation method which first tries to create the supplied ProgID as a COM object. If that fails, then the method tries to create the supplied ProgID as a .NET object. The reason I do this is because the application is extensible, allowing the customer to 'plug in' their own modules, as long as a specific interface is supplied. Here's the syntax which I use to create the obj...
How many objects are in the pool? (4 replies)
microsoft.public.dotnet.framework.component_services
Hi all, Over the last few days I've been playing around with Serviced Components quite a bit in an effort to find the best settings etc for my app. One of the features I will probably be using is Object Pooling. The object pooling is working fine, but I'm not 100% sure that I'm cleaning up the object properly on the client side. To be sure that the objects are being handled in the pool like I thin...
Mixing .NET Remoting and DTC/COM+? (3 replies)
microsoft.public.dotnet.framework.component_services
We have a distributed framework that uses remoting to connect the nodes. We have developed channel sinks that serialize our proprietary security and auditing information via CallContext. It works very well, so near as I can tell, we must continue to use remoting. However, we also really want to make portions of this framework transactional, and inheriting from ServicedComponent is not a problem. T...
'RegistrationHelper.InstallAssembly' is not supported on the current platform (5 replies)
microsoft.public.dotnet.framework.component_services
Step1: I created a class called BOACryptor.Cryptor. It uses EnterpriseServices so that the administrator can set the cryptography key as the constructor string. I wrote a .NET Win32 driver program to test it. The first call from the driver dynamically registers the class with COM and fails due to a blank key. This is expected. I use the COM Admin console to enable object construction and supply th...
Exception Class (2 replies)
microsoft.public.dotnet.framework.component_services
I created a Queued component with an Exception Class that is unable to get instantiated. Any ideas on why this could be?
How to get the TIP Url of a Transaction? (4 replies)
microsoft.public.dotnet.framework.component_services
Hello, I would like to retrieve the TIP Url of a distributed transaction initiated in a process A, then pass it to a second process and use the BYOT.CreateWithTIPTransaction API to associate the former transaction with the context of a new object in process B. Do you have any idea about how I can retrieve it with C#? Many thanks for your answer, Jean Baptiste.
Debugging a ServicedComponent (3 replies)
microsoft.public.dotnet.framework.component_services
I'm coming from a C/C /MTS world into a C#/ServicedComponent world and seem to be having trouble stepping into a DLL residing within Component Services. As I would with any C DLL hosted within Component Services, I perform the following steps, which I assume are the same for a C# DLL hosted within Component Services: 1. Start a pooled object from the Component Services Explorer (minimum pool size ...
Registry Access Problem (2 replies)
microsoft.public.dotnet.framework.component_services
Hi, I am getting a registry access error when I try instantiating the COM object. Access to the registry key HKEY CLASSES ROOT\Saransh.ComponentServices.DBAccess is denied. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Una...
COM+: W2K vs. WXP (5 replies)
microsoft.public.dotnet.framework.component_services
Hi, I have serviced component (ActivationOption.Server) installed on w2k server. I was exported application proxy for this COM application, and install it on Windows XP prof. I was added reference to this proxy and try to start application, but then I got an error: An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in system.enterpriseservices.dll Additional info...
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