Visit our Sponsor   Visit our Sponsor
delphi3000.com - the free delphi knowledge platform
delphi3000.com - the free delphi knowledge platform
484 Users Online NOW
Have a look at your member-status

connecting people's knowledge


  - Recent ArticlesRSS feed for Recent Articles on delphi3000.com
  - List of All Articles
  - Top Viewed Articles
  - Articles (+Attachem.)
  - Articles Of Interest
  - Categories
  - Top Uploader
  - Search
  - Index

  - My Home
  - Submit an Article
  - My Articles
  - My Personal Data
  - My Bookmarks
  - Activities
  - Login/Logout

  - Sign Up
  - Why Sign Up
  - Newsletter

  - Press
  - Advertise

  - Contact
  - Feedback





Community
Borland
ClubeDelphi
Dr. Bob
UK-BUG
Delphi Meetings
Planeta Delphi



Loremo - the 1.5 liter car coming in 2009




Startblatt.de






Share this article with friendsShare this article with friends
Rate this articleRate this article - to keep the quality of delphi3000.com !
Comment this article or read through previous comments (13)


Delphi 8: Unable to attach to ASP.NET worker process (solution)Format this article printer-friendly!Bookmark function is only available for registered users!
(typically aspnet_wp.exe or w3wp.exe)
Product:
Delphi 7.x (or higher)
Category:
Others
Skill Level:
Scoring:
Last Update:
04/08/2005
Search Keys:
delphi delphi3000 article borland vcl code-snippet unable attach asp.net worker process aspnet_wp w3wp
Times Scored:
12
Visits:
9592
Uploader: Eber Irigoyen
Company: BTXSys
Reference: N/A
 
Question/Problem/Abstract:
Delphi 8 is out, with not much support, you start seeing errors you had never seen, this is one of them, in my case this happened with a fresh installation of Delphi 8, I opened it the first time, tried to do my "Hello World" web page with Delphi.NET and all I got was this error

"Unable to attach to ASP.NET worker process (typically aspnet_wp.exe or w3wp.exe)"
Answer:



Here are some of the solutions to this problem:

Edited 04/08/2005 to add this one-
1) Make sure IIS is running!!... I should've known nothing is obvious in this life, someone was having this problem and this was the cause.
To ensure IIS is running, from the Windows Start button, select Run
type inetmgr, hit ENTER, navigate down to you computer name, and make sure that the Default Web Site DOES NOT say (Stopped), I guess I have to say IIS is only available in Windows 2000 or older, (proffesional versions only?)

2)
- you have a proxy server to access the web and
- the "bypass proxy server for local addresses" was not checked

3)
another thing I found interesting is that the Delphi.NET web application runs better if you just start a browser and point it to your new page, something like:

http://localhost/delphifirst/WebForm1.aspx

instead of starting it from the Delphi IDE (with F9 like the good "old" days)

starting it from the IDE sometimes works, sometimes it doesn't, but openning the browser externally and pointing it to your page, always works

4)
on the web I found a guy with the same problem, nobody answered to him, and his own solution was this:

"It turned out I only had to upload WebForm1.aspx and the WebApplication2.dll
and the web.config.

( so much for a clear delphi help explanation lol. )

I also turned out Global.asax must not be uploaded I have no idea what this is or what the * I am doing by it works lol."

5)
Seems like this error can also be caused because the .NET framework is not registered (it doesn't register by default when you install it), anyway, to register with IIS for .NET applications all you have to do is run this commmand:

c:\windows\microsoft.net\framework\v1.1.4322\aspnet_regiis.exe -i
(or the equivalent in your machine, might be c:\windows\...)

6) Using CASSINI (instead of IIS) might solve most of your problems!
Jonathan Lavoie commented:
"I believe you’ll find that your debugging experience can be dramatically improved if you simply use Cassini rather than using IIS. Microsoft uses proprietary techniques to debug ASP.NET applications that they were unwilling to share with Borland which has made things a bit difficult. As a result we’ve built in support for debugging ASP.NET applications into our IDE via Cassini or any other ASP.NET runtime host application. We continue to investigate issues related to debugging on IIS and will continue supporting debugging on IIS but you just might have more fun debugging using Cassini."

that's it for this "article", I thought I'd share my experience with you guys, since is not very easy to find answer to this kind of problems with our new Delphi 8

