Accessing a custom dll in asp.net

G

Guest

Here is what I am trying to do.

I have an application that is written in VB 6 and in this application it is
accessing a custom dll file that was created using Microsoft Fortran
Professional 4.0. Now I have created the same application as far as user
interface in a ASP.Net web application but I am having trouble accessing the
Fortran dll file.

I am doing the DLLImport statement in a class by itself. I make an
instance of this class and then call the function from the class that in turn
calls the function in the Fortran dll file.

When the app makes the call to the Fortran dll, the app just sits there and
seems like it is trying to do something but it never returns with anything.

Unfortunatly right now I don't have the source code for the Fortran dll.

I am just asking if anyone has some suggested reading material or articles
from MSDN that I can reference and see if I can make this work or do I need
to try to re-write this Fortran dll file into some .Net dll file in C# or can
that be done.

Thanks in advance,

Paul
 
L

Lance Wynn

What if you created an ActiveX wrapper for the fortran DLL (since it works
in VB6), and then see if you get the same hung app calling the activeX dll
from .NET


Here is what I am trying to do.

I have an application that is written in VB 6 and in this application it is
accessing a custom dll file that was created using Microsoft Fortran
Professional 4.0. Now I have created the same application as far as user
interface in a ASP.Net web application but I am having trouble accessing the
Fortran dll file.

I am doing the DLLImport statement in a class by itself. I make an
instance of this class and then call the function from the class that in
turn
calls the function in the Fortran dll file.

When the app makes the call to the Fortran dll, the app just sits there and
seems like it is trying to do something but it never returns with anything.

Unfortunatly right now I don't have the source code for the Fortran dll.

I am just asking if anyone has some suggested reading material or articles
from MSDN that I can reference and see if I can make this work or do I need
to try to re-write this Fortran dll file into some .Net dll file in C# or
can
that be done.

Thanks in advance,

Paul
 
G

Guest

Thanks Lance,

Actually I did do that. I wrote a quick ActiveX dll wrapper in VB 6. I
imported the dll and it works fine in a windows .net app but I can't get it
to work in the asp.net web application.

Any more suggestions would be appreciated.

Thanks,

paul
 
L

Lance Wynn

Without an actual error, it's just guessing, but could it be a permissions
problem within the ASP.Net application?


Thanks Lance,

Actually I did do that. I wrote a quick ActiveX dll wrapper in VB 6. I
imported the dll and it works fine in a windows .net app but I can't get it
to work in the asp.net web application.

Any more suggestions would be appreciated.

Thanks,

paul
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top