system.dllnotfoundexception

  • Thread starter Thread starter Xycoth
  • Start date Start date
X

Xycoth

I have an older program written in vb6. This program calls a dll
written in fortran. I have taken the time to re-write the program in
vb.net (1.1 framework), though i'm still calling the fortran dll.
Everything works fine when ran on a pc with XP. However, whenever I
try to run it on Vista I get an errormessage
"system.dllnotfoundexception" when it tries to call the dll.

I'm using

Public Declare Sub [SubName] Lib "myDLL.dll" ([Arguments])

to call the dll. There is a copy of the dll in the application
directory. If I try to run the vb6 version of this program, I do not
get this error on Vista (though I have other issues, which is why I am
re-writing it).

I'm not sure what to check next, or what I might be missing. Any
thoughts?
 
Xycoth said:
I have an older program written in vb6. This program calls a dll
written in fortran. I have taken the time to re-write the program in
vb.net (1.1 framework), though i'm still calling the fortran dll.
Everything works fine when ran on a pc with XP. However, whenever I
try to run it on Vista I get an errormessage
"system.dllnotfoundexception" when it tries to call the dll.

I'm using

Public Declare Sub [SubName] Lib "myDLL.dll" ([Arguments])

to call the dll. There is a copy of the dll in the application
directory. If I try to run the vb6 version of this program, I do not
get this error on Vista (though I have other issues, which is why I am
re-writing it).

I'm not sure what to check next, or what I might be missing. Any
thoughts?

The Dll may be using a reference to a Dll that's there on XP but is not
there on Vista.

That's why you develop, build, deploy, and test a solution on the platform
it's intended to run on.

Develop, build, deploy and test the solution on XP to be targeted for XP.

Develop, build, deploy and test the solution on Vista to be targeted for
Vista.
 
Back
Top