473,395 Members | 1,578 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 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 2128
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Jonathan Williams | last post by:
Hi, I have an object which inherits from WebControl (CUSTOM : WebControl) In this object I have code in which I add child contols: protected override void CreateChildControls() {...
0
by: Joergen Bech | last post by:
Fairly new to ASP.NET 1.1. Getting the error below when running application on a web server outside of my control, but only the first time I run it: 1. After a long period of inactivity (or...
4
by: Bruce Parker | last post by:
I have an executable that is launched by a custom action in the Windows Installer. Is there a way to get access to the Session variables (Global Properties)? Also how do I create a return code if...
3
by: Paul Phillips | last post by:
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....
3
by: Olivier BESSON | last post by:
Hello, I have a web service of my own on a server (vb.net). I must declare it with SoapRpcMethod to be used with JAVA. This is a simple exemple method of my vb source : ...
0
by: sonu | last post by:
I have following client side code which i have used in my asp.net project SummaryFeatured Resources from the IBM Business Values Solution Center WHITEPAPER : CRM Done Right Improve the...
7
by: =?Utf-8?B?Li46OiBLZXZpbiA6Oi4u?= | last post by:
I have a problem with accessing controls that I have loaded dynamically and added to a web page. The scenario: I have a webpage that displays multiple instances of a user control on the page. ...
2
by: olekribu | last post by:
Hi! I'm struggling with the following scenario: I want my asp.net application to be able to create and write to a specific file on a remote file server from a web server. Both servers have...
1
by: glennelong | last post by:
Problem - Accessing each member of the custom control. I have a custom control which I created to hold 4 radio buttons. I have added 3 instances of the control to my application form. I can access...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.