I am relatively new to .NET and completely new to remoting. I am getting an error that goes something like this:
Connot load type Chimera.Linestatus.Linestatus, Chimera.Linestatus, Version=1.0.2.23169, Culture=neutral,PublicKeyToken=6b57b35e5f0dd756
StackTrace:
Server stack trace:
at System.Runtime.Remoting.Activation.ActivationListe ner.Activate(IConstructionCallMessage ctorMsg)
at System.Runtime.Remoting.Messaging.StackBuilderSink .PrivateProcesssMessage(MethodBase mb, Object[] args, Object[] server,Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
at
System.Runtime.Remoting.Messaging.StackBuilderSink .SyncProcessMessage(IMessage msg, Int32 methodPtr, Boolean fExecuteInContext)
Exception thrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.PrivateI nvoke(MessageData& msgData, Int32 type)
at System.Runtime.Remoting.Activation.IActivator.Acti vate(IConstructionCallMessage msg)
...
...
at System.Runtime.Remoting.Proxies.RealProxy.PrivateI nvoke(MessageData& msgData, Int32 type)
at Chimera.Linestatus.Linestatus..ctor()
at Chimera.PandaLineUserInterface.PandaLineUI..ctor(S tring line)
And the code in the Linestatus constructor is:
public LineStatus() {
try{
Console.WriteLine("LineStatus created.");
Chimera.ApplicationEngine.EngineComponentFactory factory = new Chimera.ApplicationEngine.EngineComponentFactory() ;
m_mainApp = (Chimera.MainApplication.MainApplication)factory.G etEngineComponent(typeof(Chimera.MainApplication.M ainApplication));
Line productionLine = m_mainApp.ProductionLine;
m_lineName = productionLine.Name.ToString();
Initialize();
}catch (Exception e){
MessageBox.Show(e.ToString(),"ERROR");
}
}
This is what I have tried so far:
in .NET Configuration 1.1> Runtime Security Policy> Machine> CodeGroups>AllCode, I have added a new code Group Chimera;
Description:
Internet permissions for Chimera SCADA
Assembly evidence must match this membership condition to belong to the code group: StrongName.
Assemblies matching the membership condition are granted this permission set at the current policy level: FullTrust.
Permission Set Description:
Allows full access to all resources.
This is Imported from the assembly. The Directory Security account on which this is setup is a IUSER_Chimera2 which is an internet guest account.
Theres so much pressure to fix this its not even funny. I have no Clue. Help Please.