![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, After a few days of operation, we sometimes get an InvalidCastException on the creation of an instance of a COM+ library-type component (written in C#) : Exception: System.InvalidCastException Message: CoCreateInstance returned an unexpected type: expected Vmw.W8.CommunicationService.Business.Services.Meld ingService, received Vmw.W8.CommunicationService.Business.Services.Hand TerminalCommunicationServi ce. Server stack trace: at System.EnterpriseServices.ServicedComponentProxyAt tribute.CreateInstance(Typ e serverType) at System.Runtime.Remoting.Activation.ActivationServi ces.IsCurrentContextOK(Typ e serverType, Object[] props, Boolean bNewObj) .... We're using Windows 2000 Service Pack 4 and .NET Framework 1.1. Anyone have a clue as to what might be causing this ? Is this a known issue for Enterprise Services (COM+) ? Gert |
#3
| |||
| |||
|
|
Hi Gert! Are you by any chance using your serviced components (in particular MeldingService or HandTerminalCommunicationService types) as instance variables in your classes? |
|
This would be one possible reason. |
#4
| |||
| |||
|
|
Hi Gert! Are you by any chance using your serviced components (in particular MeldingService or HandTerminalCommunicationService types) as instance variables in your classes? Definitely, they both are ... This would be one possible reason. How can that be a reason for this error ? |
#5
| |||
| |||
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |