在Windows Server 2008 r2中实现asp.net Web应用程序 [英] Implementing asp.net web applications in windows server 2008 r2

查看:187
本文介绍了在Windows Server 2008 r2中实现asp.net Web应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我在windows server 2008 r2中实现asp.net web应用程序,但是我收到了这个错误



错误:system.data.oracleclient需要oracle客户端软件版本8.1.7或更高版本



我的web应用程序正在我的开发pc中运行带窗口XP操作系统。





我该怎么做才能解决这个问题?





提前致谢。







Hernan Cabrera

Hi,

I am implementing asp.net web applications in windows server 2008 r2 but I am getting this error

Error : system.data.oracleclient requires oracle client software version 8.1.7 or greater

My web applications are running in my development pc with window XP OS.


What should I do to solve this issue?


Thanks in advance.



Hernan Cabrera

推荐答案

原因



Oracle客户端时未正确设置安全权限使用NTFS安装在Windows上。结果是ORACLE_HOME目录的内容对机器上的Authenticated Users不可见;当System.Data.OracleClient使用经过身份验证的用户权限从ASP.NET与Oracle Connectivity软件进行通信时,这会导致错误。



解决方案



要解决此问题,您必须将Authenticated Users组权限授予Oracle主目录。



以具有管理员权限的用户身份登录Windows。

启动Window Explorer并导航到ORACLE_HOME文件夹。

在ORACLE_HOME文件夹中选择属性。

单击属性窗口的安全选项卡。

单击名称列表中的已验证用户项。

取消选中允许列下权限列表中的读取和执行框。

重新检查允许列下的读取和执行框。

单击高级按钮,然后在权限条目中验证已验证的用户是否为经许可列出=阅读&执行,并应用于=此文件夹,子文件夹和文件。如果没有,请编辑该行并确保应用于下拉框设置为此文件夹,子文件夹和文件。这应该已经正确设置了,但验证它是很重要的。

单击确定按钮,直到关闭所有安全属性窗口。光标可能会显示小时玻璃几秒钟,因为它将您刚刚更改的权限应用于所有子文件夹和文件。

重新启动,以确保更改生效。

再试一次你的申请。



欲了解更多信息,请查看: http://stackoverflow.com/questions/447983/system-data-oracleclient-requires-oracle-client-software-version-8-1 -7 [ ^ ]



我希望这会对你有所帮助。
Cause

Security permissions were not properly set when the Oracle client was installed on Windows with NTFS. The result of this is that content of the ORACLE_HOME directory is not visible to Authenticated Users on the machine; this causes an error while the System.Data.OracleClient is communicating with the Oracle Connectivity software from ASP.NET using Authenticated User privileges.

Solution

To fix the problem you have to give the Authenticated Users group privilege to the Oracle Home directory.

Log on to Windows as a user with Administrator privileges.
Start Window Explorer and navigate to the ORACLE_HOME folder.
Choose properties on the ORACLE_HOME folder.
Click the "Security" tab of the "Properties" window.
Click on "Authenticated Users" item in the "Name" list.
Un-check the "Read and Execute" box in the "Permissions" list under the "Allow" column.
Re-check the "Read and Execute" box under the "Allow" column.
Click the "Advanced" button and in the "Permission Entries" verify that "Authenticated Users" are listed with permission = "Read & Execute", and Apply To = "This folder, subfolders and files". If not, edit that line and make sure that "Apply To" drop-down box is set to "This folder, subfolders and files". This should already be set properly but it is important that you verify it.
Click the "Ok" button until you close out all of the security properties windows. The cursor may present the hour glass for a few seconds as it applies the permissions you just changed to all subfolders and files.
Reboot, to assure that the changes have taken effect.
Try your application again.

For more info check this : http://stackoverflow.com/questions/447983/system-data-oracleclient-requires-oracle-client-software-version-8-1-7[^]

I hope this will help to you.


这篇关于在Windows Server 2008 r2中实现asp.net Web应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