Forum

Asp.net Oracle Hata...
 
Bildirimler
Hepsini Temizle

Asp.net Oracle Hatası

13 Yazılar
2 Üyeler
0 Likes
4,007 Görüntüleme
(@borahanarslan)
Gönderiler: 18
Eminent Member
Konu başlatıcı
 

Merhaba arkadaşlar asp.net ile yaptığım siteyi sunucuya yolladım. Oracle veri tabanına bağlantı kurmam gerektiği için oracle.data. acces dll ide yükledim. 

Projenin Bin klasörüne kopyaladım, dosya yazma izinlerini verdim ama hala aşağıdaki gibi bir hata alıyorum çözümü konusunda fikri olan varmı

 

Server Error in '/' Application.


Could not load file or assembly 'Oracle.DataAccess' or one of its dependencies. An attempt was made to load a program with an incorrect format.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.BadImageFormatException: Could not load file or assembly 'Oracle.DataAccess' or one of its dependencies. An attempt was made to load a program with an incorrect format.

Source Error: 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Assembly Load Trace: The following information can be helpful to determine why the assembly 'Oracle.DataAccess' could not be loaded.

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

Stack Trace: 

[BadImageFormatException: Could not load file or assembly 'Oracle.DataAccess' or one of its dependencies. An attempt was made to load a program with an incorrect format.]
   System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +0
   System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +210
   System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection) +242
   System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +17
   System.Reflection.Assembly.Load(String assemblyString) +35
   System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +122

[ConfigurationErrorsException: Could not load file or assembly 'Oracle.DataAccess' or one of its dependencies. An attempt was made to load a program with an incorrect format.]
   System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +12761078
   System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() +503
   System.Web.Configuration.AssemblyInfo.get_AssemblyInternal() +142
   System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +334
   System.Web.Compilation.BuildManager.CallPreStartInitMethods(String preStartInitListPath) +203
   System.Web.Compilation.BuildManager.ExecutePreAppStart() +152
   System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +1151

[HttpException (0x80004005): Could not load file or assembly 'Oracle.DataAccess' or one of its dependencies. An attempt was made to load a program with an incorrect format.]
   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +12881540
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +159
   System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +12722601


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.17929 

 
Gönderildi : 12/01/2014 18:27

(@kenanilgun)
Gönderiler: 544
Üye
 

Merhaba,

IIS üzerinden application pool kısmından application poolunuzu seçerek gelişmiş ayarlarından 32 bit özelliğini açar mısınız? 

 
Gönderildi : 12/01/2014 19:13

(@borahanarslan)
Gönderiler: 18
Eminent Member
Konu başlatıcı
 

Merhaba,

IIS üzerinden application pool kısmından application poolunuzu seçerek gelişmiş ayarlarından 32 bit özelliğini açar mısınız? 

Kenan hocam o hata gitti şimdide aşağıdaki oracle.web şeklinde hata vermeye başladı. Yüklü olmasına rağmen yükleyemedi diye hata dönüyor. Gittim Oracle sitesinden ODAC indirip onu bile yükledim sunucuya ama nafile 

 

Server Error in '/' Application.


Could not load file or assembly 'Oracle.Web' or one of its dependencies. An attempt was made to load a program with an incorrect format.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.BadImageFormatException: Could not load file or assembly 'Oracle.Web' or one of its dependencies. An attempt was made to load a program with an incorrect format.

Source Error: 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Assembly Load Trace: The following information can be helpful to determine why the assembly 'Oracle.Web' could not be loaded.

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

Stack Trace: 

[BadImageFormatException: Could not load file or assembly 'Oracle.Web' or one of its dependencies. An attempt was made to load a program with an incorrect format.]
   System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +0
   System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +34
   System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) +152
   System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection) +77
   System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +16
   System.Reflection.Assembly.Load(String assemblyString) +28
   System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +38

[ConfigurationErrorsException: Could not load file or assembly 'Oracle.Web' or one of its dependencies. An attempt was made to load a program with an incorrect format.]
   System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +752
   System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() +218
   System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai) +130
   System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +170
   System.Web.Compilation.BuildManager.GetPreStartInitMethodsFromReferencedAssemblies() +91
   System.Web.Compilation.BuildManager.CallPreStartInitMethods(String preStartInitListPath) +258
   System.Web.Compilation.BuildManager.ExecutePreAppStart() +135
   System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +516

[HttpException (0x80004005): Could not load file or assembly 'Oracle.Web' or one of its dependencies. An attempt was made to load a program with an incorrect format.]
   System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +9873912
   System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +101
   System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +254


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.17929 

 
Gönderildi : 12/01/2014 19:25

(@kenanilgun)
Gönderiler: 544
Üye
 

Hata 32 bit ayarını yaptıktan sonra mı gitti ?

 
Gönderildi : 12/01/2014 19:34

(@borahanarslan)
Gönderiler: 18
Eminent Member
Konu başlatıcı
 

Hata 32 bit ayarını yaptıktan sonra mı gitti ?

 

Evet Onu yaptıktan sonra gitti şimdide başka bir hata vermeye başladı. İyice bu windows ve asp.netten soğumaya başladım valla. Php ve Java bu kadar esnekken windowsun bu kadar sorun çıkartması insanı çıldırtıyor şimdide aşağıdaki hatayı veriyor bu bitince eminim başka bir hata verecek

