Click here to Skip to main content
15,893,663 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: equivalent Pin
Wendelius14-Nov-08 9:46
mentorWendelius14-Nov-08 9:46 
GeneralRe: equivalent Pin
Paul Conrad14-Nov-08 9:50
professionalPaul Conrad14-Nov-08 9:50 
GeneralRe: equivalent Pin
Wendelius14-Nov-08 9:58
mentorWendelius14-Nov-08 9:58 
GeneralRe: equivalent Pin
Pete O'Hanlon14-Nov-08 10:13
mvePete O'Hanlon14-Nov-08 10:13 
GeneralRe: equivalent Pin
Wendelius14-Nov-08 10:26
mentorWendelius14-Nov-08 10:26 
GeneralRe: equivalent Pin
Pete O'Hanlon14-Nov-08 13:59
mvePete O'Hanlon14-Nov-08 13:59 
GeneralRe: equivalent Pin
Kevin McFarlane16-Nov-08 8:43
Kevin McFarlane16-Nov-08 8:43 
QuestionOptional asembly Pin
cloudking1196612-Nov-08 19:26
cloudking1196612-Nov-08 19:26 
Hi,
My company is developing a .NET 3.0 application, it uses another assembly called supportlibrary.dll, but this dll is an optional component for one set of customers. Still our company's application should work fine(other features).

I'm not sure how the design of this app should be, we are getting some exception, giving the same below

Type : System.IO.FileNotFoundException, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
Message : Could not load file or assembly 'HP.ActiveSupportLibrary, Version=2.0.0.1, Culture=neutral, PublicKeyToken=01a974bc1760f423' or one of its dependencies. The system cannot find the file specified.
Source : SystemStatus
Help link :
FileName : HP.ActiveSupportLibrary, Version=2.0.0.1, Culture=neutral, PublicKeyToken=01a974bc1760f423
FusionLog :
Data : System.Collections.ListDictionaryInternal
TargetSite : Void .ctor()
Stack Trace : at HPAdvisor.Common.SystemStatus.HealthCheckSummary..ctor()
at HPAdvisor.Common.SystemStatus.HealthCheckSummary.get_Instance() in C:\HP Advisor\25Main200812112008\src\HPAdvisor\Shared\SystemStatus\HealthCheck.cs:line 176
at HPAdvisor.MyApp.OnStartServiceRoutine(Object sender, EventArgs e) in C:\HP Advisor\25Main200812112008\src\HPAdvisor\MainFrame\MyApp.xaml.cs:line 733
at System.Windows.Threading.DispatcherTimer.FireTick(Object unused)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)

Additional Info:

MachineName : SSEBASTIAN
TimeStamp : 11/13/2008 5:58:08 AM
FullName : Microsoft.Practices.EnterpriseLibrary.ExceptionHandling, Version=3.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
AppDomainName : HPAdvisor.exeThreadIdentity :
WindowsIdentity : ASIAPACIFIC\sebastso
Inner Exception
---------------
Type : System.IO.FileNotFoundException, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
Message : Could not load file or assembly 'HP.ActiveSupportLibrary, Version=2.0.0.1, Culture=neutral, PublicKeyToken=01a974bc1760f423' or one of its dependencies. The system cannot find the file specified.
Source :
Help link :
FileName : HP.ActiveSupportLibrary, Version=2.0.0.1, Culture=neutral, PublicKeyToken=01a974bc1760f423
FusionLog : WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

Data : System.Collections.ListDictionaryInternal
TargetSite :
Stack Trace : The stack trace is unavailable.
;200;Error;SSEBASTIAN;HPAdvisor.exe;672;C:\HP Advisor\25Main200812112008\bin\debug\HPAdvisor.exe;
11/13/2008 11:28:08.874;FATAL;(4);[7592];Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'HP.ActiveSupportLibrary, Version=2.0.0.1, Culture=neutral, PublicKeyToken=01a974bc1760f423' or one of its dependencies. The system cannot find the file specified.
File name: 'HP.ActiveSupportLibrary, Version=2.0.0.1, Culture=neutral, PublicKeyToken=01a974bc1760f423' ---> System.IO.FileNotFoundException: Could not load file or assembly 'HP.ActiveSupportLibrary, Version=2.0.0.1, Culture=neutral, PublicKeyToken=01a974bc1760f423' or one of its dependencies. The system cannot find the file specified.
File name: 'HP.ActiveSupportLibrary, Version=2.0.0.1, Culture=neutral, PublicKeyToken=01a974bc1760f423'

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

