Invalid PInvoke metadata format. how to slove this problem

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Im using .net version 1.0. it is installed in windows XP. Simplelly i tried
to connect to the oracle database.
that time it gives me this error.
Pls help me to fix this..im struggling for the whole day for this..

"Invalid PInvoke metadata format."

System.TypeLoadException: Invalid PInvoke metadata format.

Source Error:

Line 25: string constr = "Server=svr;UID=dev04;PWD=123";
Line 26: con.ConnectionString = constr;
Line 27: con.Open();
Line 28: Response.Write("Done");
Line 29:


Source File: c:\inetpub\wwwroot\webapplication1\webform1.aspx.cs Line: 27

Stack Trace:

[TypeLoadException: Invalid PInvoke metadata format.]
System.Data.OracleClient.DBObjectPool.GetObject(Object owningObject,
Boolean& isInTransaction)

System.Data.OracleClient.OracleConnectionPoolManager.GetPooledConnection(String
encryptedConnectionString, OracleConnectionString options, OracleConnection
owningObject, Boolean& isInTransaction)

System.Data.OracleClient.OracleConnection.OpenInternal(OracleConnectionString
parsedConnectionString, Object transact)
System.Data.OracleClient.OracleConnection.Open()
WebApplication1.WebForm1.Page_Load(Object sender, EventArgs e) in
c:\inetpub\wwwroot\webapplication1\webform1.aspx.cs:27
System.Web.UI.Control.OnLoad(EventArgs e)
System.Web.UI.Control.LoadRecursive()
System.Web.UI.Page.ProcessRequestMain()

Version Information: Microsoft .NET Framework Version:1.0.3705.6018; ASP.NET
Version:1.0.3705.6018
 
Well, I'd say that framework is trying to load wrong dll. Check if used
version of oracle client libraries is supported by framework 1.0 and
vice-versa.

peter
 
Rogas69 said:
Well, I'd say that framework is trying to load wrong dll. Check if used
version of oracle client libraries is supported by framework 1.0 and
vice-versa.

peter

yes, in my system i have got only one oracle dll. i dont have anything else..
i tried that also..but still getting the same error..
confused
 
Back
Top