Server Error in '/' Application.


Configuration Error

Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately. 

Parser Error Message: Unrecognized attribute 'targetFramework'. Note that attribute names are case-sensitive.

Source Error: 

Line 27:       </providers>
Line 28:     </membership>
Line 29: 		<compilation debug="true" targetFramework="4.0">
Line 30: 			<assemblies>
Line 31: 				<add assembly="DevExpress.Web.v13.1, Version=13.1.5.0, Culture=neutral, PublicKeyToken=B88D1754D700E49A"/>

Source File: C:\inetpub\wwwroot\web.config    Line: 29 


Version Information: Microsoft .NET Framework Version:2.0.50727.5472; ASP.NET Version:2.0.50727.5474 

 
Gönderildi : 12/01/2014 19:40

(@kenanilgun)
Gönderiler: 544
Üye
 

Application Pool ayarlarında version olarak 2.0 mı var kontrol edermisin? Siz sanırım 4.0 versionu ile geliştirme yapmışsınız IIS Application Pool 2.0 olabilir. 

 
Gönderildi : 12/01/2014 19:51

(@borahanarslan)
Gönderiler: 18
Eminent Member
Konu başlatıcı
 

Application Pool ayarlarında version olarak 2.0 mı var kontrol edermisin? Siz sanırım 4.0 versionu ile geliştirme yapmışsınız IIS Application Pool 2.0 olabilir. 

Hocam onları kontrol ettim 4.0 çektim 32 bit versiyonunu true yaptım. Bu seferde oracle.web hatasını vermeye devam ediyor. Ondan ne yapacağımı şaşırmış durumdayım şuan  

 
Gönderildi : 12/01/2014 20:04

(@kenanilgun)
Gönderiler: 544
Üye
 

Visual studio da reference kısmında yer alan oracle ile ilgili dll lerin hepsini attınız mı kontrol eder misiniz? 

 
Gönderildi : 12/01/2014 20:08

(@borahanarslan)
Gönderiler: 18
Eminent Member
Konu başlatıcı
 

Visual studio da reference kısmında yer alan oracle ile ilgili dll lerin hepsini attınız mı kontrol eder misiniz? 

Hocam oracle bütün dll.leri devexpresin bütün dll lerini attım, tüm dosya izinlerini kontrol ettim ,herşeyi yaptım ama bir yerde patlıyor mutlaka. Sunucu iş yerinde bize ait bir sunucu belki onun konfigurasyonlarında bir sorun var yada ben çok beceriksizim. Biraz daha deneyecem olmazsa kurtarıcım php de geri dönecem 🙁 

 
Gönderildi : 12/01/2014 20:15

(@kenanilgun)
Gönderiler: 544
Üye
 

Borahan ben delphi den c# geçerken de aynı sorunları yaşadım bu kadar kolay pes etmedim açıkçası 🙂 ve belli konuları kavradığımda basit gelmeye başladı. Şimdi şöyle bir konuyu daha iyi anlayalım, şuanda elimizde "Oracle.Web" kısmı ile ilgili bir hata var. Peki bu namespace deki classları nerede kullanıyorsun, sen kullanmıyorsan reference kısmında böyle bir dll var mı yok mu kontrolü yapar mısın? Ve reference kısmında ki tüm dll listesini print screen ile atabilir misin?

 
Gönderildi : 12/01/2014 20:26

(@borahanarslan)
Gönderiler: 18
Eminent Member
Konu başlatıcı
 

Borahan ben delphi den c# geçerken de aynı sorunları yaşadım bu kadar kolay pes etmedim açıkçası 🙂 ve belli konuları kavradığımda basit gelmeye başladı. Şimdi şöyle bir konuyu daha iyi anlayalım, şuanda elimizde "Oracle.Web" kısmı ile ilgili bir hata var. Peki bu namespace deki classları nerede kullanıyorsun, sen kullanmıyorsan reference kısmında böyle bir dll var mı yok mu kontrolü yapar mısın? Ve reference kısmında ki tüm dll listesini print screen ile atabilir misin?

Ya  Kenan hocam haklısın ama 4-5 aydır asp.net ile uğraşıyorum bu kadar insanı bezdiren bir sistem görmedim. Şuan işyerindeyim eve geçeceğim oraya geçince ekran görüntülerini paylaşayım buradan. Bu arada ilgi ve alakan için çok teşekkür ederim 

 
Gönderildi : 12/01/2014 20:31

(@kenanilgun)
Gönderiler: 544
Üye
 

Rica ederim bilgi paylaştıkça güzeldir. Bizler ne kadar iyi şeyler yapabilirsek o kadar mutlu oluruz. Bu arada sorununuz tamamı ile proje  dosyaları düzeninden ve reference dll leri üzerinden olduğu için IIS tarafında hata aldığınızı tespit ettik ve sorununuzu bu şekilde çözdük.

Hayırlı kandiller iyi çalışmalar dilerim.

 

 
Gönderildi : 13/01/2014 00:35

(@borahanarslan)
Gönderiler: 18
Eminent Member
Konu başlatıcı
 

Kenan Hocam sayesinde sorunum çözüldü. Teşekkür ettim kendisine. Sorun benden kaynaklıymış 🙁

 
Gönderildi : 13/01/2014 00:35

Paylaş: