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

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • chza727
    New Member
    • Mar 2007
    • 3

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

    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.DllNotF oundException: 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
    Last edited by chza727; Mar 22 '07, 06:48 PM. Reason: Added Instant Email Notification
  • iam_clint
    Recognized Expert Top Contributor
    • Jul 2006
    • 1207

    #2
    hey chad,

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

    Comment

    • chza727
      New Member
      • Mar 2007
      • 3

      #3
      I declare the DLL like this:

      Private Declare Sub MYDLL Lib "C:\~\MYDLL.DLL " (<MarshalAs(Unm anagedType.Safe Array)> ByRef RUNAPTTARRAY() As String, <MarshalAs(Unma nagedType.SafeA rray)> ByRef RUNCONFIGARRAY( ) As String, <MarshalAs(Unma nagedType.SafeA rray)> ByRef RUNTEMPARRAY() As String, <MarshalAs(Unma nagedType.SafeA rray)> ByRef RUNWINDARRAY() As String, <MarshalAs(Unma nagedType.SafeA rray)> ByRef RPTTARRAY() As String, <MarshalAs(Unma nagedType.SafeA rray)> ByRef RPTLARRAY() As String, <MarshalAs(Unma nagedType.SafeA rray)> ByRef RPTCARRAY() As String, <MarshalAs(Unma nagedType.SafeA rray)> ByRef RPTSARRAY() As String, <MarshalAs(Unma nagedType.SafeA rray)> ByRef IERRORARRAY() As String, <MarshalAs(Unma nagedType.SafeA rray)> 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.



      Originally posted by iam_clint
      hey chad,

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

      Comment

      • chza727
        New Member
        • Mar 2007
        • 3

        #4
        Anyone? Can anyone help?

        Comment

        Working...