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
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