CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.security Tags:
Item Type: NewsGroup Date Entered: 8/9/2004 11:25:12 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 1 Views: 46 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
2 Items, 1 Pages 1 |< << Go >> >|
sonyram
Asp.Net User
dllimport from asp.net application hangs8/9/2004 11:25:12 AM

0/0

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?

My Weblog
bdesmet
Asp.Net User
Re: dllimport from asp.net application hangs8/11/2004 12:49:20 AM

0/0

If you can, try to test it on Windows Server 2003 and set the app pool identity for the application to SYSTEM (not the default NETWORK SERVICE). If this works (you can do this on W2K as well using the processModel section in the machine.config file) you're sure it's a rights-problem. However, there are plenty of other things to be checked first. If it's a non-.NET component, you should register it first (remember the COM DLL hell? ;-) ) so ASP.NET can find it. If it's a security problem, it's unlikely that the problem is an ACL (all right, the ASP.NET process needs to have read-rights at least to locate the dll). Rather, the problem will be the .NET Framework Security configuration on the server that does not allow the unprivileged account (as ASPNET is one) to load this particular component.

But first things first. Try to find out whether it has to do with the ASP.NET application pool (W2K3) or worker process (W2K) identity the way I described before. If this works, don't leavy the SYSTEM account there but start to find a way to get it to work with the limited account the ASP.NET is using in order to get security right.
Bart De Smet [MVP]



Visit www.msdn.be, www.bartdesmet.net
2 Items, 1 Pages 1 |< << Go >> >|


Free Download:


Web:
dllimport call in aspnet application makes the application hangs ... 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 ...
DllImport Error - ASP.NET Security dllimport call in aspnet application makes the application hangs, sonyram, ASP. NET Security, 0, 08-09-2004 12:33 PM ...
[DllImport] Big problem !!!!!! - ASP.NET Forums NET 2.0 web application using p/Invoke platform (dllImport attribute). .... to use the same Dll in my asp.net web application, it hangs with the first call. ...
Resuscitate Your .NET Programs with the Application Recovery and ... Dec 11, 2007 ... Dealing with DllImport, (Part 2 of 2) ยท Microsoft ASP.NET 2.0 ... return to a consistent state when your application terminates or hangs, ...
vbCity/DevCity.NET Forums :: .NET :: .NET General :: DllImport ... Since I posted this ive tried loading the .dll in Java using System.load() and it just hangs like in .NET. I renamed a .txt file to .dll and ...
Asp.net and third party unmanaged dll : The Official Microsoft IIS ... I have an asp.net/C# application that uses third party dll to get some ... IIS hangs when accessing dll methods (IIS Worker Process stopped ...
windowsce testtools Application Verifier for WM5 refuses to run ... My applications are .NET applications. The Log Viewer wants . ... Marty, We do make calls to Windows APIs through PInvoke using DllImport, ...
Run app as specified user from ASP.NET 2.0 in ASP.net base articles: #How to implement impersonation in an ASP.NET application .... // [DllImport("kernel32.dll", CharSet = CharSet.Auto)] ...
Windows Vista - Application Recovery with C# - B# .NET Blog Nov 11, 2006 ... Applications do hang sometimes. Although it's always better to fix the ... RestartFlags dwFlags); [DllImport("kernel32.dll")] static extern ...
CodeProject: Using Unmanaged C++ Libraries (DLLs) in .NET ... Using Win32 API via [DllImport] attributes is a typical example of P/Invoke in .... NET applications. At the time of this writing, it is difficult to verify ...




Search This Site:










skin file for gridview

setting a radiobutton programatically.

understanding tab execution

url rewriting and returnurl

javascript not working in mozilla

how to encrypt form elements value ?

how to send a variable to an ascx that resides inside a master page ??

treeview specified cast is not valid error

asp database connection (vb.net)

visual studio 2.0 - when creating a new project the source files do not appear to sit in wwroot, why?

add a login, roles an asp.net 2.0 application

3.0.x issue - editing the host or admin user accounts

dotnetnuke debugging

web deployment projects - fusion mismatch error with strong named references

where can i find info on .net 2.0 application/membership and sql 2000?

clear history

"code behind" or not? why?

sharing cookies with sub web

.net 2.0 v. .net 1.1

architecture decisions, the business world, and dnn

how to write the second tables data from dataset xml using writexml

send user message when record not found

certification

listbox - determine prim key of selected item

getting data through a firewall

installation failed - please help

inputvalidator.ansinameexpressionstring

n-tier

skin parsing in 3.0.13

passing parameters

 
All Times Are GMT