IIS 7.0'da bir web sitesinde (Windows Server 2008'de VSTS 2010 + .Net 4.0 kullanılarak geliştirilen) bir sayfaya (default.aspx) erişmeye çalıştığımda, aşağıdaki hatayla karşılaştım: mesaj. Herhangi bir fikir yanlış nedir? BadImageFormatException nedir?BadImageFormatException sırasında. Net derleme yük sorunu
BTW: Windows Server 2008 64 bit (R2 değil) çalıştırıyorum ve Windows Server 2008 etkinleştirilmemiş, bu bir kök neden olabilir mi?
[BadImageFormatException: Could not load file or assembly 'test.foo' or one of its dependencies. Try to load bad formatted program. ] System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +0 System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection, Boolean suppressSecurityChecks) +567 System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +192 System.Reflection.Assembly.Load(String assemblyString) +35 System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +118 [ConfigurationErrorsException: Could not load file or assembly 'test.foo' or one of its dependencies. Try to load bad formatted program. ] System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +11392147 System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() +484 System.Web.Configuration.AssemblyInfo.get_AssemblyInternal() +127 System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +334 System.Web.Compilation.BuildManager.CallPreStartInitMethods() +280 System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +1087 [HttpException (0x80004005): Could not load file or assembly 'test.foo' or one of its dependencies. Try to load bad formatted program. ] System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +11524352 System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +141 System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +4782309
Derleme adınızın ".dll" eksik olduğunu düşünüyorum. Lütfen kod snippet'ini sağlayın. –
64-bit/32 bit uyumsuzluğu? Meclislerinizi belirli bir platform için mi derlediniz? – Alex
"Derleme adınızın eksik olduğunu düşünüyorum. .dll". Lütfen kod parçacığını sağlayın. " - Yığın parçasından, tüm kod yığın izinin kendi kodumda olmadığını düşünüyorum, öyle görünüyor. Net kendi kodu? Bu sorunu analiz etmek için ne .dll'yi sağlamaya ihtiyacım var ve hangi kod snippet'ini ihtiyacınız var? – George2