An unexpected exception was handled while processing job requests.
System.IO.FileNotFoundException: File or assembly name My.Core.dll, or one of its dependencies, was not found.
File name: "My.Core.dll"
at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Boolean isStringized, Evidence assemblySecurity, Boolean throwOnFileNotFound, Assembly locationHint, StackCrawlMark& stackMark)
at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Boolean stringized, Evidence assemblySecurity, StackCrawlMark& stackMark)
at System.Reflection.Assembly.LoadFrom(String assemblyFile, Evidence securityEvidence, Byte[] hashValue, AssemblyHashAlgorithm hashAlgorithm)
at System.Activator.CreateInstanceFrom(String assemblyFile, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityInfo)
at My.Core.Typing.TypeDef.Instance(IDataReader dr)
at My.Core.Typing.Type.CacheType(String typeName)
at My.Core.Typing.Type.GetById(String typeName, Int32 typeId)
at My.Core.Activities.ActivityType.GetById(Int32 id)
at My.Core.Activities.Activity.List(IDbConnection connection)
at My.Scheduling.SchedulingServer.Version2Processing()
at My.Scheduling.SchedulingServer.ProcessingLoop(Object stateInfo)
=== Pre-bind state information ===
LOG: Where-ref bind. Location = C:\WINDOWS\system32\My.Core.dll
LOG: Appbase = c:\program files\Mine\scheduleingsetup\
LOG: Initial PrivatePath = NULL
Calling assembly : (Unknown).
===
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: Attempting download of new URL file:///C:/WINDOWS/system32/My.Core.dll.
"Willy Denoyette [MVP]" <(E-Mail Removed)> wrote in message news:(E-Mail Removed)...
Please post the exact exception message.
Willy.
"RSS" <q> wrote in message news:%235F%(E-Mail Removed)...
Hi everyone,
I have an app that uses some DLL's that are shared across couple applications. There are reasons existing that prevent me from putting them in to the GAC.
Each of these app's at some point in time loads a DLL dynamically in this fashion:
System.Reflection.Assembly assembly = null;
assembly = System.Reflection.Assembly.LoadFrom(_assemblyPath);
return assembly.CreateInstance(_typeName, false, System.Reflection.BindingFlags.Default, null, args, null, null);
_assemblyPath - DB driven that has a value for path. Now, if I have a path like this "C:\Mypath\My.dll" everything works fine. If I only have "My.dll" i get an error message saying the My.dll or one of its dependencies cannot be found. The exe and My.dll reside in the same folder and by default it should load when _assemblyPath = My.dll.
Any idea why its not working.
thanks a lot in advance.
|