dotnet component services:
Hi,
After upgrading to VS 2003 I cannot get a simple COM+ serviced
component (VB.NET) to work on my test server (W2K SP4). On my
development machine (XP Pro) it works just fine and if I use the same
code in VS 2002 it works fine on the server.
The problem:
I have a small client which calls my component (using lazy
registration) and at the first call I get the following error:
The system cannot find the file specified.
at System.EnterpriseServices.Thunk.Proxy.CoCreateObject(Type
serverType, Boolean bQuerySCInfo, Boolean& bIsAnotherProcess, String&
uri)
at System.EnterpriseServices.ServicedComponentProxyAttribute.CreateInstance(Type
serverType)
at System.Runtime.Remoting.Activation.ActivationServices.IsCurrentContextOK(Type
serverType, Object[] props, Boolean bNewObj)
at complustest.Form1.Button1_Click(Object sender, EventArgs e) in
C:\Form1.vb:line 83
Then, if I call the component again I get this:
No such interface supported
at System.EnterpriseServices.Thunk.Proxy.CoCreateObject(Type
serverType, Boolean bQuerySCInfo, Boolean& bIsAnotherProcess, String&
uri)
at System.EnterpriseServices.ServicedComponentProxyAttribute.CreateInstance(Type
serverType)
at System.Runtime.Remoting.Activation.ActivationServices.IsCurrentContextOK(Type
serverType, Object[] props, Boolean bNewObj)
at complustest.Form1.Button1_Click(Object sender, EventArgs e) in
C:\Form1.vb:line 83
The code on line 83 in Form1.vb is this: Dim x As New
compluslib.Transaction1
The code in the serviced component is:
Imports System.EnterpriseServices
Imports System
<Assembly: ApplicationActivation(ActivationOption.Library)>
<Assembly: ApplicationAccessControl(False)>
<Transaction(TransactionOption.Required), _
EventTrackingEnabled(True)> _
Public Class Transaction1
Inherits ServicedComponent
Public Function MySub() As Integer
Try
Return 2003
Catch ex As Exception
ContextUtil.SetComplete()
Finally
ContextUtil.SetAbort()
End Try
End Function
End Class
When I take a look in Component Services at the server the component
is installed but the ApplicationAccessControl seems to be enabled even
though I disabled it. Don't know if that has anything to do with the
problem, but it's strange...
Any help is appreciated since this prevents me from upgrading my
customers' applications.
TIA