Posted Saturday, August 01, 2009 2:00 PM
|
|
|
|
| though i dont need System.Design i made a reference on it, but it doesn't help the exception text is: Die Assembly mit dem Anzeigenamen "System.Design" konnte im Load-Bindungskontext der AppDomain mit ID 1 nicht geladen werden. Fehlerursache: System.IO.FileNotFoundException: Die Datei oder Assembly System.Design oder eine Abhängigkeit davon wurde nicht gefunden. Das System kann die angegebene Datei nicht finden. Dateiname: System.Design === Zustandsinformationen vor Bindung === LOG: Benutzer = HG\Admin-MultiMedia LOG: DisplayName = System.Design (Partial) LOG: Appbase = file:///G:/C#/ColorPicker/bin/Debug/ LOG: Ursprünglicher PrivatePath = NULL Aufruf von Assembly : Bluebit.MatrixLibrary, Version=4.2.32.0, Culture=neutral, PublicKeyToken=c915370950fbbd9f. === LOG: Diese Bindung startet im default-Load-Kontext. LOG: Die Anwendungskonfigurationsdatei wird verwendet: G:\C#\ColorPicker\bin\Debug\ColorPicker.vshost.exe.config LOG: Die Computerkonfigurationsdatei von c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config wird verwendet. LOG: Die Richtlinie wird derzeit nicht auf den Verweis angewendet (private, benutzerdefinierte, teilweise oder pfadbasierte Assemblybindung) LOG: Download von neuem URL file:///G:/C#/ColorPicker/bin/Debug/System.Design.DLL. LOG: Download von neuem URL file:///G:/C#/ColorPicker/bin/Debug/System.Design/System.Design.DLL. LOG: Download von neuem URL file:///G:/C#/ColorPicker/bin/Debug/System.Design.EXE. LOG: Download von neuem URL file:///G:/C#/ColorPicker/bin/Debug/System.Design/System.Design.EXE.:cool:
|
|
Posted Monday, August 03, 2009 2:29 AM
|
|
|
|
| Please make sure that you have added a reference to Bluebit.MatrixLibrary.dll Also try calling the Matrix objects as Bluebit.MatrixLibrary.Matrix
Trifon Triantafillidis | Lead Developer |
|
|
|
Posted Tuesday, August 04, 2009 5:05 AM
|
|
|
|
| ok, it works, but a little bit strange: -the bluebit dll has to be icopied to the startup directory (where the program exe is located. - the bluebit license-file has to be there, too. a program line like : Matrix M = new Matrix() doen't show any effect, a program line like: Matrix M = new Matrix(2,2) throws the exception as described above. when the exception is thrown and i use debug single step (Mixrosoft visual studio 8) the license form is opened. I enter the required license key, and, after that, everything works; no exception is thrown any more.
|
|
Posted Tuesday, August 04, 2009 5:27 AM
|
|
|
|
| This behavior is because there is also another object named Matrix in System.Design Using the full path makes it possible to distinguish Bluebit.MatrixLibrary.Matrix from System.Design.Matrix .
Trifon Triantafillidis | Lead Developer |
|
|
|
Posted Tuesday, August 04, 2009 1:13 PM
|
|
|
|
sorry, i were happy too early.... the exception still occurs whenever for the first time a line like Matrix M = new Matrix(n,n) occurs. it definitely diesn't have anything to do with the usage of a fully qualified name like Bluebit.MatrixLibrary.Matrix ! I guess, something goes wrong when your library checks for a valid license.
|
|
Posted Wednesday, August 05, 2009 3:17 AM
|
|
|
|
Can you please let me know the exact error messages (translated in English please) that you are getting now?
Trifon Triantafillidis | Lead Developer |
|
|
|
Posted Wednesday, August 05, 2009 6:31 AM
|
|
|
|
| translate to english ? i'll try my very best.... BindingFailure was recognized. Message: the Assembly with name "System.Design" could not be loaded in the Load-Bindingcontext of AppDomain with ID 1. error reason: System.IO.FileNotFoundException: the file or Assembly System.Design or some dependency could not be found. the system can not find this file. filename: System.Design === state information before binding === LOG: user = HG\Admin-MultiMedia LOG: DisplayName = System.Design (Partial) LOG: Appbase = file:///G:/C#/ColorPicker/bin/Debug/ LOG: original PrivatePath = NULL call of Assembly : Bluebit.MatrixLibrary, Version=4.2.32.0, Culture=neutral, PublicKeyToken=c915370950fbbd9f. === LOG: this binding starts in the default-Load-context. LOG: this application configuration file is used: G:\C#\ColorPicker\bin\Debug\ColorPicker.vshost.exe.Config LOG: the computer configuration files c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config is used. LOG: the policy/directive currently is not applied to this reference (private, userdefined, partial or path dependent Assemblybinding) LOG: Download of new URL file:///G:/C#/ColorPicker/bin/Debug/System.Design.DLL. LOG: Download of new URL file:///G:/C#/ColorPicker/bin/Debug/System.Design/System.Design.DLL. LOG: Download of new URL file:///G:/C#/ColorPicker/bin/Debug/System.Design.EXE. LOG: Download of new URL file:///G:/C#/ColorPicker/bin/Debug/System.Design/System.Design.EXE. ================================================== i guess, only during licence-check the bluebit software accidentally makes a reference to System.Design. But including a reference in the main programme to System.Design doesn't help. i made some exploration concerning this error and found a hint in: >>> quotation .NET Framework Developer's Guide Diagnosing Errors with Managed Debugging Assistants: Managed debugging assistants (MDAs) are debugging aids that work in conjunction with the common language runtime (CLR) to provide information on runtime state. The assistants generate informational messages about runtime events that you cannot otherwise trap. You can use MDAs to isolate hard-to-find application bugs that occur when transitioning between managed and unmanaged code. You can enable or disable all MDAs by adding a key to the Windows registry or by setting an environment variable. You can enable specific MDAs by using application configuration settings. You can set additional configuration settings for some individual MDAs in the application's configuration file. ..... When your code is executing in the Visual Studio integrated development environment (IDE), you can avoid the exception dialog box that appears for specific MDA events. To do that, on the Debug menu, click Exceptions.In the Exceptions dialog box, expand the Managed Debugging Assistants list, and then clear the Thrown check box for the individual MDA. >>> end quotation so, in my visual studio 8, i opened debug -> exceptions -> Managed Debugging Assistants and removed tracking of exception : "BindingFailure". Now no exception is thrown anymore. Nevertheless, i think, you should check the code for the licence-checking procedure. Maybe, you can reproduce the effect by: -use visual studio -set a check at debug -> exceptions -> Managed Debugging Assistants -> "BindingFailure". -run your program within visual studio greetings from Bonn, Germany Hans-Georg Lange
|
|
Posted Wednesday, August 05, 2009 12:29 PM
|
|
|
|
| Hello, My interpetation of the error is different. The licensing mechanism, the first time a license file is used, it opens a form (using System.Design) in order to activate the new license file. In your system the assembly containing the System.Design namespace cannot be reached so this raises the above error. You could try printing the stack trace info just to see the procedure calls. Can you please verify that .NET Framework version 2.0 is installed on your machine?
Trifon Triantafillidis | Lead Developer |
|
|
|
Posted Wednesday, August 05, 2009 2:16 PM
|
|
|
|
| thank you for the answer. The licence-form opened and i could enter the licence-key. how can i get the stack trace info ? i have installed Framework 1.1, 2 (with all patches), 3 and 3.5 yours Hans-Georg
|
|
Posted Friday, August 07, 2009 2:20 AM
|
|
|
|
| The stack trace is listed in the "Call Stack" window
Trifon Triantafillidis | Lead Developer |
|
|
|
Posted Monday, November 16, 2009 5:41 AM
|
|
|
|
| i've had the same problem (v4.3). i solved it copying the System.Desing.dll file from .net 2.0 directory to the directory of my appllication. however it isn't acceptable to an user. so there must be another solution
|
|
Posted Monday, November 16, 2009 8:33 AM
|
|
|
|
| hlopchyk Is .NET Framework 2.0 installed on the machine running NML? If yes then you shouldn't need to copy System.Desing.dll to the application directory since it should be found in the GAC.
Trifon Triantafillidis | Lead Developer |
|
|
|
Posted Monday, November 16, 2009 8:50 AM
|
|
|
|
| yes. i copied that file from my machine on which the app's run
|
|
|
|