What's about the " PInvoke Meta data" error?

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

Guest

I'm coding the test for testing my project ( which is
combined with 2 dll files ) .
When I call the function from the dll file , it's occur
error display "PInvoke Meta data" error and the function
cann't run in the right way.
Aspite it can run smoothly when compile by step.

Please suggest me how can I test ( or trace ) my program
by simulate the working function and call inside code.

Thanks.
 
Hi,
Thanks for your post.
I'm trying to investigate your problem, but I have something unclear,
To my understanding ,you met some errors when platform invoking the
functions inside your Dll from .NET. Could you tell me more about your dll
and that error?
Such as what language are these Dlls written in, C/C++?Is there anything
special with these Dll?
Could you give me a sample of the unmanaged definition and the managed
definition of you dll function?
The error info you gave me is only a part I couldn't find a match error to
this, could you give the complete error description and the exception type
on this error.

Also I didn't understand the following words
"
Aspite it can run smoothly when compile by step.
Please suggest me how can I test ( or trace ) my program
by simulate the working function and call inside code.
"
Could you make it clear for me?
Maybe it would be helpful if it is possible to give me a simple project to
reproduce your problem. Then, I can research on it directly.

Thanks a lot!







Best regards,

Ying-Shen Yu [MSFT]
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security

This posting is provided "AS IS" with no warranties and confers no rights.
You should not reply this mail directly, "Online" should be removed before
sending, Thanks!
 
Dear Ying-Shen Yu ,
Thanks for your advise.
I'm coding by VB.NET for Dlls class ( also whole
project ) .
The project is combined with 1 exe file and 2 Dlls.
This error occur when I connect to the SQL-server .
When connecting database.

I can trace by immed-command for retrieve the real data .
But cann't access data from program testing .

Regards,

PBO
 
Hi,
Thanks for you reply,
As your description, all you code is written in managed code, so there is
no platform invoke in your project or they just not related to this
problem, right?
Also , since this problem is occurred when connecting to the SQL server,
could you show me some code snippet on connecting the SQL Sever?
Also, could you give me the complete error information?
Thanks!


Best regards,

Ying-Shen Yu [MSFT]
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security

This posting is provided "AS IS" with no warranties and confers no rights.
You should not reply this mail directly, "Online" should be removed before
sending, Thanks!

--------------------
| Content-Class: urn:content-classes:message
| From: "pbo" <[email protected]>
| Sender: "pbo" <[email protected]>
| References: <[email protected]>
<[email protected]>
| Subject: RE: What's about the " PInvoke Meta data" error?
| Date: Tue, 28 Oct 2003 20:35:10 -0800
| Lines: 71
| Message-ID: <[email protected]>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="iso-8859-1"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
| Thread-Index: AcOd1gmmtJG8PO/zQ8qWkWvo9y/rGg==
| Newsgroups: microsoft.public.dotnet.framework.adonet
| Path: cpmsftngxa06.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.adonet:64788
| NNTP-Posting-Host: TK2MSFTNGXA09 10.40.1.161
| X-Tomcat-NG: microsoft.public.dotnet.framework.adonet
|
| Dear Ying-Shen Yu ,
| Thanks for your advise.
| I'm coding by VB.NET for Dlls class ( also whole
| project ) .
| The project is combined with 1 exe file and 2 Dlls.
| This error occur when I connect to the SQL-server .
| When connecting database.
|
| I can trace by immed-command for retrieve the real data .
| But cann't access data from program testing .
|
| Regards,
|
| PBO
|
| >-----Original Message-----
| >Hi,
| >Thanks for your post.
| >I'm trying to investigate your problem, but I have
| something unclear,
| >To my understanding ,you met some errors when platform
| invoking the
| >functions inside your Dll from .NET. Could you tell me
| more about your dll
| >and that error?
| >Such as what language are these Dlls written in, C/C++?Is
| there anything
| >special with these Dll?
| >Could you give me a sample of the unmanaged definition
| and the managed
| >definition of you dll function?
| >The error info you gave me is only a part I couldn't find
| a match error to
| >this, could you give the complete error description and
| the exception type
| >on this error.
| >
| >Also I didn't understand the following words
| >"
| >Aspite it can run smoothly when compile by step.
| >Please suggest me how can I test ( or trace ) my program
| >by simulate the working function and call inside code.
| >"
| >Could you make it clear for me?
| >Maybe it would be helpful if it is possible to give me a
| simple project to
| >reproduce your problem. Then, I can research on it
| directly.
| >
| >Thanks a lot!
| >
| >
| >
| >
| >
| >
| >
| >Best regards,
| >
| >Ying-Shen Yu [MSFT]
| >Microsoft Online Partner Support
| >Get Secure! - www.microsoft.com/security
| >
| >This posting is provided "AS IS" with no warranties and
| confers no rights.
| >You should not reply this mail directly, "Online" should
| be removed before
| >sending, Thanks!
| >
| >.
| >
|
 