if you find any more problems like this (and their solution) I suggest you post them here too, so we all have a place to look for those solutions

salu2
EberSys





Please rate this article!
Skill level:
BeginnerExpert

Useful:
No!Very!

Overall rating:
PoorExcellent



Comments to this article
Write a new comment
Error
    Walter Chacon (Jan 12 2007 4:51AM)

en  mi caso la pc tenia instalado el net framework 2, lo que hice fue configurar el iis para que el usara el net framework 1.1 y listo problema resulto.

gracias
Respond

solution found
    Claudio Araya (Jul 27 2004 11:02PM)

When I wrote my first "Hello Word" program the problem was there I've found this solution in other site:

From a command prompt try c:\windows\microsoft.net\framework\v1.1.4322\aspnet_regiis.exe -i
Respond

RE: solution found
Claudio Araya (Jul 27 2004 11:05PM)

The URL where I've found the answer is:

http://homepages.borland.com/strefethen/index.php?pagename=Delphi8.FAQ
Respond

RE: solution found
Markham Dickson (Oct 7 2004 7:40PM)

Thanks much Claudio,

I had the error... ran the dos command and everything works smoothly now.

~Markham~
Respond

RE: solution found
Erik Legrand (Nov 30 2005 9:12PM)

Thanx Claudio, did it for me.
Respond

Feel do it
    Yosan (Jul 23 2004 9:05PM)

The solution to check the Browser LAN Configuration had a good result. Thanks for tips.
Gratefull
Yosan
Respond

Delphi 8 Proxy
    Raphael Wiener (Jan 26 2004 1:07AM)

How do you check the:
"bypass proxy server for local addresses"
Respond

RE: Delphi 8 Proxy
Eber Irigoyen (Jan 27 2004 6:15PM)

in the internet explorer, go to the menu
Tools, Internet Options, Connections, Lan Settings and you'll see the option there
Respond

RE: RE: Delphi 8 Proxy
anonymus (Jan 28 2004 2:04AM)

I Tried it did not work,
have other ideas?

Thanks

Rafi
Respond

RE: RE: RE: Delphi 8 Proxy
Eber Irigoyen (Jan 30 2004 3:46PM)

did you try opening another browser and pointing it to your web application?
Respond

RE: RE: RE: RE: Delphi 8 Proxy
anonymus (Feb 2 2004 3:52PM)

Hi Eber

Thanks for helping.

When I point IE6 to:
http://localhost/WebForm1.aspx

I get the following:
Parser Error Message: 'Global.TGlobal' is not a valid base class because it does not extend class 'System.Web.HttpApplication'.

Source Error:


Line 1:  Application Codebehind="Global.pas" Inherits="Global.TGlobal"

How do I cope with this one?

Rafi.

Respond

RE: RE: RE: RE: RE: Delphi 8 Proxy
Jonathan Lavoie (Aug 25 2004 2:05PM)

Resolving “Unable to attach to ASP.NET worker process (typically aspnet_wp.exe or w3wp.exe)”

This error occurs when trying to debug an ASP.NET application using IIS as you web server and may cause a great deal of frustration trying to use ASP.NET in D8. Fear not, there are a few things you can do to avoid this error.

From a command prompt try c:\windows\microsoft.net\framework\v1.1.4322\aspnet_regiis.exe -i
Use the Microsoft Cassini web server instead.

I believe you’ll find that your debugging experience can be dramatically improved if you simply use Cassini rather than using IIS. Microsoft uses proprietary techniques to debug ASP.NET applications that they were unwilling to share with Borland which has made things a bit difficult. As a result we’ve built in support for debugging ASP.NET applications into our IDE via Cassini or any other ASP.NET runtime host application. We continue to investigate issues related to debugging on IIS and will continue supporting debugging on IIS but you just might have more fun debugging using Cassini.
Respond

RE: Delphi 8 Proxy
Eber Irigoyen (Aug 25 2004 3:32PM)

yes, I had seen this behaviour and had forgotten to update the article, is updated now
thanks for your comments
Respond














 
Sign up to consume product discounts for Bronze memberships !

read more


  Visit our Sponsor

 

  Community Ad of
E. DSpirito
 
   














 







     
  Copyright © 2000 - 2007 delphi3000.com - All rights reserved. Terms of use. || Privacy
delphi3000.com is a service by bluestep.com IT-Services GmbH (Vienna)