at HPAdvisor.Common.SystemStatus.HealthCheckSummary..ctor()
at HPAdvisor.Common.SystemStatus.HealthCheckSummary.get_Instance() in C:\HP Advisor\25Main200812112008\src\HPAdvisor\Shared\SystemStatus\HealthCheck.cs:line 176
at HPAdvisor.MyApp.OnStartServiceRoutine(Object sender, EventArgs e) in C:\HP Advisor\25Main200812112008\src\HPAdvisor\MainFrame\MyApp.xaml.cs:line 733
at System.Windows.Threading.DispatcherTimer.FireTick(Object unused)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Boolean isSingleParameter)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Boolean isSingleParameter, Delegate catchHandler)


I tried using

private bool ASLAvailable()
{
try
{
Assembly asm = Assembly.Load("HP.ActiveSupportLibrary");

if (asm != null)
{
return true;
}
else
{
return false;
}
}
catch (Exception ex)
{
//Log.Error(ex);
Log.Info("ASL Not available, returning false");
return false;
}
}
, but still getting error, as assembly binding happens much before
AnswerRe: Optional asembly Pin
Roger Wright13-Nov-08 1:42
professionalRoger Wright13-Nov-08 1:42 
AnswerRe: Optional asembly Pin
Mark Churchill13-Nov-08 12:49
Mark Churchill13-Nov-08 12:49 
QuestionWarning! Newbie On The Loose! Pin
Roger Wright12-Nov-08 17:17
professionalRoger Wright12-Nov-08 17:17 
AnswerRe: Warning! Newbie On The Loose! Pin
led mike13-Nov-08 6:24
led mike13-Nov-08 6:24 
GeneralRe: Warning! Newbie On The Loose! Pin
Roger Wright13-Nov-08 8:39
professionalRoger Wright13-Nov-08 8:39 
AnswerRe: Warning! Newbie On The Loose! Pin
Gideon Engelberth13-Nov-08 8:27
Gideon Engelberth13-Nov-08 8:27 
GeneralRe: Warning! Newbie On The Loose! Pin
Roger Wright13-Nov-08 15:12
professionalRoger Wright13-Nov-08 15:12 
GeneralRe: Warning! Newbie On The Loose! Pin
led mike17-Nov-08 5:30
led mike17-Nov-08 5:30 
GeneralRe: Warning! Newbie On The Loose! Pin
Roger Wright17-Nov-08 11:49
professionalRoger Wright17-Nov-08 11:49 
GeneralRe: Warning! Newbie On The Loose! Pin
led mike18-Nov-08 5:34
led mike18-Nov-08 5:34 
AnswerProblem Solved - for Now Pin
Roger Wright16-Nov-08 4:52
professionalRoger Wright16-Nov-08 4:52 
GeneralRe: Problem Solved - for Now Pin
S. Senthil Kumar16-Nov-08 6:52
S. Senthil Kumar16-Nov-08 6:52 
GeneralRe: Problem Solved - for Now Pin
Roger Wright16-Nov-08 7:49
professionalRoger Wright16-Nov-08 7:49 
QuestionError while sending email [modified] Pin
Vipul Mehta12-Nov-08 3:31
Vipul Mehta12-Nov-08 3:31 
AnswerRe: Error while sending email Pin
Dave Kreskowiak12-Nov-08 3:34
mveDave Kreskowiak12-Nov-08 3:34 
AnswerRe: Error while sending email Pin
Roger Wright13-Nov-08 5:04
professionalRoger Wright13-Nov-08 5:04 
GeneralRe: Error while sending email Pin
Vipul Mehta13-Nov-08 23:41
Vipul Mehta13-Nov-08 23:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.