473,385 Members | 1,317 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,385 software developers and data experts.

Unmanaged DLL blocked by aspnet_wp.exe

Hello,

I've got another kind of DllNotFoundException problem happening to my
Web Application. My application uses a C# dll (lets call it
managed.dll) which has a static wrapper method for a function in a
Win32 dll (lets call it unmanaged.dll) which generates some product
key. So the chain is as follows:

MyWebApp --- calls --> managed.GenerateKey(...) -- calls --> unmanaged
GenerateTheKey(...)

Both dll's are in my WebApplication/bin directory. The wrapper uses
standard PInvoke (dllimport). Normally all webrequests are processed
without any problems, but sometimes after just few requests I get the
System.DllNotFoundException. In fact, the unmanaged dll file IS at its
place but its blocked by the aspnet_wp process and it cannot be
accessed by any other process. I have then manually to kill the
aspnet_wp process to get my appplication run properly again.

I'll be very gratefull for any help

Kind regards,

gryg00s

Nov 19 '05 #1
2 1278

Hi grygoos:

aspnet_wp.exe is the process running your web application. I'd try
using CLRSpy to see if it can spot an obvious defect in the code:
http://www.gotdotnet.com/Community/U...5-ad09ef3bb37f

--
Scott
http://www.OdeToCode.com/blogs/scott/

On 26 Apr 2005 02:25:41 -0700, gr*****@poczta.fm wrote:
Hello,

I've got another kind of DllNotFoundException problem happening to my
Web Application. My application uses a C# dll (lets call it
managed.dll) which has a static wrapper method for a function in a
Win32 dll (lets call it unmanaged.dll) which generates some product
key. So the chain is as follows:

MyWebApp --- calls --> managed.GenerateKey(...) -- calls --> unmanaged
GenerateTheKey(...)

Both dll's are in my WebApplication/bin directory. The wrapper uses
standard PInvoke (dllimport). Normally all webrequests are processed
without any problems, but sometimes after just few requests I get the
System.DllNotFoundException. In fact, the unmanaged dll file IS at its
place but its blocked by the aspnet_wp process and it cannot be
accessed by any other process. I have then manually to kill the
aspnet_wp process to get my appplication run properly again.

I'll be very gratefull for any help

Kind regards,

gryg00s


Nov 19 '05 #2
Hi Scott

thanks for you reply

I already figured out how to avoid this problem:

after each rebuild of my project in VS i need explicitly to kill the
aspnet_wp.exe process otherwsie somehow it blocks the unmanaged dll.
After this is done everything works normal. However i dont know yet why
it gets blocked as the unmanaged.dll isnt rebuilt at all.

gryg00s

Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

15
by: Bryan | last post by:
I have a multi-threaded C# console application that uses WMI (System.Management namespace) to make RPC calls to several servers (600+ ) and returns ScheduledJobs. The section of my code that...
1
by: Omid Hodjati | last post by:
Hi All, I have an old unmanaged code written in C++ 6.0. This is a time critcal, CPU bound application. I have deciede migrate this application to managed world and VC++ 7.0. The first step was...
3
by: TheLetti | last post by:
Hello out there, is there any possibility for me to catch or avoid crashes caused within unmanaged code? The situation: I'm writing a managed wrapper in MC++, and in there I use some...
2
by: Matt Sollars | last post by:
Hi all. I'm having a nasty problem. A client's website was originally written with classic ASP. They requested a new portion of the site that was deemed a perfect candidate for ASP.NET. So, .NET...
15
by: Chetan Raj | last post by:
Hi All, We have a web-application in asp.net that interacts with legacy code written in COM. The memory usage in aspnet_wp.exe increases every sec and never reduces. Using the .NET performance...
0
by: monika.saxena | last post by:
Hi all, In one of my projects which is a web based application in asp.net, a third party tool - "Frontline Solver DLL" (It is an unmanaged DLL and ..NET is calling it using the PInvoke) is used....
2
by: Sidharth | last post by:
Hello, We are experiencing some issues with the aspnet_wp process on our live servers. The problems are intermittent and we cannot reproduce it on our dev and test servers. Currently around...
1
by: Schalley Ben | last post by:
Hi First of all, this is my first post on a newsgroup so don't shoot me if I ask this in the wrong place. Here is the situation. I'm developing an asp.net application with access to a SQL...
1
by: =?Utf-8?B?VmxhZA==?= | last post by:
We have web application running in framework 2.0. This application makes calls to unmanaged DLL written in Delphi 2007. Everything works fine. But we cannot debug the DLL. The DLL was compiled in...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...

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.