473,804 Members | 4,269 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Trouble with aspnet_wp.exe

Hello,

I have written a ASP.NET (C#) front-end that connects to an unmanaged win32
c++ dll. A few problems occur:

-I am unable to use the IO stream (write to an event log) from the dll.
Although I can successfully use an IO stream when calling the dll from a
regular .net Windows Form.

-The program behaves very inconsitently. Normally I can connect to my
database (via the unmanaged C++ dll) for the first time only. After this it
will crash everytime UNTIL I restart the aspnet_wp process from the task
manager (at which time I can again connect to the database one time).

This will never be a productive product unless I can get a handle on why I
need to reboot aspnet_wp every 5 minutes.

Has anyone else experienced problems with aspnet_wp.exe?

Thanks!
Nov 18 '05 #1
2 1656
The ASPNET user under which the web application will run will not be able to
write to a file (I assume thats what you are using the stream for) without
explicit access/priveleges to do so. You need to give the ASPNET user enough
permissions to write to the specified directory/file.

As to your database problem, it sounds like the connection is being opened,
then not closed properly and no more connections are being allowed. Perhaps
connection pooling has been disabled? What is your connection string?

--
- Paul Glavich
Microsoft MVP - ASP.NET
"Akoni" <an*******@cox. net> wrote in message
news:uX******** ******@tk2msftn gp13.phx.gbl...
Hello,

I have written a ASP.NET (C#) front-end that connects to an unmanaged win32 c++ dll. A few problems occur:

-I am unable to use the IO stream (write to an event log) from the dll.
Although I can successfully use an IO stream when calling the dll from a
regular .net Windows Form.

-The program behaves very inconsitently. Normally I can connect to my
database (via the unmanaged C++ dll) for the first time only. After this it will crash everytime UNTIL I restart the aspnet_wp process from the task
manager (at which time I can again connect to the database one time).

This will never be a productive product unless I can get a handle on why I
need to reboot aspnet_wp every 5 minutes.

Has anyone else experienced problems with aspnet_wp.exe?

Thanks!

Nov 18 '05 #2
Thanks Paul,

Your saying that my ASPNET account has read-only privileges to my file
system? How would I go about changing the privileges of the ASPNET account?

I am actually using a Versant database (C++ Object-Oriented
database...non-.NET compliant) on the back-end. Since it does not support
..NET objects, I have to use an unmanaged non-COM C++ DLL to access and store
to it (via marshalling from c# to the unmanaged c++). The problem is that I
get very strange and inconsistent behavior.

I can actually connect to the database and even interact with it for a
period of time. Eventually though, every call to the unmanaged code causes
some generic error message to pop up...even upon rebooting the app! That is,
until I reboot aspnet_wp...whi ch seems to clear "everything " out.

Thanks for your help.
"Paul Glavich [MVP - ASP.NET]" <gl**@aspallian ce.com-NOSPAM> wrote in
message news:es******** ******@tk2msftn gp13.phx.gbl...
The ASPNET user under which the web application will run will not be able to write to a file (I assume thats what you are using the stream for) without
explicit access/priveleges to do so. You need to give the ASPNET user enough permissions to write to the specified directory/file.

As to your database problem, it sounds like the connection is being opened, then not closed properly and no more connections are being allowed. Perhaps connection pooling has been disabled? What is your connection string?

--
- Paul Glavich
Microsoft MVP - ASP.NET
"Akoni" <an*******@cox. net> wrote in message
news:uX******** ******@tk2msftn gp13.phx.gbl...
Hello,

I have written a ASP.NET (C#) front-end that connects to an unmanaged

win32
c++ dll. A few problems occur:

-I am unable to use the IO stream (write to an event log) from the dll.
Although I can successfully use an IO stream when calling the dll from a
regular .net Windows Form.

-The program behaves very inconsitently. Normally I can connect to my
database (via the unmanaged C++ dll) for the first time only. After this

it
will crash everytime UNTIL I restart the aspnet_wp process from the task
manager (at which time I can again connect to the database one time).

This will never be a productive product unless I can get a handle on why I need to reboot aspnet_wp every 5 minutes.

Has anyone else experienced problems with aspnet_wp.exe?

Thanks!


Nov 18 '05 #3

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

Similar topics

0
1134
by: Grady Nash | last post by:
All of my web servers are running win2000 and .NET 1.1 SP1. On one of my test web servers when I open Perfmon and add a new counter, aspnet_wp is missing. For example I want to see how many exceptions are thown per second by the aspnet_wp - so I pick the ".NET CLR Exceptions" performance object, then select "# of Excepts Thrown / sec" and in the listbox on the right what should be displayed is "_Global_" and "aspnet_wp". I normally would...
3
5370
by: | last post by:
This question references to KB articles: http://support.microsoft.com/default.aspx?scid=kb;EN-US;315158 http://support.microsoft.com/default.aspx?scid=kb;EN-US;317012 I'm running Advanced Server 2000 as a domain controller with IIS 5 (I know I shouldn't be doing this - just a test machine). I am using the default ASP.NET (v1.1) machine.config file..... <processModel..... userName="machine" password="AutoGenerate"..... />
0
1388
by: Rob | last post by:
hi! i am running a aspnet-application on a machine with 1 gb ram. looking into the taskmanager, the aspnet_wp-process is going to use up to 60 megs heap memory and about 55 megs virtual memory. also there are up to 500 changes in pagefaults per second. the cpu-usage of aspnet_wp is varying between 25 and 95 percent. the taskmanager told me, there are about 700mb heap memory available. the memorylimit-value in my machine.config-file is...
2
19480
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 was installed on their web server and one of the subdirectories in the web site was converted to a virtual application to support the new pages that would be added. The rest of the site was left untouched. New aspx files were added to this...
1
1279
by: Ivan Towlson | last post by:
A colleague has just installed VS2003 on Windows 2000 and created her first simple Web application, and aspnet_wp is firing up only transiently, a new instance for each request. We first noticed it when we tried to put a breakpoint in the app and VS didn't think the assembly was being loaded. Debug > Processes couldn't see the aspnet_wp process to attach manually and it didn't show up in Task Manager. Very strange. Process Explorer...
2
2195
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 twice a day the aspnet_wp process takes 100% of the cpu and causes the whole website to come to a stand still. We then have to end the process for the website to become useable. Once the aspnet_wp process recycled itself and in the event logs it...
2
2000
by: Marcin Belczewski | last post by:
I have a problem with aspnet_wp.exe on my Windows XP. When I start any of my web applications, webservices or even try to create asp.net project under vs.net - aspnet_wp.exe process starts - consumes 50% of CPU and works for a long time doing nothing - web applications, vs.net seem to hang. After some time aspnet_wp.exe spawns and another aspnet_wp.exe consumes CPU without processing requests properly. Overnight I had 30 aspnet_wp...
3
3987
by: Ramesh Dodamani | last post by:
Environment: XP Pro, VS.Net 2003, .Net 1.1.4322 with SP1 & KB Hotfix 886903 P4 2.2GHz, 1 GB RAM My system was working fine till a few weeks back when I started seeing the following errors. "aspnet_wp.exe (PID: xxxx) stopped unexpectedly" I am seeing the this error currently happen, but unlike the description in articles Q823409 or 821387, I am not downloading any large file .The error
1
1661
by: Greg | last post by:
Hi, I have a web service that calls an an assembly on a server. My client calls the web service, the web service calls the assembly... very straightforward. I have noticed 2 things though that I cannot quite understand; A) When my assembly throws an exception (that is handled and trickles back down to the client) and my client goes to invoke another call...
0
9579
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10330
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10076
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9144
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5520
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5651
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4297
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3816
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2990
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.