microsoft.public.dotnet.framework.component_services Archive - October 2002
Post a message to this list
Messages
Page: 123
COMException when referencing COM method (2 replies)
microsoft.public.dotnet.framework.component_services
I need a library that reads Mp3 ID3 tags. I'm trying to use the Shazam (http://www.ewal.net/shazam.php) .dll to do it by referencing it in C# on .NET. I've successfully converted it with tlbimp and registered it with regasm. I can compile my code, but when I run it I get a COMException that says "COM object with CLSID {7FC5C06C D516 4B81 BE5C E481E36FD680} is either not valid or not registered." T...
Bizarre Serviced component problem... (2 replies)
microsoft.public.dotnet.framework.component_services
Hi folks, I have been trying to find the cause of this problem for days now and have just about come to my wit's end. The scenario is pretty straightforward: We have a typical multi tiered application with a simple BizFacade layer that instantiates a Biz layer ServicedComponent. The BizLayer class has Tx.Required attributes along with [AutoComplete] on the methods. The Biz layer uses the SqlConnec...
References at the client (2 replies)
microsoft.public.dotnet.framework.component_services
When using MTS with VB6, I don't remember of any situation where it is necessary to reference the MTS library in the client application. For my ..NET component to work in my client, I need to reference the System.EnterpriseServices the same way I reference it at the component. Why Do I need to set the same reference for the client and the component? Thanks
Newbie COM+ question - does this make sense? (3 replies)
microsoft.public.dotnet.framework.component_services
Here's the deal. My application has web services and within those web service methods the code needs to access existing objects contained within a ..NET Windows Service. I was using Remoting to access the objects and that works but it seems kinda flaky so I'm looking for other options. I started looking at COM . I understand the services provided by COM (transactions, pooling, etc.) but I really d...
.NET COM+ class works from Library, but not Server Application (5 replies)
microsoft.public.dotnet.framework.component_services
Here's the error I get. Can anyone explain this to me? What is CLSID {EB73D3F7 91D5 3873 AA52 5EC86F63DD54}, or how do I find out? Thanks for your help. Joe Geretz Server Error in '/MLSPD.NET' Application. No server registered or could not load class for CLSID {EB73D3F7 91D5 3873 AA52 5EC86F63DD54}. Description: An unhandled exception occurred during the execution of the current web request. Pleas...
Serviced Components as Server application two time slower than Library! (2 replies)
microsoft.public.dotnet.framework.component_services
I know that running serviced components as server application is supposed to be slower than library application because of interop cost involved, I just did not expect the difference of such magnitude. I ran Application Center Test against ASP.NET application using service components. When server activation is used the Average Time to last byte was 514 ms. When I change to the library it became 21...
ASP.NET Configuration files (5 replies)
microsoft.public.dotnet.framework.component_services
Hi. I wrote a component that gets a connectionstring from the Web.config file of my site. If I hard code the connection string on the methods of the component, the code works. If I change the code to get the info from the Web.config file, it does not work. That's the code to open the connection: Private i g s ConnStr As String ConfigurationSettings.AppSettings("conn") Private Sub spu OpenConnectio...
Serviced Component fails first time (5 replies)
microsoft.public.dotnet.framework.component_services
Hi, I have created a Enterprise Serviced Component (VB.NET) which I call from my ASP.NET code. I have set object pooling attributes and creation time out attribute (20000 ms). COM application is running as a server and "Leave running when idle" is true. Problem is that first time i access the component all is ok. If i leave the application for 10 15 min, the first time i access the component it fa...
FileNotFoundException (2 replies)
microsoft.public.dotnet.framework.component_services
Hi, I'm invoking a method on a COM component configured in an object pool (server application). When I try to pass a custom object as a parameter on the method, I get the following exception. The object instantiates and other methods that don't require more complex marshalling, such as strings, work fine. Ideas on troubleshooting this problem? Unhandled Exception: System.IO.FileNotFoundException: ...
passing an object accross application boundaries (2 replies)
microsoft.public.dotnet.framework.component_services
Hi there ;) Can anyone tell me how an XMLDocument object can be passed across application boundaries? I want to load an XML document into an instance of XMLDocument once, cache the component under COM and then just pass the clones of the object onto the clients ByValue. The main point is to save time and resources and avoid multiple loading and parsing of the same XML document. I know I should eit...
Calling ExecuteCommand on a Windows Service (2 replies)
microsoft.public.dotnet.framework.component_services
Hi. I'm a newbie here so excuse me if this question has already been posted. I'm trying to develop a new Windows Service and then execute a custom command on that service via the ServiceController class (in C#) I was able to compile, install and start the service. I was also able to find the service in the services list from code (using ServiceController.GetServices()) However, when I try to call ...
COM+ with ASP.NET (2 replies)
microsoft.public.dotnet.framework.component_services
Hi there, All day I try to resolve one problem, but still without answer... Here is the prologue: I wrote COM component that need to do some job for me and install it on server machine, then I create application proxy for this component for distribution on clients machines. Installing proxy was without problems. Then I go to test it... Desktop application (writen in c#) that uses that component (v...
Create a remote COM+ component (10 replies)
microsoft.public.dotnet.framework.component_services
Hi, After spending several hours I'm still unable to create a server side COM component on the client. So I have a VB.Net COM component installed on a server Exported the package to an MSI file Installed the MSI file on the client Referenced the proxy of COM Plus applications\{AA... in my client program Tried to create using new, activator.createInstance, Marshal.BindToMoniker .... All I get is an...
Windows handle for the service in a .NET Windows Service. (2 replies)
microsoft.public.dotnet.framework.component_services
Is there any way to get the handle to a windows service wrapped by a .NET windows ServiceBase class? I want to pass hints at startup back the controller (i.,e., don't time me out yet, I 'm still working.) Thanks.
Getting the host name (3 replies)
microsoft.public.dotnet.framework.component_services
Is it possible to get the hostname of the computer my code is currently executing on in .NET, independent of any exterior contexts (like the HttpContext object). It seems like this should be a fairly trivial task but I can't seem to find any documentation on how to do it on MSDN and there is no obvious choice within the framework. Any help would be greatly appreciated. Thanks, Marcus
COM+ Serialization and No isolation setting on 2000 (4 replies)
microsoft.public.dotnet.framework.component_services
I am developing on Windows XP, and deploying to 2000 (and to a .net server for testing). I have 3 COM componenets written in VB.Net that all interact. They all support transactions, but don't require them. They are all in an object pool. When calling them occasionally (when 2 or more client apps/librarys call at the same time) it generates serialization errors. So to avoid this, i made my objects ...
Multiple calls to single serviced component instance (4 replies)
microsoft.public.dotnet.framework.component_services
Greetings! I am having a problem executing multiple method calls to the same serviced component instance. I have a ServicedComponent inherited Class MyTransactionClass which pulls a message off a message queue and performs a database update in a single transaction. The transaction attribute on this class is marked as "required". The pseudo code is as follows: class MyTransactionClass [Transaction....
MTXOCI Internal Error (2 replies)
microsoft.public.dotnet.framework.component_services
Hi, I'm getting the following error in the application event log. It ocurrs when I instantiate a ServicedComponent from an StandAlone application. When the application exits the error is logged. I do call dispose and Marshal.ReleaseComObject. Need Help. COM log is getting full time to time. MTXOCI Internal Error. Threads Still Active During Dll Unload. Thread State is 3, This Process is being term...
Calling back from a serviced component to a client fails (2 replies)
microsoft.public.dotnet.framework.component_services
I have the following problem: I have a service component (COM ) in .NET which is given an interface pointer. It uses the interface pointer to call back to the client. The client implements this interface in a class derived from MarshalByRefObject. The callback however fails with the following exception: An unhandled exception of type 'System.Runtime.Remoting.RemotingException' occurred in mscorlib...
Invalid ServicedComponent-derived classes were found in the assembly (3 replies)
microsoft.public.dotnet.framework.component_services
Hi! I'm getting an error that I do not understand. We are trying to build a solution where the client is not aware of wether the DAL is using a SQLConnection or an OracleConnection or and OLEDBConnection etc. We are doing this by having one subclass for each type of data access (sql server, oracle etc). This will ensure that we are using the best driver available for the transport of data. Basical...
question on stopping a windows service from within my code (2 replies)
microsoft.public.dotnet.framework.component_services
Hi all, I am a newbie to programming a windows service. I am using C# windows service project. I have the service running just fine and understand what the code is doing. Background: I have created a service called webupdateservice. webupdateservice provides the basic start/stop of a dll that I created called webupdateserver. The webupdateserver contains all the functionality to do the actual work...
Deploying COM+ (7 replies)
microsoft.public.dotnet.framework.component_services
Hi !! I have class that was inhereted from ServicedComponent and implements an interface that was called IServer. Then I created installer for this assembly (with adding Cusstom Action to Installer class to provide registration of COM component during instalation and unregistration during uninstallation). After that I test that installation. On Windows XP all working fine, installation was install...
How to dispose the serviced component? (3 replies)
microsoft.public.dotnet.framework.component_services
Hi to all I have a serviced component with following configuration Transaction(TransactionOption.Disabled), JustInTimeActivationAttribute(False), ObjectPooling(True), Synchronization(SynchronizationOption.Disabled), ComponentAccessControl(True), InterfaceQueuing(False), ConstructionEnabled(False), EventTrackingEnabled(True), MustRunInClientContext(False) I have a function in this component which r...
How can I use the same component in Libary and Server application? (3 replies)
microsoft.public.dotnet.framework.component_services
We need to configure the serviced components as Library application for performance reasons. However, there are external clients that need an access to these components, and we need to run some components as Server application. It is not possible to register the same component more than once on COM . I know that in COM it is possible to copy components between applications. We could upgrade to .NE...
What is the proper way to interface this COM property? (5 replies)
microsoft.public.dotnet.framework.component_services
Here it is from the IDL: [id(0x00000606), propget, helpstring("Contact property.")] HRESULT Property( [in] MCONTACTPROPERTY ePropType, [out, retval] VARIANT* pvPropVal); [id(0x00000606), propput, helpstring("Contact property.")] HRESULT Property( [in] MCONTACTPROPERTY ePropType, [in] VARIANT pvPropVal); My first instinct told me: [DispId(0x00000606)] Object Property(MCONTACTPROPERTY ePropType); [D...
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