View Single Post
Old 01-31-2013, 07:26 AM  
biggysmlz
Junior Member
 
Join Date: Dec 2012
Posts: 15
Default

Hi, I am using this script to archive stuff and its pretty great, but i face one issue, while the site archive command works without issues at all, whenever i have the script in the scheduler, in the debug log i can see it always fails with this error:

Code:
Archive...
[2013-01-31 13:00:21] Assembly.GetExecutingAssembly().Location: ['z:\path\ioFTPD\scripts\jeza.ioFTPD.ArchiveScript\jeza.ioFTPD.Framework.dll']
[2013-01-31 13:00:21] System.Runtime.InteropServices.COMException (0x80090006): Invalid Signature. (Exception from HRESULT: 0x80090006)
   at System.StubHelpers.InterfaceMarshaler.ConvertToManaged(IntPtr pUnk, IntPtr itfMT, IntPtr classMT, Int32 flags)
   at Microsoft.Win32.Win32Native.CreateAssemblyNameObject(IAssemblyName& ppEnum, String szAssemblyName, UInt32 dwFlags, IntPtr pvReserved)
   at Microsoft.Win32.Fusion.ReadCache(ArrayList alAssems, String name, UInt32 nFlag)
   at System.Reflection.RuntimeAssembly.EnumerateCache(AssemblyName partialName)
   at System.Reflection.RuntimeAssembly.LoadWithPartialNameInternal(AssemblyName an, Evidence securityEvidence, StackCrawlMark& stackMark)
   at System.Reflection.Assembly.LoadWithPartialName(String partialName, Evidence securityEvidence)
   at System.Xml.Serialization.TempAssembly.LoadGeneratedAssembly(Type type, String defaultNamespace, XmlSerializerImplementation& contract)
   at System.Xml.Serialization.XmlSerializer..ctor(Type type, String defaultNamespace)
   at jeza.ioFTPD.Framework.Extensions.Deserialize[T](T xmlObject, String fileName, String defaultNamespace)
   at jeza.ioFTPD.Framework.ConsoleAppTasks.ParseConfig()
   at jeza.ioFTPD.Archive.Program.Main()
Any idea why? When i run it via site cmd "site archive" it works fine..
biggysmlz is offline   Reply With Quote