microsoft.public.dotnet.framework.component_services Archive - April 2002
Post a message to this list
Messages
Page: 12
Anyone know how to setup COM+ .NET component for remoting? (4 replies)
microsoft.public.dotnet.framework.component_services
I still cannot find a post on the correct way(s) to configure a COM .NET Component to be instatiated from a remote client WITHOUT DCOM. Does anyone know how this is done? Ben
What Happened to IPlaybackControl? (5 replies)
microsoft.public.dotnet.framework.component_services
I am porting a distributed VB6 application to .NET and have retooled my components as ServicedComponent descendants. In my original app I made a special exception class for a queued component this component implemented the interface of the queued class as well as IPlaybackControl (for FinalServerRetry and FinalClientRetry methods.) This prevented failures from collecting up in the deadqueue. Is th...
WMI and Error Trapping in .NET (3 replies)
microsoft.public.dotnet.framework.component_services
I've created a Win32 application in VB.NET that's performing some basic hardware inventory functions through WMI. The issue I have is when I perform the ManagementObjectSearcher.Get method, it sometimes raises errors. I'm expecting these errors (RPC Server Unavailable, Access Denied, etc), but can not seem to trap them. Even with my Try..Catch statements in place the errors still raise unhandled. ...
.NET COM+ object does not show methods under the interface in Explorer (10 replies)
microsoft.public.dotnet.framework.component_services
Hi all, I wrote a simple test COM object and installed it in COM . Under Interfaces for that class, I see the SampleClass interface, but there are no methods shown. This means I can't access any attributes for that methos. Any ideas?
Problems with Sybase and COM+ (2 replies)
microsoft.public.dotnet.framework.component_services
Hi, We are developing a solution with .NET and COM and we have to integrate with a Sybase database. We write transactional serviced components. We use TransactionOption.Required and AutoComplete. This works fine for simple test cases where we insert rows into the database. Transactions are comitted and rolled back as expected. However, if we inside the same transaction (and same class) do a select...
Someone finally post here JIT vs NoJIT (with/without Object Pooling/Transactions) (19 replies)
microsoft.public.dotnet.framework.component_services
This is a topic that has a lot of confusion wrapped around it. I am now thourhoughly confused about JITA, when and when not to use it. I see some doco saying that you don't need it, however I always wondered why Transactions requires it if you don't need it and the overhead is too great. If I have objects that don't require transactions, do I use JIT?? Why or why not!?!? Argh!! Does object pooling...
How to use DataGrid InsertAt? (3 replies)
microsoft.public.dotnet.framework.component_services
I have a DataGrid (unbound data) with 5 rows. How can I insert a row at Row 3? I tried using the InsertAt but it inserted a new row at the end of the DataGrid. myDataTable myDataSet.Tables.Item("TestTable") myDataRow myDataTable.NewRow() myDataRow("Quantity") "9" myDataRow("UnitPrice") "9.9" 'Insert new row at Row 3 myDataTable.Rows.InsertAt(myDataRow, 2) Any information is appreciated.
Process Boundaries (4 replies)
microsoft.public.dotnet.framework.component_services
Hi, I have the following questions. Plese do give some clarification for the same. 1. Where do the .Net Serviced components run? Do they run within .net runtime or do they run in a seperate dllhost. 2. How are objects passed between two .net components? Are they passed by value or by reference. 3. Are all basic data objects(types) marshalled in .net 4. Is it ideal to pass any .net object between t...
Shared Methods and Serviced Component (3 replies)
microsoft.public.dotnet.framework.component_services
Hi everybody, I notice when I try to call a shared method of a serviced component without creating the object first, the method was not executed through component service. For example, This would work: dim oComp as new MyComponent oComp.MySharedMethod() But this would not work: MyComponent.MySharedMethod() I guess it makes sense because I read somewhere that the .NET framework sets up all the prec...
Remoting and Security with Enterprise Services (12 replies)
microsoft.public.dotnet.framework.component_services
In the MSDN article: http://msdn.microsoft.com/library/default.asp?url /library/en us/dnbda/html/ bdadotnetarch001.asp?frame true we are told that "The .NET Remoting TCP channel provides no built in security. Unlike DCOM it does not offer strong authentication, data integrity, or data privacy services" So I'm now very concerned about the prospect of migrating (re engineering) my VB 6 COM component...
Object Construction in .NET (2 replies)
microsoft.public.dotnet.framework.component_services
Hi, I am trying to upgrade a COM DLL out of COM and into .NET. Back in COM , I was using Object Construction to pass config parameters into my object and obviously, this works differently in .NET. My understanding was that I would need to add a reference to System.EnterpriseServices which would enable me to inherit my class from ServicedComponent, so I could get at the Enterprise Services stuff. I...
REPOST: IDisposable, JITA, and remoting serviced components (26 replies)
microsoft.public.dotnet.framework.component_services
(Refer to the previous thread titled "IDisposable, JITA, and remoting serviced components" for more details.) JITA, Pooled objects used with SingleCall will have their pool exhausted after n calls, where n equals the MaxPoolSize property of the ObjectPoolingAttribute, even if the methods are decorated with AutoComplete. Why would this be? Shouldn't AutoComplete return the object to the pool after ...
queryinterface for interface system.data.IDBConnection failed (3 replies)
microsoft.public.dotnet.framework.component_services
Hi I have an assembly with a public class that inherits ServicedComponent and implements both System.Data.IDBConnection and System.Data.IDBTransaction I've compiled the assembly and registered it in the GAC. I have a simple test application that intanciates the class and do a simple method call through a method of the interface IDBConnection. When the call is made, the runtime throws me an excepti...
transient subscription (5 replies)
microsoft.public.dotnet.framework.component_services
Hi, I have a GUI application that uses a remote serviced component in a server COM application. The serviced component must let know the GUI application instances when certain events happen. A transient subscription could be the solution, but making a transient subscription implies modification of the COM Admin Catalog with COMAdmin and the GUI application does have administrative privileges on th...
HELP! Error in activation! (3 replies)
microsoft.public.dotnet.framework.component_services
Hi, I created a COM component in C# and I decided to use dynamic registration for the testing purpose. So When I launch a client against the component I am getting an error: Unhandled Exception: System.Runtime.InteropServices.COMException (0x8004E024): COM activation failed because the activation could not be completed in the specified amount of time. at System.Runtime.InteropServices.Marshal.Thro...
Full COM+ distributed application (4 replies)
microsoft.public.dotnet.framework.component_services
Hi! I'm used to build complex distributed applications with VB6. Now I'm moving our framework to .NET and I'm experiencing many problems/bugs?! when I put my components in COM using Server activation. So far I've seen that the COM /COMInterop/.NET Managed assembly integration is not very stable or maybe I'm implementing it the wrong way... I would like to know if anybody ever deployed a real .NET ...
Adding an existing COM interface on a serviced component (10 replies)
microsoft.public.dotnet.framework.component_services
Hi, I am trying to add the IProcessInitializer COM interface to one of my COM components. I read Q313582 and installed .NET SP1, COM Rollup Pack 18.1. The code compiles but crashes at runtime with an error: "An exception was caught: Server execution failed". Looking at the application log shows an entry: "A COM service (such as Queued Components or Compensating Resource Manager) failed to start. T...
How to create Server Application Activation vs Library Application Activation in COM+ in .NET? (5 replies)
microsoft.public.dotnet.framework.component_services
I'm trying to create a COM object that calls 'LogonUser' in advapi.dll under a local account that has "Act as part of Operating System" privilege using VB.Net. I've created a dll which calls 'LogonUser' with VB .Net, but I'm having problem trying to figure out how to change the activation type of for this component to Server Application. In old VB6, I can create a ActiveX exe and set the activatio...
LCE - queued subscription (2 replies)
microsoft.public.dotnet.framework.component_services
Hi, What conditions need to be met in order to make a persistent subscription as queued ? I'm trying this, but an exception gets raised. Listing the stack trace here wouldn't help because I suppose it's generated by the large wholes I have in understanding the queuing / LCE combination. Where can I find a detailed description of when and where to use the queued attribute on subscriptions and/or ev...
Someone tell me the use of the OBJECT column in COM+ (3 replies)
microsoft.public.dotnet.framework.component_services
I am trying to figure out what the heck the use of the Object column is for in COM . Is this the number of clients that hold a reference to the Stub used for interception? The reason I ask is, I am trying some Object Pooling with JIT. I use the same client calling the object repreaditly for 50 times. Well 50 show up in this column, and do not get released until I close the text EXE I am using. Now...
Using Word.DocumentClass in C# (21 replies)
microsoft.public.dotnet.framework.component_services
Greetings All .. Does anybody have any working example of creating Word document on the server in ASP.NET (C#) ? I'm trying to use Word.ApplicationClass() and Word.DocumentClass() like this: Word.Application wordApp new Word.ApplicationClass(); Word.Document oDoc new Word.DocumentClass(); oDoc wordApp.Documents.Open2000(**how to form arguments?**); oDoc SaveAs2000(***how to form arguments?***); oD...
using dcom with .net (2 replies)
microsoft.public.dotnet.framework.component_services
hi brad, as you've correctly requested i'm trying to pose my questions in a more clear way: 1) scenario : .net dll as a serviced component deployed in a server com app, .net client ( a standard .net exe) i'd like to know a) i want to use dcom to have the exe talk with the .net dll : once i run the proxy client export on the target client machine (where i develop/ run my exe) .. what do i have to r...
Object pooling in Component services (3 replies)
microsoft.public.dotnet.framework.component_services
Hi, I am trying to test how object pooling works with COM . I have set the following properties [ObjectPooling(Enabled true, MinPoolSize 100, MaxPoolSize 1000),JustInTimeActivation(true)] [Transaction(TransactionOption.Required ),Synchronization(SynchronizationOpt ion.Required ),EventTrackingEnabled(true)] I am even disposing the object after its called. I am calling this object in a loop of 1000....
VB6 COM/.NET object will not stop spinning in COM+ (3 replies)
microsoft.public.dotnet.framework.component_services
I have a simple COM dll written in VB6 that I have registered in MTS (Component Services). When I access the DLL in ASP, the object will activate in MTS, spin for a moment, and then deactivate after 3 minutes, OK, good. When I access the COM wrapper assembly for the dll in ASPX, the object activates in MTS, but will never deactivate. Each additional call increases the object count, it will never s...
Serviced Components and Application.config (3 replies)
microsoft.public.dotnet.framework.component_services
What is the recommended way to implement configuration settings when using serviced components (server package). Since the Serviced component will be hosted inside dllhost.exe having a dllhost.exe.config does not make too much sense. Is there a scheme similar to aspnet wp.exe where every virtual directory has a web.config of its own. Thanks, V
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