Mega Code Archive

 
Categories / Delphi / .NET
 

Delphi 8 Unable to attach to ASP.NET worker process (solution)

Title: Delphi 8: Unable to attach to ASP.NET worker process (solution) Question: 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 youll 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 weve 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