|
 |
aspx thread: problem in server side COM+
Message #1 by "phaneendra" <phaneendra@s...> on Wed, 12 Dec 2001 10:43:57 +0530
|
|
Hi all,
I am using the following statement in the com + component
<Assembly: ApplicationActivation(ActivationOption.Server)>
Then when I call that from a VB.Net form I am getting the error:
========== Exception Text ==========
System.Runtime.Remoting.RemotingException: Cannot load type
clsLogin.Login.CLSCheckLogin, clsLogin, Version=1.0.710.41157,
Culture=neutral, PublicKeyToken=ce4413844cef5cd6.
at
System.EnterpriseServices.IRemoteDispatch.RemoteDispatchNotAutoDone(String
s)
at System.EnterpriseServices.RemoteServicedComponentProxy.Invoke(IMessage
reqMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData&
msgData, Int32 type)
at clsLogin.Login.CLSCheckLogin.CheckLogin(String LoginId, String
PassWord) in D:\bedinpro\login\clsLogin\chkLogin.vb:line 28
at testing.Form1.Button1_Click(Object sender, EventArgs e) in
D:\bedinpro\login\testing\Form1.vb:line 60
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons
button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg,
IntPtr wparam, IntPtr lparam)
========== Loaded Assemblies ==========
mscorlib
Assembly Version: 1.0.2411.0
Win32 Version: 1.0.2914.16
CodeBase:
file:///c:/winnt/microsoft.net/framework/v1.0.2914/mscorlib.dll
----------------------------------------
testing
Assembly Version: 1.0.710.41159
Win32 Version: 1.0.710.41159
CodeBase: file:///D:/bedinpro/login/testing/bin/testing.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 1.0.2411.0
Win32 Version: 1.0.2914.16
CodeBase:
file:///C:/WINNT/assembly/GAC/System.Windows.Forms/1.0.2411.0__b77a5c561934e
089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 1.0.2411.0
Win32 Version: 1.0.2914.16
CodeBase:
file:///C:/WINNT/assembly/GAC/System/1.0.2411.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 1.0.2411.0
Win32 Version: 1.0.2914.16
CodeBase:
file:///C:/WINNT/assembly/GAC/System.Drawing/1.0.2411.0__b03f5f7f11d50a3a/Sy
stem.Drawing.dll
----------------------------------------
System.Xml
Assembly Version: 1.0.2411.0
Win32 Version: 1.0.2914.16
CodeBase:
file:///C:/WINNT/assembly/GAC/System.Xml/1.0.2411.0__b77a5c561934e089/System
.Xml.dll
----------------------------------------
clsLogin
Assembly Version: 1.0.710.41157
Win32 Version: 1.0.710.41157
CodeBase: file:///D:/bedinpro/login/testing/bin/clsLogin.DLL
----------------------------------------
System.EnterpriseServices
Assembly Version: 1.0.2411.0
Win32 Version: 1.0.2914.16
CodeBase:
file:///C:/WINNT/assembly/GAC/System.EnterpriseServices/1.0.2411.0__b03f5f7f
11d50a3a/System.EnterpriseServices.dll
----------------------------------------
Microsoft.VisualBasic
Assembly Version: 7.0.0.0
Win32 Version: 7.00.9254
CodeBase:
file:///C:/WINNT/assembly/GAC/Microsoft.VisualBasic/7.0.0.0__b03f5f7f11d50a3
a/Microsoft.VisualBasic.dll
----------------------------------------
System.Runtime.Remoting
Assembly Version: 1.0.2411.0
Win32 Version: 1.0.2914.16
CodeBase:
file:///C:/WINNT/Microsoft.NET/Framework/v1.0.2914/System.Runtime.Remoting.d
ll
----------------------------------------
System.Data
Assembly Version: 1.0.2411.0
Win32 Version: 1.0.2914.16
CodeBase:
file:///C:/WINNT/assembly/GAC/System.Data/1.0.2411.0__b77a5c561934e089/Syste
m.Data.dll
----------------------------------------
------------------------------------------
Please help me in this matter.
Regards,
Phaneendra.
Message #2 by "Mitch Denny" <mitch.denny@w...> on Mon, 17 Dec 2001 14:07:48 +1100
|
|
Phaneendra,
Flipping over the server activation implies that you need
to setup alot more remoting architecture. If I remember
correctly, you need to work with an interface on the
client-side which is also implemented in the component
being hosted in the COM+ services.
Using the Remoting Configuration tools you then describe
how to marshal between that interface and the real object
on the server, the configuration can be done in code or
by making use of a section in your applications XML
configuration files.
For this type of question, I'd highly recommend that
you subscribe to the [DOTNET] list hosted by the folks
at DevelopMentor:
http://discuss.develop.com/dotnet.html
And also the [ngfx-remoting] list hosted by Charles Carroll
over at ASP Friends:
http://www.aspfriends.com/aspfriends/ngfx-remoting.asp
When you subscribe, post relevant parts of your code, that
should speed up the response that you get.
----------------------------------------
- Mitch Denny
- http://www.warbyte.com
- mitch.denny@w...
- +61 (414) 610-141
-
> -----Original Message-----
> From: phaneendra [mailto:phaneendra@s...]
> Sent: Wednesday, 12 December 2001 4:14 PM
> To: ASP+
> Subject: [aspx] problem in server side COM+
>
>
> Hi all,
>
> I am using the following statement in the com + component
> <Assembly: ApplicationActivation(ActivationOption.Server)>
>
> Then when I call that from a VB.Net form I am getting the error:
>
>
>
> ========== Exception Text ==========
> System.Runtime.Remoting.RemotingException: Cannot load type
> clsLogin.Login.CLSCheckLogin, clsLogin, Version=1.0.710.41157,
> Culture=neutral, PublicKeyToken=ce4413844cef5cd6.
> at
> System.EnterpriseServices.IRemoteDispatch.RemoteDispatchNotAut
> oDone(String
> s)
> at
> System.EnterpriseServices.RemoteServicedComponentProxy.Invoke(IMessage
> reqMsg)
> at
> System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData&
> msgData, Int32 type)
> at clsLogin.Login.CLSCheckLogin.CheckLogin(String LoginId, String
> PassWord) in D:\bedinpro\login\clsLogin\chkLogin.vb:line 28
> at testing.Form1.Button1_Click(Object sender, EventArgs e) in
> D:\bedinpro\login\testing\Form1.vb:line 60
> at System.Windows.Forms.Control.OnClick(EventArgs e)
> at System.Windows.Forms.Button.OnClick(EventArgs e)
> at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
> at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons
> button, Int32 clicks)
> at System.Windows.Forms.Control.WndProc(Message& m)
> at System.Windows.Forms.ButtonBase.WndProc(Message& m)
> at System.Windows.Forms.Button.WndProc(Message& m)
> at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
> at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
> at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd,
> Int32 msg,
> IntPtr wparam, IntPtr lparam)
>
> ========== Loaded Assemblies ==========
> mscorlib
> Assembly Version: 1.0.2411.0
> Win32 Version: 1.0.2914.16
> CodeBase:
> file:///c:/winnt/microsoft.net/framework/v1.0.2914/mscorlib.dll
> ----------------------------------------
> testing
> Assembly Version: 1.0.710.41159
> Win32 Version: 1.0.710.41159
> CodeBase: file:///D:/bedinpro/login/testing/bin/testing.exe
> ----------------------------------------
> System.Windows.Forms
> Assembly Version: 1.0.2411.0
> Win32 Version: 1.0.2914.16
> CodeBase:
> file:///C:/WINNT/assembly/GAC/System.Windows.Forms/1.0.2411.0_
> _b77a5c561934e
> 089/System.Windows.Forms.dll
> ----------------------------------------
> System
> Assembly Version: 1.0.2411.0
> Win32 Version: 1.0.2914.16
> CodeBase:
> file:///C:/WINNT/assembly/GAC/System/1.0.2411.0__b77a5c561934e
> 089/System.dll
> ----------------------------------------
> System.Drawing
> Assembly Version: 1.0.2411.0
> Win32 Version: 1.0.2914.16
> CodeBase:
> file:///C:/WINNT/assembly/GAC/System.Drawing/1.0.2411.0__b03f5
> f7f11d50a3a/Sy
> stem.Drawing.dll
> ----------------------------------------
> System.Xml
> Assembly Version: 1.0.2411.0
> Win32 Version: 1.0.2914.16
> CodeBase:
> file:///C:/WINNT/assembly/GAC/System.Xml/1.0.2411.0__b77a5c561
> 934e089/System
> .Xml.dll
> ----------------------------------------
> clsLogin
> Assembly Version: 1.0.710.41157
> Win32 Version: 1.0.710.41157
> CodeBase: file:///D:/bedinpro/login/testing/bin/clsLogin.DLL
> ----------------------------------------
> System.EnterpriseServices
> Assembly Version: 1.0.2411.0
> Win32 Version: 1.0.2914.16
> CodeBase:
> file:///C:/WINNT/assembly/GAC/System.EnterpriseServices/1.0.24
11.0__b03f5f7f
11d50a3a/System.EnterpriseServices.dll
----------------------------------------
Microsoft.VisualBasic
Assembly Version: 7.0.0.0
Win32 Version: 7.00.9254
CodeBase:
file:///C:/WINNT/assembly/GAC/Microsoft.VisualBasic/7.0.0.0__b03f5f7f11d
50a3
a/Microsoft.VisualBasic.dll
----------------------------------------
System.Runtime.Remoting
Assembly Version: 1.0.2411.0
Win32 Version: 1.0.2914.16
CodeBase:
file:///C:/WINNT/Microsoft.NET/Framework/v1.0.2914/System.Runtime.Remoti
ng.d
ll
----------------------------------------
System.Data
Assembly Version: 1.0.2411.0
Win32 Version: 1.0.2914.16
CodeBase:
file:///C:/WINNT/assembly/GAC/System.Data/1.0.2411.0__b77a5c561934e089/S
yste
m.Data.dll
----------------------------------------
------------------------------------------
Please help me in this matter.
Regards,
Phaneendra.
|
|
 |