Skip to Main Content

ODP.NET

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Could not load file or assembly 'System.EnterpriseServices

753066Feb 11 2010 — edited Feb 15 2010
Hello Guys,

I"m new to Oracle and .Net, I'm trying to display data in a gridview but when I run my Asp.net application I get this error: "*System.IO.FileNotFoundException: Could not load file or assembly 'System.EnterpriseServices, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified*"

I am not sure wat this means and I have been searching the internet with no success. I'm using Oracle 9i Client 9.2.0.1.0 and I downloaded ODP.NET Version=9.2.0.700 just recently. Cud this have caused the problem????

Here is a snippet of my code and the program bombs at conn.open(), it seems like it cannot read my connectionString.

public DataTable FetchData(string statement)
{
DataTable dt = new DataTable();
string constr = "Data Source=PSM1;User ID=CHRHRDM;Password=CHRHRDM";
//conn.ConnectionString = "Data Source=PSM1;User ID=CHRHRDM;Password=CHRHRDM";
OracleConnection conn = new OracleConnection(constr);
conn.Open();

OracleCommand cmd = new OracleCommand(statement, conn);
cmd.ExecuteNonQuery();

OracleDataAdapter adapter = new OracleDataAdapter(cmd);

adapter.Fill(dt);

//cmd.Connection.Close();
conn.Close();
return dt;

}


And this is wat I see in my Event Viewer:

Event code: 3005
Event message: An unhandled exception has occurred.
Event time: 2010/02/11 10:38:59 AM
Event time (UTC): 2010/02/11 08:38:59 AM
Event ID: 16667c76f5eb459abfa0066c08b62c6d
Event sequence: 4
Event occurrence: 1
Event detail code: 0

Application information:
Application domain: 5ba4c282-1-129103511373281250
Trust level: Full
Application Virtual Path: /SSU_Website
Application Path: C:\Documents and Settings\user\My Documents\Work\HRODS\Junno Work\SSU Project\SSU_Website\
Machine name: ACER-926C8D0979

Process information:
Process ID: 5328
Process name: WebDev.WebServer.EXE
Account name: ACER-926C8D0979\bothank

Exception information:
Exception type: FileNotFoundException
Exception message: Could not load file or assembly 'System.EnterpriseServices, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.

Request information:
Request URL: http://localhost:1241/SSU_Website/Default2.aspx
Request path: /SSU_Website/Default2.aspx
User host address: 127.0.0.1
User: ACER-926C8D0979\bothank
Is authenticated: True
Authentication Type: NTLM
Thread account name: ACER-926C8D0979\bothank

Thread information:
Thread ID: 4
Thread account name: ACER-926C8D0979\bothank
Is impersonating: False
Stack trace: at Oracle.DataAccess.Client.OpoConRefCtx..ctor()
at Oracle.DataAccess.Client.OracleConnection.Open()
at DAL.FetchData(String statement) in c:\Documents and Settings\user\My Documents\Work\HRODS\Junno Work\SSU Project\SSU_Website\App_Code\DAL\DAL.cs:line 26
at CommonQueries.GetAllDetails() in c:\Documents and Settings\user\My Documents\Work\HRODS\Junno Work\SSU Project\SSU_Website\App_Code\BLL\CommonQueries.cs:line 30
at Default2.populateGridView() in c:\Documents and Settings\user\My Documents\Work\HRODS\Junno Work\SSU Project\SSU_Website\Default2.aspx.cs:line 28
at Default2.Page_Load(Object sender, EventArgs e) in c:\Documents and Settings\user\My Documents\Work\HRODS\Junno Work\SSU Project\SSU_Website\Default2.aspx.cs:line 20
at System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e)
at System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e)
at System.Web.UI.Control.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Can Someone Please help me... I'm in desperate need
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 15 2010
Added on Feb 11 2010
1 comment
3,401 views