Hi,
You haven't updated this issue for days, how about your problem now?
Please be free to reply me on the group, if you still have problem on this
problem.
Thanks!

Best regards,

Ying-Shen Yu [MSFT]
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security

This posting is provided "AS IS" with no warranties and confers no rights.
You should not reply this mail directly, "Online" should be removed before
sending, Thanks!
 
Hi,
Thanks for your suggestion ,

I wrote a small test program that call 2 Dlls .
An error occurs when one of the functions in the Dll try
to retrieve data from the database using sql statements .
The return error message is "PInvoke Meta data ".

Regards,
PBO

Hi,
Thanks for you reply,
As your description, all you code is written in managed code, so there is
no platform invoke in your project or they just not related to this
problem, right?

- Yes it is. In my code is no problem about the PInvoke
meta data.
Also , since this problem is occurred when connecting to the SQL server,
could you show me some code snippet on connecting the
SQL Sever?

- My connection string is normal SQL-2000 connection as
like --> "Provider=SQLOLEDB.1;Initial Catalog=local;Data
Source=local\source;uid=myname;password=sa;"

Also, could you give me the complete error information?
Thanks!


Best regards,

Ying-Shen Yu [MSFT]
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security

This posting is provided "AS IS" with no warranties and confers no rights.
You should not reply this mail directly, "Online" should be removed before
sending, Thanks!

--------------------
| Content-Class: urn:content-classes:message
| From: "pbo" <[email protected]>
| Sender: "pbo" <[email protected]>
| References: <[email protected]>
<[email protected]>
| Subject: RE: What's about the " PInvoke Meta data" error?
| Date: Tue, 28 Oct 2003 20:35:10 -0800
| Lines: 71
| Message-ID: <[email protected]>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="iso-8859-1"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
| Thread-Index: AcOd1gmmtJG8PO/zQ8qWkWvo9y/rGg==
| Newsgroups: microsoft.public.dotnet.framework.adonet
| Path: cpmsftngxa06.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.adonet:64788
| NNTP-Posting-Host: TK2MSFTNGXA09 10.40.1.161
| X-Tomcat-NG: microsoft.public.dotnet.framework.adonet
|
| Dear Ying-Shen Yu ,
| Thanks for your advise.
| I'm coding by VB.NET for Dlls class ( also whole
| project ) .
| The project is combined with 1 exe file and 2 Dlls.
| This error occur when I connect to the SQL-server .
| When connecting database.
|
| I can trace by immed-command for retrieve the real data .
| But cann't access data from program testing .
|
| Regards,
|
| PBO
|
| >-----Original Message-----
| >Hi,
| >Thanks for your post.
| >I'm trying to investigate your problem, but I have
| something unclear,
| >To my understanding ,you met some errors when platform
| invoking the
| >functions inside your Dll from .NET. Could you tell me
| more about your dll
| >and that error?
| >Such as what language are these Dlls written in, C/C++? Is
| there anything
| >special with these Dll?
| >Could you give me a sample of the unmanaged definition
| and the managed
| >definition of you dll function?
| >The error info you gave me is only a part I couldn't find
| a match error to
| >this, could you give the complete error description and
| the exception type
| >on this error.
| >
| >Also I didn't understand the following words
| >"
| >Aspite it can run smoothly when compile by step.
| >Please suggest me how can I test ( or trace ) my program
| >by simulate the working function and call inside code.
| >"
| >Could you make it clear for me?
| >Maybe it would be helpful if it is possible to give me a
| simple project to
| >reproduce your problem. Then, I can research on it
| directly.
| >
| >Thanks a lot!
| >
| >
| >
| >
| >
| >
| >
| >Best regards,
| >
| >Ying-Shen Yu [MSFT]
| >Microsoft Online Partner Support
| >Get Secure! - www.microsoft.com/security
| >
| >This posting is provided "AS IS" with no warranties and
| confers no rights.
| >You should not reply this mail directly, "Online" should
| be removed before
| >sending, Thanks!
| >
| >.
| >
|

.
 
hi pbo,
according to your description, the problem is getting clearer.
could you show me some snippets of the dll function which you get the error
msg?
Then I can research on it to see if I can figure out a solution.
Thanks!


Best regards,

Ying-Shen Yu [MSFT]
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security

This posting is provided "AS IS" with no warranties and confers no rights.
You should not reply this mail directly, "Online" should be removed before
sending, Thanks!
 
Back
Top