I create a COM+ DLL to use with ASP and PHP
Sample Code :
Imports System.EnterpriseServices
Imports System.Runtime.InteropServices
<Assembly: ApplicationNameAttribute("NAME")>
<Assembly: SecurityRoleAttribute("Roles", True)>
<Assembly: ApplicationAccessControl(False)>
<Assembly: ApplicationActivationAttribute(ActivationOption.Server)>
<Assembly: ApplicationID("XXXX-XXXXX----")>
<ComVisible(True)>
Public Interface IAdminInterface
Function Version() As String
Property FormatOutput() As String
End Interface
<ProgId("NAME.Admin")>
<ComClass(Admin.ClassId, Admin.InterfaceId, Admin.EventsId)>
Public Class Admin
Inherits ServicedComponent
Public Const ClassId As String = "XXXX-XXXXX----1"
Public Const InterfaceId As String = "XXXX-XXXXX----2"
Public Const EventsId As String = "XXXX-XXXXX----3"
{...}
End Class
Now I want to use the DLL for "VB Form" but not work because is a COM+.
<b>ERROR :</b>
System.Runtime.InteropServices.COMException: "The server process could not be initiated because the identity configured is not correct. Check the user's name and password.The server process could not be initiated because the configured identity is not correct. Check the user's name and password."
There is any way to load COM+ DLL or I need create a new proyect with same code but for normal DLL ?
- Only work same code if delete Assembly,Interface and COm References.