Hi,
Can anybody explain me why I get en error in this code line??
Client connections = new Client();
and exception
System.TypeInitializationException was unhandled
Message="Inicjator typów zgłosił wyjątek dla typu
'org.apache.qpid.client.Client'."
Source="qpid.client"
TypeName="org.apache.qpid.client.Client"
StackTrace:
w org.apache.qpid.client.Client..ctor()
w AMQPClient.QpidClient..ctor(String host, Int32 port) w
C:\Users\adamka\Documents\Visual Studio
2008\Projects\RabbitMQ\Rabbit\AMQPClient\QpidClient.cs:wiersz 40
w rabbitwindow.Form1.QpidConnect_Click(Object sender, EventArgs e) w
C:\Users\adamka\Documents\Visual Studio
2008\Projects\RabbitMQ\Rabbit\rabbitwindow\Form1.cs:wiersz 272
w System.Windows.Forms.Control.OnClick(EventArgs e)
w System.Windows.Forms.Button.OnClick(EventArgs e)
w System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
w System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons
button, Int32 clicks)
w System.Windows.Forms.Control.WndProc(Message& m)
w System.Windows.Forms.ButtonBase.WndProc(Message& m)
w System.Windows.Forms.Button.WndProc(Message& m)
w System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
w System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
w System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd,
Int32 msg, IntPtr wparam, IntPtr lparam)
w System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
w
System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32
dwComponentID, Int32 reason, Int32 pvLoopData)
w
System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32
reason, ApplicationContext context)
w System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32
reason, ApplicationContext context)
w System.Windows.Forms.Application.Run(Form mainForm)
w rabbitwindow.Program.Main() w C:\Users\adamka\Documents\Visual Studio
2008\Projects\RabbitMQ\Rabbit\rabbitwindow\Program.cs:wiersz 17
w System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
w System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence
assemblySecurity, String[] args)
w Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
w System.Threading.ThreadHelper.ThreadStart_Context(Object state)
w System.Threading.ExecutionContext.Run(ExecutionContext
executionContext, ContextCallback callback, Object state)
w System.Threading.ThreadHelper.ThreadStart()
InnerException: System.IO.FileNotFoundException
Message="Nie można załadować pliku lub zestawu 'log4net,
Version=1.2.10.0, Culture=neutral, PublicKeyToken=1b44e1d426115821' lub
jednej z jego zależności. Nie można odnaleźć określonego pliku."
Source="qpid.client"
FileName="log4net, Version=1.2.10.0, Culture=neutral,
PublicKeyToken=1b44e1d426115821"
FusionLog="=== Informacje o stanie sprzed powiązania ===\r\nDZIENNIK:
User = OLIMP\\adamka\r\nDZIENNIK: DisplayName = log4net,
Version=1.2.10.0, Culture=neutral, PublicKeyToken=1b44e1d426115821\n
(Fully-specified)\r\nDZIENNIK: Appbase =
file:///C:/Users/adamka/Documents/Visual Studio
2008/Projects/RabbitMQ/Rabbit/rabbitwindow/bin/x86/Debug/\r\nDZIENNIK:
Initial PrivatePath = NULL\r\nZestaw wywołujący: qpid.client,
Version=0.5.0.0, Culture=neutral,
PublicKeyToken=null.\r\n===\r\nDZIENNIK: to powiązanie zaczyna się w
kontekście ładowania default.\r\nDZIENNIK: nie znaleziono pliku
konfiguracyjnego aplikacji.\r\nDZIENNIK: użycie pliku konfiguracyjnego
komputera z
C:\\Windows\\Microsoft.NET\\Framework\\v2.0.50727\\config\\machine.config.\r\nDZIENNIK:
odwołanie po zastosowaniu zasad: log4net, Version=1.2.10.0,
Culture=neutral, PublicKeyToken=1b44e1d426115821\r\nDZIENNIK: prba
pobrania nowego adresu URL file:///C:/Users/adamka/Documents/Visual
Studio
2008/Projects/RabbitMQ/Rabbit/rabbitwindow/bin/x86/Debug/log4net.DLL.\r\nDZIENNIK:
prba pobrania nowego adresu URL file:///C:/Users/adamka/Documents/Visual
Studio
2008/Projects/RabbitMQ/Rabbit/rabbitwindow/bin/x86/Debug/log4net/log4net.DLL.\r\nDZIENNIK:
prba pobrania nowego adresu URL file:///C:/Users/adamka/Documents/Visual
Studio
2008/Projects/RabbitMQ/Rabbit/rabbitwindow/bin/x86/Debug/log4net.EXE.\r\nDZIENNIK:
prba pobrania nowego adresu URL file:///C:/Users/adamka/Documents/Visual
Studio
2008/Projects/RabbitMQ/Rabbit/rabbitwindow/bin/x86/Debug/log4net/log4net.EXE.\r\n"
StackTrace:
w org.apache.qpid.transport.util.Logger.Get(Type type)
w org.apache.qpid.client.Client..cctor()
InnerException:
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:[email protected]