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 / Interop / September 2005

Tip: Looking for answers? Try searching our database.

Interop - XP vs. 2003

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
christopherkilmer@gmail.com - 08 Sep 2005 22:30 GMT
I was given a dll that was written in C++ some years ago and was asked
to write a .Net wrapper for component.

Using .Net's DllImport attribute I created a wrapper that works as
expected on my XP box.

However, when I move the wrapper (and all dependent components) to a
Windows Server 2003 box, I receive the following error:

System.DllNotFoundException : Unable to load DLL...

I have used DepencyWalker to verify that all my dependent dll file are
in the system32 directory.  I've also used FileMon to verify that my
app is finding the files in the system32 directory.

I have been googling all day and have yet to find a solution.  It has
been hinted at in a few posts the problem may have to do with
permissions or .Net configuartion.  However, I do not know how to go
about setting com interop permissions for a particular group/user.

Any help would be appreciated.
Egbert Nierop (MVP for IIS) - 11 Sep 2005 07:48 GMT
>I was given a dll that was written in C++ some years ago and was asked
> to write a .Net wrapper for component.
[quoted text clipped - 17 lines]
>
> Any help would be appreciated.

You might use the ExactSpelling=true attribute setting in the DllImport.

ps: Why not give use a sample of your code?

Rate this thread:







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.