locked
ADO.Net Transaction by ServicedComponent RRS feed

  • Question


  • I have been using EJB to implement server side database transaction.

    And I migrated to use vista and VS05 to implement a ServicedComponent class, which is generated by VS05 as template and handles transaction using ADO.Net. The transaction in this component is invoked by a web service exposing the business logic to a flash client.

    After everything is fne configured, I try to test by invoking the exposed method in web service. And it surprisingly throws an System.EnterpriseServices.RegistrationException.

    I wonder if vista business edition is not capable of deploying ServicedComponent.
    And does ServicedComponent act like SessionBean in EJB? I have make this assumption in implementation.

    Thanks.


    Detailed description:

    System.EnterpriseServices.RegistrationException: Invalid ServicedComponent-derived classes were found in the assembly.
    (Classes must be public, concrete, have a public default constructor, and meet all other ComVisibility requirements)
       at System.EnterpriseServices.RegistrationDriver.InstallAssembly(RegistrationConfig regConfig, Object obSync)
       at System.EnterpriseServices.RegistrationHelper.InstallAssemblyFromConfig(RegistrationConfig& regConfig)
       at System.EnterpriseServices.RegistrationHelper.InstallAssembly(String assembly, String& application, String partition, String& tlb, InstallationFlags installFlags)
       at System.EnterpriseServices.RegistrationHelper.System.EnterpriseServices.Thunk.IThunkInstallation.DefaultInstall(String asm)
       at System.EnterpriseServices.Thunk.Proxy.RegisterAssembly(Assembly assembly)
       at System.EnterpriseServices.Thunk.Proxy.LazyRegister(Guid id, Type serverType, Boolean checkCache)
       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 TestWebService.Service1.HelloWorld() in C:\Users\Nielsen\Documents\Visual Studio 2005\Projects\FlashWebService\TestWebService\Service1.asmx.vb:line 15


    Tuesday, November 27, 2007 1:24 PM