Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > dllimport makes the aspnet application hangs

Reply
Thread Tools

dllimport makes the aspnet application hangs

 
 
=?Utf-8?B?c29ueXJhbQ==?=
Guest
Posts: n/a
 
      08-09-2004
As our application design requires us to use one of the validation API engine
which was written on C(so basically all I have is a dll) and I tested calling
the functions using small windows application using DllImport for each
functions and it works without any problem. But when I try to use the same
Dll in my asp.net web application, it hangs with the first call. I tried
giving the dll path as a hardcoded path like C:\validation.dll in my
dllimport funciton call but did not help.

I am wondering it has something to do with ASPNET account security. So I
gave full control for ASPNET account for my application directory and still
my application hangs.

Anybody faced this earlier?

 
Reply With Quote
 
 
 
 
Bryant Hankins
Guest
Posts: n/a
 
      08-09-2004
You might try running FileMon from http://www.sysinternals.com and
use it to monitor all file access activities on your machine. It should give
you an idea of what's going on with your DLL. My guess is that you are on
the right track. If you can run it from a windows app and not a web app then
it is most likely a permission or file path issue.

--
Hope this helps,
Bryant Hankins
Numinet Systems Inc.
http://www.numinet.com



"sonyram" <> wrote in message
news:65468560-AEAB-4EEF-B3C7-...
> As our application design requires us to use one of the validation API

engine
> which was written on C(so basically all I have is a dll) and I tested

calling
> the functions using small windows application using DllImport for each
> functions and it works without any problem. But when I try to use the same
> Dll in my asp.net web application, it hangs with the first call. I tried
> giving the dll path as a hardcoded path like C:\validation.dll in my
> dllimport funciton call but did not help.
>
> I am wondering it has something to do with ASPNET account security. So I
> gave full control for ASPNET account for my application directory and

still
> my application hangs.
>
> Anybody faced this earlier?
>



 
Reply With Quote
 
 
 
 
=?Utf-8?B?c29ueXJhbQ==?=
Guest
Posts: n/a
 
      08-10-2004
Thanks Bryant for your reply. Actually I solved the problem. The reason is
not security which I come to know after series of trying(like giving the
aspnet account more privs). The reason is the first init call requires a
filename parameter and I just gave only the filename and as it is an aspnet
application, it tries to find that file system32 directory where it could not
locate and it was waiting there. Once I hardcoded the value to local bin
directory, it started working

"Bryant Hankins" wrote:

> You might try running FileMon from http://www.sysinternals.com and
> use it to monitor all file access activities on your machine. It should give
> you an idea of what's going on with your DLL. My guess is that you are on
> the right track. If you can run it from a windows app and not a web app then
> it is most likely a permission or file path issue.
>
> --
> Hope this helps,
> Bryant Hankins
> Numinet Systems Inc.
> http://www.numinet.com
>
>
>
> "sonyram" <> wrote in message
> news:65468560-AEAB-4EEF-B3C7-...
> > As our application design requires us to use one of the validation API

> engine
> > which was written on C(so basically all I have is a dll) and I tested

> calling
> > the functions using small windows application using DllImport for each
> > functions and it works without any problem. But when I try to use the same
> > Dll in my asp.net web application, it hangs with the first call. I tried
> > giving the dll path as a hardcoded path like C:\validation.dll in my
> > dllimport funciton call but did not help.
> >
> > I am wondering it has something to do with ASPNET account security. So I
> > gave full control for ASPNET account for my application directory and

> still
> > my application hangs.
> >
> > Anybody faced this earlier?
> >

>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
DllImport with ASP.NET ? Brian Anderson ASP .Net 2 12-26-2004 08:58 AM
dllimport call in aspnet application makes the application hangs sonyram ASP .Net Security 0 08-09-2004 11:33 AM
Clear hangs up - & hangs up - & hangs up Sue Bilstein NZ Computing 26 03-07-2004 01:33 AM
DLLImport and Unable to Load DLL Michael Tissington ASP .Net 2 09-11-2003 10:27 PM
DllImport and structures containing char[] Stephen Richardson ASP .Net 1 08-20-2003 05:57 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57