Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / July 2007

Tip: Looking for answers? Try searching our database.

ildasm/ilasm to system.data.dll in framework 2.0 result in error

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
gilad - 13 Jul 2007 10:11 GMT
Using ildasm.exe I got il file. then, using ilasm I wanted to get the
assembly back but it failed. at the beginning it showed the following
error for several global methods with pinvokeimpl.

error -- Local (embedded native) PInvoke method, the resulting PE file
is unusable

Is this a known bug?
Anything to bypass it?

Thanks,
Gilad.
Damien - 13 Jul 2007 11:59 GMT
> Using ildasm.exe I got il file. then, using ilasm I wanted to get the
> assembly back but it failed. at the beginning it showed the following
[quoted text clipped - 8 lines]
> Thanks,
> Gilad.

The problem is, System.Data.dll isn't a pure IL assembly - it contains
some native code. As noted in the docs for ildasm (at least the 1.1
version, probably the same in later versions):

Currently, you cannot use this technique with PE files that contain
embedded native code (for example, PE files produced by Visual C+
+ .NET).

(I just pulled up MSDN for 2.0 and it says the same)

So, your IL file doesn't contain enough info to recreate the file.

Damien
gilad - 15 Jul 2007 07:00 GMT
Hi,
Thanks for the information. Can you please send the link to the MSDN
article?

Gilad.
Damien - 16 Jul 2007 07:29 GMT
> Hi,
> Thanks for the information. Can you please send the link to the MSDN
> article?
>
> Gilad.

Look down in the Remarks section

http://msdn2.microsoft.com/en-us/library/f7dy01k1(VS.80).aspx

But it really doesn't explain much more.

Damien

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.