By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
426,133 Members | 1,113 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 426,133 IT Pros & Developers. It's quick & easy.

Unable to Load DLL Error (Fortran DLL called from aspx page)

P: 3
I call five Fortran DLLs through VB.net from an ASPX page over the internet. The first three DLLs I call run fine; however, the last two do not work. After running "net stop iisadmin /y" and then running "net start w3svc", I can then call three more of the DLLs (randomly selected), but the two remaining never work. These last two can be any two of the five. The first three DLLs that I call ALWAYS work and the last two never work. I get a "System.DllNotFoundException: Unable to load DLL" error. These DLL's have the exact same security permissions, and I tried giving everyone full control of these DLLs and I still run into the same problem. Any suggestions? Is there a better forum to post this question to?

Also, I should say that this all worked up until last Friday.


Thanks.
Chad
Mar 22 '07 #1
Share this Question
Share on Google+
3 Replies


iam_clint
Expert 100+
P: 1,208
hey chad,

can I see the script that your using to load the dll's just a snippet of the loading portion.
Mar 22 '07 #2

P: 3
I declare the DLL like this:

Private Declare Sub MYDLL Lib "C:\~\MYDLL.DLL" (<MarshalAs(UnmanagedType.SafeArray)> ByRef RUNAPTTARRAY() As String, <MarshalAs(UnmanagedType.SafeArray)> ByRef RUNCONFIGARRAY() As String, <MarshalAs(UnmanagedType.SafeArray)> ByRef RUNTEMPARRAY() As String, <MarshalAs(UnmanagedType.SafeArray)> ByRef RUNWINDARRAY() As String, <MarshalAs(UnmanagedType.SafeArray)> ByRef RPTTARRAY() As String, <MarshalAs(UnmanagedType.SafeArray)> ByRef RPTLARRAY() As String, <MarshalAs(UnmanagedType.SafeArray)> ByRef RPTCARRAY() As String, <MarshalAs(UnmanagedType.SafeArray)> ByRef RPTSARRAY() As String, <MarshalAs(UnmanagedType.SafeArray)> ByRef IERRORARRAY() As String, <MarshalAs(UnmanagedType.SafeArray)> ByRef ERRORFILEARRAY() As String)

And I call it like this:

MYDLL(RUNAPT, RUNCONFIG, RUNTEMP, RUNWIND, RPTT, RPTL, RPTC, RPTS, IERROR, ERRORFILE)


This should not be a problem as it runs locally. It USED to work last week and I have made no changes.



hey chad,

can I see the script that your using to load the dll's just a snippet of the loading portion.
Mar 22 '07 #3

P: 3
Anyone? Can anyone help?
Mar 26 '07 #4

Post your reply

Sign in to post your reply or Sign up for a free account.