471,349 Members | 1,534 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,349 software developers and data experts.

Accessing a custom dll in asp.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
Jul 21 '05 #1
3 2029
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
"Paul Phillips" <Pa**********@discussions.microsoft.com> wrote in message
news:E7**********************************@microsof t.com...
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
Jul 21 '05 #2
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

"Lance Wynn" wrote:
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
"Paul Phillips" <Pa**********@discussions.microsoft.com> wrote in message
news:E7**********************************@microsof t.com...
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

Jul 21 '05 #3
Without an actual error, it's just guessing, but could it be a permissions
problem within the ASP.Net application?
"Paul Phillips" <Pa**********@discussions.microsoft.com> wrote in message
news:BA**********************************@microsof t.com...
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

"Lance Wynn" wrote:
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
"Paul Phillips" <Pa**********@discussions.microsoft.com> wrote in message
news:E7**********************************@microsof t.com...
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

Jul 21 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Jonathan Williams | last post: by
4 posts views Thread by Bruce Parker | last post: by
3 posts views Thread by Paul Phillips | last post: by
7 posts views Thread by =?Utf-8?B?Li46OiBLZXZpbiA6Oi4u?= | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.