الفريق العربي للبرمجةأرشيف المنتديات · 2000 – 2023
نسخة أرشيفية للقراءة فقط — التسجيل والمشاركة مغلقان، والمحتوى محفوظ كما كان.

مشكله اوراكل و Asp.net ... هل من حل

مغلق
بدأه العقده في 13 ديسمبر 2007 · 9 رد · 1,376 مشاهدة · في ASP.NET
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

اخواني الاعزاء واجهتني مشكله في ربط صفحة ASP بقاعدة بيانات مستخدم اوراكل الربط مع قواعد بيانات اكسس لم اواجه به اي مشكله ولكن مع اوراكل ظهر معي الخطأ هذا :

-------------------

Server Error in '/WebSite3' Application.

--------------------------------------------------------------------------------

System.Data.OracleClient requires Oracle client software version 8.1.7 or greater.

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.Exception: System.Data.OracleClient requires Oracle client software version 8.1.7 or greater.

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.

Stack Trace:

[Exception: System.Data.OracleClient requires Oracle client software version 8.1.7 or greater.]

System.Data.OracleClient.OCI.DetermineClientVersion() +534

System.Data.OracleClient.OracleInternalConnection.OpenOnLocalTransaction(String userName, String password, String serverName, Boolean integratedSecurity, Boolean unicode, Boolean omitOracleConnectionName) +72

System.Data.OracleClient.OracleInternalConnection..ctor(OracleConnectionString connectionOptions) +276

System.Data.OracleClient.OracleConnectionFactory.CreateConnection(DbConnectionOp

tions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningObject) +58

System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnection owningConnection, DbConnectionPool pool, DbConnectionOptions options) +82

System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject) +558

System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject) +126

System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) +651

System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +160

System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +137

System.Data.OracleClient.OracleConnection.Open() +55

System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +121

System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +137

System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, String srcTable) +83

System.Web.UI.WebControls.SqlDataSourceView.ExecuteSelect(DataSourceSelectArgume

nts arguments) +1770

System.Web.UI.WebControls.BaseDataList.GetData() +53

System.Web.UI.WebControls.DataList.CreateControlHierarchy(Boolean useDataSource) +284

System.Web.UI.WebControls.BaseDataList.OnDataBinding(EventArgs e) +56

System.Web.UI.WebControls.BaseDataList.DataBind() +72

System.Web.UI.WebControls.BaseDataList.EnsureDataBound() +55

System.Web.UI.WebControls.BaseDataList.CreateChildControls() +63

System.Web.UI.Control.EnsureChildControls() +87

System.Web.UI.Control.PreRenderRecursiveInternal() +41

System.Web.UI.Control.PreRenderRecursiveInternal() +161

System.Web.UI.Control.PreRenderRecursiveInternal() +161

System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1360

--------------------------------------------------------------------------------

هل في احد من الاخوة المشرفين او الاعضاء قام بربط صفحة ASP بقواعد بيانات اوراكل .. ارجو المساعده مشروعي متوقف يا اخوان على هذي المشكله ....!!!!!! ؟؟؟؟؟؟؟؟؟؟

ليس كل ما يتمناه المرء يدركه

arabteam2000.gif

#2

يجب أن تنصب الـOracle Client على الجهاز الموجود فيه تطبيق الـASP.NET.

#3

System Down اشكر لك ردك ومساعدتك لي .. اخي System Down انا مركب فيجوال استديو 2005 على ويندوز سيرفر 2003 راكب عليه مسبقا IIS 5

وعندي كتاب ASP.NET 2005 واطبق الامثله التي به وكل شي ما شي تمام حتى عند تطبيق التعامل مع ملفات قواعد البيانات اكسس وغيره .. لكن عندما قمت بتنصيب Oracle 9i ظهرت هذه المشكله لذا قمت بتنصيب Oracle Client ايضا ولكن نفس المشكله لم تتغير .. لذا قمت بالبحث بالانترنت فوجدت رد بخصوص الموضوع هذا :

System.Data.OracleClient requires Oracle client software version 8.1.7 or greater.
Problem
When usign System.Data.OracleClient with Oracle9i client, i got the following message while connecting to the Oracle database from and ASP.NET application. 

System.Data.OracleClient requires Oracle client software version 8.1.7 or greater.


Cause
Security permissions were not properly set when the Oracle 9i Release 2 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 again causes an error while the System.Data.OracleClient is communicating with the Oracle Connectivity software from an 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 Windwos 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. 
Uncheck 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.

وايضا لم تفلح هذي الحلول معي ومازالت المشكله قائمه ومتوقف عند هذي النقطه ارجوا من الجميع ومن واجهته مثل هذي المشكله ان يسعفني بالحل وشكرا لك اخي System Down .

بانتظار ردودكم وحلولكم اخواني مشرفين واعضاء منتدى ASP.NET ..

مع ملاحظة ان كل عملي هذا على السيرفر .

ليس كل ما يتمناه المرء يدركه

arabteam2000.gif

#5

طبعا .. عملت مليون restart

ليس كل ما يتمناه المرء يدركه

arabteam2000.gif

#6

السلام عليكم

تـاكد أخي العزيز ان مجلدbin الخاص ب oracle clients مضاف الى متغير البيئة path وكذلك تأكد من تصريحات المجلد bin

#7

تم التاكد من صحة المسارات بوجودها تحت الــ Path ووضع صلاحيات القراءة والكتابة للــ Authenticated Users على مجلدات الاوراكل . عموما اخواني لقد وضعت المشروع على هذا الرابط للاطلاع عليه قد يكون خطأ مني بسبب بدايتي في تعلم برمجة الــ ASP.NET

و على رأي المثل ( اعط الخباز خبزك ولو اكل نصفه ) .

ASP and Oracle Database

ليس كل ما يتمناه المرء يدركه

arabteam2000.gif

#8

أعطي الصلاحية نفسها أيضاً للمستخدم ASPNET إذا كنت تستخدم XP أو Network Services إذا كنت تستخدم 2003.

إذا لم يفلح هذا أعطي الصلاحية للمستخدم IUSR_???

#9

System Down اشكرك كثير الشكر على اهتمامك وهذا ليس بغريب عليك فمجهوداتك ومشاركاتك يراها الاعمى ووجودك مكسب كبير للمنتدى .

الحقيقه انني قمت بازالة Oracle 9i وتركيب Oracle 10G وانتهت المشكله واشتغلت معاي جميع تطبيقات Web Applection باستخدام #C طبعا آخر حلاوه .

اشكرك مره اخرى ولو انه قليل الشكر في حقك .

ليس كل ما يتمناه المرء يدركه

arabteam2000.gif

#10

السلام عليكم

يجب عليك تسطيب برنامج وسيط, إسمه Oracle® Data Provider for .NET, حتي يتيح لك الاتصال بالأوراكل عن طريق الـ ADO.NET.

بعد ذلك تضيف من الـ solution explorer ملف oracle.dataacess.dll

بعدها تأتي في صفحة الكود وتكت

using oracle.dataacess.client أنا غير متأكد من الأسماء بالظبط

بعدها تتعامل مع الداتا بيز بالـ ADO.NET.

اتق الله حيثما كنت واتبع السيئة الحسنة تمحها وخالق الناس بخلق حسن

منتدي هندسة الحاسبات

هذا الموضوع مغلق.

مواضيع مشابهة