microsoft.public.dotnet.framework.component_services Archive - October 2001
Post a message to this list
Messages
Page: 12
COM+ interface cast exception (3 replies)
microsoft.public.dotnet.framework.component_services
I am getting cast exceptions on a COM interface that seems to be related to the particular W2K account making the call. The architecture is a remoted object under IIS, with windows security and impersonation. The remoted object calls a COM C# object. The call to the COM server returns an array of interfaces, where the interface is implemented inside the COM code. (See code below.) Now, I have two ...
Exposing methods which involve ADO Records (2 replies, VIP)
microsoft.public.dotnet.framework.component_services
Hi, I'm new to the CLR/webservices world, I have quite a good experience with the COM Techies but finding diffucult to start off with .net world, i have a few questions, i would appricicate any kind of infomration 1. Is there any easy way of publishing my components and their methods as a web service ? 2. Can i still use ADO RecordSet as a parameter in method calls? 3. if i can, where does another...
newbie Problem with COM+ Application startup (2 replies, VIP)
microsoft.public.dotnet.framework.component_services
Hi, I am trying to create a queued component and while starting the application I get Catalog Error : Class not registered. I have registered the ActiveX DLL using regsvr32. My client app is able to post the message to the queue using the "queue:/new:" moniker. However the component won't start. I am on a "workgroup". Am I missing something here? I would much appreciate it, if someone can help. vs...
Component Services MMC not reporting (3 replies)
microsoft.public.dotnet.framework.component_services
I created a number of .NET serviced components, compiled, and installed into an application. I accessed the components from a number of clients. The MMC reports NO stats on Objects | Activated | Pooled | In Call | Call Time I have experimented with various objects taking advantage of various COM services ... nothing. Is anybody else experiencing this? Any ideas?
Want to plug in your own 'COM+ service' in .NET ?? (3 replies, VIP)
microsoft.public.dotnet.framework.component_services
Hi In the past, have you ever wanted to write your own COM service and plug it into the COM architecture and make use of it together with the other services? And, would you like to do this in .NET ? Or, have you looked at the current remoting/contexts/sinks architecture in ..NET and used it to write some services but found it to be insufficient for your services? I'm looking for some scenarios, so...
Newbie: How do I create COM Components in C# ? (2 replies)
microsoft.public.dotnet.framework.component_services
I like the C# language from what I have seen so far. But I want to build Enterprise COM components (with custom Intefaces) to exploit the COM Queing and COM Event models provided by the COM Services and MMC COM Administration tools to set up Subscritions and Queing. I have seen mechanisms that I can register C# Assemblies in the Regsitry to be called by COM code, and how to call COM components. Bu...
VB6 COM/.NET object will not stop spinning in MTS (3 replies, VIP)
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...
Adding a reference to a VB.Net Serviced Component (2 replies)
microsoft.public.dotnet.framework.component_services
Hi, When adding a reference to a VB.Net Serviced Component in a VB.Net Client I get the following error: A reference to 'WeekDayName' could not be added. Converting the type library to a .NET assembly failed. Type library WeekDayName was exported from a CLR assembly and cannot be re imported as a CLR assembly. I used RegSvcs.exe to install the Serviced Component in COM . The Serviced Component wor...
openFileDialogbox ?? (2 replies)
microsoft.public.dotnet.framework.component_services
Hi all Like openFileDialogbox is there any openDirDialogbox or Do anyone knows any round about way. I want to select a directory with path. Thanks KCM
How to clean up Registry (2 replies, VIP)
microsoft.public.dotnet.framework.component_services
Hi All, I was building a .net component to be hosted by COM services so i could use the transactional support of COM . I noticed that everytime I changed any method in a class and compile again, a new class id in created in my registry. This makes sense since a new guid is required for the new interface/class. so for a simple component, there are like few dozen new entries on my registry since i a...
Is it true that only administrators can use a serviced component application? (11 replies)
microsoft.public.dotnet.framework.component_services
The .Net docs seem to say one has to be an administrator to call serviced components. Is this true? If so, what good is role based security? I can't exactly put all my users in the Admin group. Mike This section describes the following registration mechanisms for deploying applications that use COM services: a.. Dynamic registration using XCOPY b.. Manual registration using the .NET Services Insta...
Object aliasing (2 replies)
microsoft.public.dotnet.framework.component_services
If I create a COM component in C# (eg. Test.Class1) then a C# client can access it by adding a reference and accessing it as Test.Class1. What if I then use COM object aliasing. How do I access the alias from my C# client? Thanks Gavin Bray
Feature Needed? (2 replies, VIP)
microsoft.public.dotnet.framework.component_services
When one adds a reference to another namespace......for instance, when you want a .NET program to interact with an existing COM object, you can add a reference to the COM object... HOW DO YOU DRILL DOWN into the object to see what member functions it defines in its namespace? I assume there is some file containing wrapper code somewhere? Is there any way inside Visual Studio's UI to access this in...
Passing parameters to a thread running in an object pool (3 replies)
microsoft.public.dotnet.framework.component_services
Hello, I have an object that handles all the business rules. I would run the object in an object pool on a delicated server. One the methods is run as under a thread by the client. Since the method that runs under a thread can not have any parameters, I created a property on the class. Ex: Class ThreadPoolObj { private string SearchCriteria; public void SetSearchCriteria(string NewSearchCriteria) ...
How to use dotNet remoting and COM+ role base security together. (2 replies)
microsoft.public.dotnet.framework.component_services
Hi, I have a business tier object that runs on a delicated server, and allow clients to make method calls on it via remoting (TcpChannel). I would like to run the business tier object under COM , so I could use role based security and object pooling services. I currently are able to create a dotNet object that accepts method via remoting, and another dotNet object that runs under COM using role ba...
COM+ Remote call (2 replies)
microsoft.public.dotnet.framework.component_services
Hello, How can I call a COM component remote (.NET), using the binary format without using the server application(or server service)? I have a C# Windows form(.NET) on the client side. Thanks in advance, Wesley
Run InstallUtil for Windows service (3 replies)
microsoft.public.dotnet.framework.component_services
Hi, I try to write a windows service application using Visual Studio beta 2. After I created a simple Windows service application with the default installer added, I get the the follow error message when I run the InstallUtil program. Anybody knows the problem? Here is the message I got: D:\dev\ServiceTest\bin\Debug installutil ServiceTest.exe /LogFile 1.dat Microsoft (R) .NET Framework Installati...
Transactions - COM+ or Managed Transaction (3 replies, VIP)
microsoft.public.dotnet.framework.component_services
Hi, I am using Single database but I need to update multiple tables from with in Multiple classes but all in Single Transaction Do I need to go with COM transaction or SqlTransaction or Handle Transaction with in Stored Procedures Thanks, Krishna
How to use .NET COM+ application from remote machine? (3 replies)
microsoft.public.dotnet.framework.component_services
Question: How to use .NET COM application from remote machine? 1. I created a component (say, Test0813.MTXSBO, assembly name, MTXSBO.dll) derived from ServicedComponent. It uses 'Server' as ActivationOption 2. After compiled, it's put into GAC by gacutil i 3. Run RegSvcs.exe to make it visible in Component Service App. (on server machine). And it generates a .tlb file automatically. 4. Right Click...
IsInRole is working strangely.. (2 replies)
microsoft.public.dotnet.framework.component_services
Greetings, I was using the WindowsPrincipal.IsInRole method and found that it was not working well. I use Windows Authentication and impersonations and everything(doman\user etc) can passed to the .net managed component. It is inherited from ther ServicedComponent btw. The current domain user(me) is a member of the local admin group so when i do isInRole( "BUILTIN\\Administrators") it returns true...
COM+ Server Application problem (4 replies)
microsoft.public.dotnet.framework.component_services
Hi, I'm trying to create a simple COM component which are supposed to be activated as a server application. I'm using the following simple code: [ProgIdAttribute("Test.Server"), ClassInterfaceAttribute(ClassInterfaceType.None)] public class Test : ServicedComponent, ITest { public Test() { }// Test public string Value { get { return "Test"; } } } The AssemblyInfo.cs file contains the following def...
Receiving serialization error when throwing an exception (2 replies)
microsoft.public.dotnet.framework.component_services
I have built a ServicedComponent class that handles data access for my application. When performing a query on the database for a specific object given the object's primary key, if the object is not found in the database I am trying to throw an exception. I derived an exception class from ApplicationException and added the SerializableAttribute attribute to my exception class. But when I throw the...
Error when setting "Required" or "RequiresNew" attribute dynamically in code (2 replies)
microsoft.public.dotnet.framework.component_services
I have a very simple serviced component that updates a record in a SQL database table. When I add [TransactionAttribute(TransactionOption.RequiresNew)] or [TransactionAttribute(TransactionOption.Required)] attribute, I get an error stating: "The system cannot find the file specified" when executed from a test harnest (Windows Form). If I set it to "supported" or "Not Supported" and remove the SetC...
Pooled Objects, Finalize, and External Resources (2 replies)
microsoft.public.dotnet.framework.component_services
I'm having trouble understanding how to handle cleanup in pooled objects that have references to external resources. What I'm looking for is a way to have the external reference freed only when the pooled object is shutdown. Win2K AS, C#, .NET Beta 2 Here's some pseudocode to show the problem. If I run this and then do a shutdown on the COM app, the Handler pooled object obviously goes away from t...
Run InstallUtil for Windows service (2 replies)
microsoft.public.dotnet.framework.component_services
Change the account property of serviceProcessInstaller1 to "LocalSystem". Original Message From: Bill [mailto:bill@intersoft.com.tw] Posted At: Samstag, 29. September 2001 14:44 Posted To: component services Conversation: Run InstallUtil for Windows service Subject: Re: Run InstallUtil for Windows service hi!Could u tell me how u solve it,cause i got the same problem ,too.THanks "Xingzeng Liu" xin...
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