microsoft.public.dotnet.framework.component_services Archive - March 2003
Post a message to this list
Messages
Page: 1
Using COM+ aliases (3 replies)
microsoft.public.dotnet.framework.component_services
I have a COM component with which I want to create several aliases each with different configuration parameters. This bit is easy to do in the Component Services snap in. What I am unclear about is how the client programs choose which alias to use; I'm not yet sure if I want to choose at compile time or run time so information on both would be appreciated. Component and clients are .NET C#. OS is ...
help with control binding (3 replies)
microsoft.public.dotnet.framework.component_services
Hi im having a problem with a custom control i am developing basically (at the moment) the control is going to be a like a list I have looked at the documentation somewhat and have got it partially working my problem is with the postback. this being that when i post the page back the control losses its data here is the databinding code this seems to work ok protected override void OnDataBinding(Ev...
Return collection of IList objects as datasource (2 replies)
microsoft.public.dotnet.framework.component_services
I have an object that inherits System.ComponentModel.Component and implements IListSource. The object contains two other objects that inherit CollectionBase, implement IListSource, return false for ContainsListCollection and are strongly typed collections. I am trying to use this object in the designer as a source for a grid. If I return either of the two collection objects in the GetList method o...
ServicedComponent Question (3 replies)
microsoft.public.dotnet.framework.component_services
Hi, I am thinking about create a static method for a ServicedComponent, the method will have [AutoComplete] attribute (which will update some database table), does anyone see any problem static attribute (in terms of locking, performance etc.), or should I make it non static. Please advice. Thanks. John
Using of RegistrationHelpers (2 replies)
microsoft.public.dotnet.framework.component_services
Hello, I'm writing procedure registering COM components. I use RegistrationHelper class. What flags I need to specify to emulate command: RegSvcs.exe /componly /appname:my app name my assembly.dll Best regards, Vladimir
Serviced component,serialization and DCOM (3 replies)
microsoft.public.dotnet.framework.component_services
VB.NET COM Client:XP Server:Win2k transport:DCOM I have a performance problem where each call to an object takes about a second, when client is accessing properties on a server object. These objects are stateful with properties returning values or other custom objects. I believe that the cost of each call is DCOM talking from the client to the server, therefore if I serialize then I will only have...
When do I close the connection? (2 replies)
microsoft.public.dotnet.framework.component_services
Hi! I have a root component that calls into two other "child" components, and want both calls to run in the same transaction. The root component class is configured with the attribute [Transaction(TransactionOption.Required)], while the two other are configured with the attribute [Transaction(TransactionOption.Supported)]. All the database logic is placed in the child components, even the open() a...
Marshal.BindToMoniker and Marshal.ReleaseComObject (5 replies)
microsoft.public.dotnet.framework.component_services
I am calling a ServicedComponent using the interface returned by Marshal.BindToMoniker(). My moniker has the form "new:MyNamespace.MyClass". I am able to get the interface and make calls to the serviced component just fine. The problem comes when I try to clean up. When I call Marshal.ReleaseComObject I get an exception as follows: System.ArgumentException: Object type must be ComObject or derived...
proxyattribute for contextbound objects (3 replies)
microsoft.public.dotnet.framework.component_services
Hi, I'm trying to develop a "standard" custom proxyattribute and realproxy pair for a context bound object. I'm having problems in implementing the CreateInstance method writing (as the d.box book suggests) : MarshalByRefObject output, target; System.Runtime.Remoting.Proxies.RealProxy rp; target base.CreateInstance(t); rp new MyExProxy(target); output (MarshalByRefObject)rp.GetTransparentProxy(); ...
Dispose Pattern vs ServicedComponent.DisposeObject (2 replies)
microsoft.public.dotnet.framework.component_services
I have a object pooling serviced components.if the class inherits from EnterpriseServices.ServicedComponent, the base class(servicedComponent) has implemented the Dispose methoad, 'free all managed and unmanaged resources Overloads NotOverridable Public Sub Dispose() Implements IDisposable.Dispose 'free unmanaged resources and free managed resources additional Overloads Overridable Protected Sub D...
COM+ Application Attributes (2 replies)
microsoft.public.dotnet.framework.component_services
Hi There are various attributes that can be set in your code for the COM application written in C#. e.g : [assembly: ApplicationActivation(ActivationOption.Server)] I have been searching MSDN for quite some time now and cannot find the code that I would use to control the "advanced" attribute called "Server Process Shutdown" ( this is in the COM Application's properties). I would like to specify t...
Error with Component (3 replies)
microsoft.public.dotnet.framework.component_services
When I try to register a component in Windows 98 I get the following error: An unknown exception occurred during installation: 1: System.PlatformNotSupportedException 'RegistrationHelper.InstallAssembly' i s not supported on the current platform. Any ideas on how to fix this? Shahin
is that a bug ? (4 replies)
microsoft.public.dotnet.framework.component_services
Hi all I have scenario that my com component is on server i subnet A and my SQL Server is in subnet B (say subnet A is 192.168.50.XX and subnet B is 192.168.51.XX). If com component is transaction supported there is no problem but if it is transaction required i recieved this Exception Type: System.Runtime.InteropServices.COMException ErrorCode: 2147168242 Message: Exception from HRESULT: 0x8004D0...
Creating a COM component from .NET (6 replies)
microsoft.public.dotnet.framework.component_services
Hi. I am currently trying to create a COM component in Visual C# using ..NET. I haven't found any good information on how to create a COM in Visual Studio.NET on the net or in MSDN library. What I have a problem with is not being able to add a reference to the COM component in my test application. I get a message with the text: Converting the type libray to a .NET assembly failed. Object reference...
Multiple references to the same VB6 DLL (4 replies)
microsoft.public.dotnet.framework.component_services
Need affirmation on this... I have a two existing COM objects written in VB6 (clsA and clsB) clsB exposes a function: somefunction() As clsA I'm writing a COM object in VB.NET that references both clsA and clsB I've signed both clsA and clsB and have Interop versions of both I've imported both Interop.clsA and Interop.clsB into the .NET project Any direct reference clsA or clsB works fine... Any r...
Transactional locks for select statement (8 replies)
microsoft.public.dotnet.framework.component_services
Hello I am developing an application that uses ServicedComponents to access a database. I have a user interface that needs data from two separate tables. This user interface talks to a facade component (NotSupported transaction attribute value) who in turn talks to a data access component (Supported transaction attribute value). The data access component talks to a stored procedure in SQL server. ...
Need .NET dll to run in a COM+ package (16 replies)
microsoft.public.dotnet.framework.component_services
I have a .NET dll that I need to run in a COM package (that contains existing VB6 dlls) so that it "runs with" the package identity. What is the minimum I have to do in order to successfully drag the dll into the package and not throw and error... Which dll should I drag into the COM package during development/testing (.NET has 2 copies one in obj\debug and one in bin)? Paul
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