[Mono-aspnet-list] System.BadImageFormatException Error in porting a VB .NET application from Win to Linux using Mono2.4.2
ChristinaP
christina.peter at tcs.com
Tue Jun 30 10:05:19 EDT 2009
Hi,
When running my ASP, VB.NET application made in Windows on Linux, I am
getting this error: "COULD NOT LOAD FILE OR ASSEMBLY
'/SRV/WWW/HTDOCS/APPLICATION/bin/DDWithAdvice.dll' or ONE OF ITS
DEPENDENCIES. AN ATTEMPT WAS MADE TO LOAD A PROGRAM WITH AN INCORRECT
FORMAT" Any idea what causes the same.... the file DDWithAdvice.dll is
present in my bin folder....
Could not load file or assembly '/srv/www/htdocs/BLa4/bin/DDWithAdvice.dll'
or one of its dependencies. An attempt was made to load a program with an
incorrect format.
Description: HTTP 500. Error processing request.
Stack Trace:
System.BadImageFormatException: Could not load file or assembly
'/srv/www/htdocs/BLa4/bin/DDWithAdvice.dll' or one of its dependencies. An
attempt was made to load a program with an incorrect format.
File name: '/srv/www/htdocs/BLa4/bin/DDWithAdvice.dll'
at (wrapper managed-to-native) System.Reflection.Assembly:LoadFrom
(string,bool)
at System.Reflection.Assembly.LoadFrom (System.String assemblyFile)
[0x00000]
at System.Web.HttpApplication.LoadTypeFromBin (System.String typeName)
[0x00000]
at System.Web.HttpApplication.LoadType (System.String typeName, Boolean
throwOnMissing) [0x00000]
at System.Web.HttpApplication.LoadType (System.String typeName) [0x00000]
at System.Web.UI.TemplateParser.LoadType (System.String typeName)
[0x00000]
at System.Web.UI.TemplateParser.SetBaseType (System.String type) [0x00000]
at System.Web.UI.TemplateParser.ProcessMainAttributes
(System.Collections.Hashtable atts) [0x00000]
at System.Web.UI.TemplateParser.AddDirective (System.String directive,
System.Collections.Hashtable atts) [0x00000]
at System.Web.UI.ApplicationFileParser.AddDirective (System.String
directive, System.Collections.Hashtable atts) [0x00000]
at System.Web.Compilation.AspGenerator.GetInheritedType (System.String
fileContents, System.String filename) [0x00000]
at System.Web.Compilation.AspGenerator.GetRootBuilderType
(System.IO.Stream inputStream, System.String filename) [0x00000]
at System.Web.Compilation.AspGenerator.CreateRootBuilder (System.IO.Stream
inputStream, System.String filename) [0x00000]
at System.Web.Compilation.AspGenerator.InitParser (System.IO.TextReader
reader, System.String filename) [0x00000]
at System.Web.Compilation.AspGenerator.Parse (System.IO.TextReader reader,
System.String filename, Boolean doInitParser) [0x00000]
at System.Web.Compilation.GenericBuildProvider`1[TParser].Parse ()
[0x00000]
at
System.Web.Compilation.GenericBuildProvider`1[TParser].get_CodeCompilerType
() [0x00000]
at System.Web.Compilation.BuildManager.GetCodeDomProviderType
(System.Web.Compilation.BuildProvider provider) [0x00000]
at System.Web.Compilation.BuildManager+BuildItem..ctor
(System.Web.Compilation.BuildProvider provider) [0x00000]
at System.Web.Compilation.BuildManager.LoadBuildProviders
(System.Web.VirtualPath virtualPath, System.String virtualDir,
System.Collections.Generic.Dictionary`2 vpCache,
System.Web.Compilation.BuildKind& kind, System.String& assemblyBaseName)
[0x00000]
at System.Web.Compilation.BuildManager.BuildAssembly
(System.Web.VirtualPath virtualPath) [0x00000]
at System.Web.Compilation.BuildManager.GetCompiledType (System.String
virtualPath) [0x00000]
at System.Web.HttpApplicationFactory.InitType (System.Web.HttpContext
context) [0x00000]
--------------------------------------------------------------------------------
Version information: Mono Version: 2.0.50727.1433; ASP.NET Version:
2.0.50727.1433
I am running mono 2.4.2 VMware version on OpenSuse11.1
Thanks,
--
View this message in context: http://www.nabble.com/System.BadImageFormatException-Error-in-porting-a-VB-.NET-application-from-Win-to-Linux-using-Mono2.4.2-tp24272451p24272451.html
Sent from the Mono - ASP.NET mailing list archive at Nabble.com.
More information about the Mono-aspnet-list
mailing list