我已在IIS 7.0 Windows Server 2008 R2 64位上安装了Web应用程序. 我指的是oracle.DataAccess.dll; 当我尝试访问该应用程序时,出现以下消息: 无法加载文件或程序集'Oracle.DataAccess'或其依赖项之一.试图加载格式不正确的程序." 有人可以帮我吗?
I have installed a Web app on IIS 7.0 Windows Server 2008 R2 64bit. I am referring an oracle.DataAccess.dll; When I try to access the application I get the following message: "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." Can anybody help me, please?
推荐答案使用带有Xcopy部署的11.2发行版3(11.2.0.2.1)"版本的Oracle数据访问组件安装过程似乎已损坏.要解决此问题,您必须在GAC中注册缺少的程序集.为此,请在管理员控制台中运行以下命令:
It seems the Oracle Data Access Component installation process using the "11.2 Release 3 (11.2.0.2.1) with Xcopy Deployment" version is broken. To fix this you must register the missing assemblies in the GAC. To do this for this specific version run these commands from within an administrator console:
md C:\Windows\assembly\GAC_32\Oracle.DataAccess\4.112.2.0__89b483f429c47342\ copy %ORACLE_HOME%\odp\bin\4\Oracle.DataAccess.dll C:\Windows\assembly\GAC_32\Oracle.DataAccess\4.112.2.0__89b483f429c47342\ md C:\Windows\assembly\GAC_32\Oracle.Web\4.112.2.0__89b483f429c47342\ copy %ORACLE_HOME%\asp\bin\4\oracle.web.dll C:\Windows\assembly\GAC_32\Oracle.Web\4.112.2.0__89b483f429c47342\请注意,这仅注册DLL的资源,而不注册其他语言的资源.因此,如果您使用的是英语以外的其他语言(de,es,fr,it,ja,ko,pt-BR,zh-CHS和zh-CHT),则还需要使用相应的资源进行注册.文件.
Note that this registers only the DLL's but not other languages resources. So, if you are using any another language than English (de, es, fr, it, ja, ko, pt-BR, zh-CHS, and zh-CHT), then you need to register these as well using the corresponding resource file.
如果在计算机上安装了Visual Studio,则可以发出以下命令:
If you have Visual Studio installed on the machine, you can issue the following commands instead:
gacutil /i %ORACLE_HOME%\odp\bin\4\Oracle.DataAccess.dll gacutil /i %ORACLE_HOME%\asp\bin\4\oracle.web.dll注意:在Visual Studio安装文件夹下查找gacutil.exe.
Note: look for gacutil.exe under the Visual Studio installation folder for it.
希望这会有所帮助.
P.S.或者,您可以尝试此
P.S. Or you can try this.
更多推荐
无法加载文件或程序集"Oracle.DataAccess"或其依赖项之一.试图加载格式不正确的程序
发布评论