I'm suddenly getting this: System.BadImageFormatException
Description: HTTP 500.Error processing request.
Details: Non-web exception.
Exception stack trace:
at (wrapper managed-to-native) System.Reflection.Assembly:LoadFrom (string,bool) at System.Reflection.Assembly.LoadFrom (System.String assemblyFile) [0x00000] in <a07d6bf484a54da2861691df910339b1>:0 at System.Web.UI.TemplateParser.AddAssemblyForNamespace (System.String namesp) [0x000ce] in <843cde98ab8b40878319d3e0f2707fbc>:0 at System.Web.UI.TemplateParser.AddImport (System.String namesp) [0x00040] in <843cde98ab8b40878319d3e0f2707fbc>:0 at System.Web.UI.TemplateParser.AddDirective (System.String directive, System.Collections.IDictionary atts) [0x00189] in <843cde98ab8b40878319d3e0f2707fbc>:0 at System.Web.UI.TemplateControlParser.AddDirective (System.String directive, System.Collections.IDictionary atts) [0x001f8] in <843cde98ab8b40878319d3e0f2707fbc>:0 at System.Web.UI.PageParser.AddDirective (System.String directive, System.Collections.IDictionary atts) [0x00135] in <843cde98ab8b40878319d3e0f2707fbc>:0 at System.Web.Compilation.AspGenerator.TagParsed (System.Web.Compilation.ILocation location, System.Web.Compilation.TagType tagtype, System.String tagid, System.Web.Compilation.TagAttributes attributes) [0x000d8] in <843cde98ab8b40878319d3e0f2707fbc>:0 at System.Web.Compilation.AspParser.OnTagParsed (System.Web.Compilation.TagType tagtype, System.String id, System.Web.Compilation.TagAttributes attributes) [0x00019] in <843cde98ab8b40878319d3e0f2707fbc>:0 at System.Web.Compilation.AspParser.Parse () [0x000ff] in <843cde98ab8b40878319d3e0f2707fbc>:0 at System.Web.Compilation.AspGenerator.Parse (System.IO.TextReader reader, System.String filename, System.Boolean doInitParser) [0x00031] in <843cde98ab8b40878319d3e0f2707fbc>:0 at System.Web.Compilation.GenericBuildProvider`1[TParser].Parse () [0x0003c] in <843cde98ab8b40878319d3e0f2707fbc>:0 at System.Web.Compilation.GenericBuildProvider`1[TParser].GenerateCode () [0x00000] in <843cde98ab8b40878319d3e0f2707fbc>:0 at System.Web.Compilation.GenericBuildProvider`1[TParser].GenerateCode (System.Web.Compilation.AssemblyBuilder assemblyBuilder) [0x00008] in <843cde98ab8b40878319d3e0f2707fbc>:0 at System.Web.Compilation.BuildManager.GenerateAssembly (System.Web.Compilation.AssemblyBuilder abuilder, System.Web.Compilation.BuildProviderGroup group, System.Web.VirtualPath vp, System.Boolean debug) [0x00077] in <843cde98ab8b40878319d3e0f2707fbc>:0
The only changes to my system is adding the BLStat plugin.
The previously working script is super basic (pun intended):
The called bash script is unchanged and works fine via the cmd line.
Help?
Description: HTTP 500.Error processing request.
Details: Non-web exception.
Exception stack trace:
at (wrapper managed-to-native) System.Reflection.Assembly:LoadFrom (string,bool) at System.Reflection.Assembly.LoadFrom (System.String assemblyFile) [0x00000] in <a07d6bf484a54da2861691df910339b1>:0 at System.Web.UI.TemplateParser.AddAssemblyForNamespace (System.String namesp) [0x000ce] in <843cde98ab8b40878319d3e0f2707fbc>:0 at System.Web.UI.TemplateParser.AddImport (System.String namesp) [0x00040] in <843cde98ab8b40878319d3e0f2707fbc>:0 at System.Web.UI.TemplateParser.AddDirective (System.String directive, System.Collections.IDictionary atts) [0x00189] in <843cde98ab8b40878319d3e0f2707fbc>:0 at System.Web.UI.TemplateControlParser.AddDirective (System.String directive, System.Collections.IDictionary atts) [0x001f8] in <843cde98ab8b40878319d3e0f2707fbc>:0 at System.Web.UI.PageParser.AddDirective (System.String directive, System.Collections.IDictionary atts) [0x00135] in <843cde98ab8b40878319d3e0f2707fbc>:0 at System.Web.Compilation.AspGenerator.TagParsed (System.Web.Compilation.ILocation location, System.Web.Compilation.TagType tagtype, System.String tagid, System.Web.Compilation.TagAttributes attributes) [0x000d8] in <843cde98ab8b40878319d3e0f2707fbc>:0 at System.Web.Compilation.AspParser.OnTagParsed (System.Web.Compilation.TagType tagtype, System.String id, System.Web.Compilation.TagAttributes attributes) [0x00019] in <843cde98ab8b40878319d3e0f2707fbc>:0 at System.Web.Compilation.AspParser.Parse () [0x000ff] in <843cde98ab8b40878319d3e0f2707fbc>:0 at System.Web.Compilation.AspGenerator.Parse (System.IO.TextReader reader, System.String filename, System.Boolean doInitParser) [0x00031] in <843cde98ab8b40878319d3e0f2707fbc>:0 at System.Web.Compilation.GenericBuildProvider`1[TParser].Parse () [0x0003c] in <843cde98ab8b40878319d3e0f2707fbc>:0 at System.Web.Compilation.GenericBuildProvider`1[TParser].GenerateCode () [0x00000] in <843cde98ab8b40878319d3e0f2707fbc>:0 at System.Web.Compilation.GenericBuildProvider`1[TParser].GenerateCode (System.Web.Compilation.AssemblyBuilder assemblyBuilder) [0x00008] in <843cde98ab8b40878319d3e0f2707fbc>:0 at System.Web.Compilation.BuildManager.GenerateAssembly (System.Web.Compilation.AssemblyBuilder abuilder, System.Web.Compilation.BuildProviderGroup group, System.Web.VirtualPath vp, System.Boolean debug) [0x00077] in <843cde98ab8b40878319d3e0f2707fbc>:0
The only changes to my system is adding the BLStat plugin.
The previously working script is super basic (pun intended):
Code:
<%@ Page Language="VB" Debug="true" ValidateRequest="false" %> <%@ Import Namespace="System.Text" %> <%@ Import Namespace="System.Diagnostics" %> <%@ Import Namespace="System.IO" %> <%@ Import Namespace="System.IO.StreamReader" %> <script runat="server"> Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Dim psi As New ProcessStartInfo() psi.FileName = "/bin/bash" psi.Arguments = "-c ""/usr/local/myscript.sh""" psi.RedirectStandardOutput = True psi.RedirectStandardError = True psi.CreateNoWindow = False psi.WindowStyle = ProcessWindowStyle.Hidden psi.UseShellExecute = False Dim process As Process = Process.Start(psi) Dim processoutput As String = process.StandardOutput.ReadToEnd() process.WaitForExit() response.write("<!DOCTYPE html>") response.write("<body>") response.write(processoutput) End Sub </script> </body> </html>
Help?
Comment