Hello Mark,
From your description, you're encountering some problem when try using the
"F5" to launch the debugging session of a Visual Studio 2005 c++ webservice
project, correct?
Based on my understanding, vs 2003 and vs 2005 support two kinds of C++
webservice projects:
** ASP.NET webservice
** ATL Server webservice
Since you also mentioned the aspnet_wp.exe process, I think it is likely
that you're developing through the "ASP.NET webservice" project on a XP box
since aspnet_wp.exe is the worker process of ASP.NET application on windows
XP/IIS5.
As you mentioned, the IIS virtual directory's extension mapping (ASP.NET
version) has been set correctly and the correct version of aspnet_wp.exe is
launched, the problem should be related to some other configuration
setting. Currently, I'd suggest you perform the following test(let's focus
on vs 2005 ASP.NET C++ webservice first):
1.If possible, I suggest you create the C++ ASP.NET Webservice on a windows
2003/IIS6 machine and test to see whether you get the same results. You
should configure the ASP.NET webservice virtual directory to use a separate
application pool in IIS6.
2. For your current problem webservice on the IIS5 machine, instead of
visiting it through webbrowser, try creating a .net console application(c#
or vb.net) and create webservice proxy (add web reference) against the
webservice and call it to see whether it works? If this also fails, it
indicate that the problem is likely specific to the webservice deployment
rather than the debugging service.
3. On IIS5 machine, the ASP.NET application will always be hosted in
aspnet_wp.exe process, and if you have multiple ASP.NET applications, the
runtime will likely host them in the same aspnet_wp.exe process. And when
there has already an ASP.NET 1.1 application hosted in one aspnet_wp.exe
process, if an ASP.NET 2.0 application is loaded into the same process
later, the 2.0 application won't work because the runtime is the .net
framework 1.1 loaded originally. For this case, you can perform a
"iisreset" on your development box to ensure all IIS application processes
are cleared. And then, only start your ASP.NET C++ webservice (debug or
normal launch) to see whether it works.
4. In addition to "F5" debug, you can also try use the "Debug--->Attach to
Processes...." menu to explicitly attach to the aspnet_wp.exe process(which
host your C++ ASP.NET webservice) to see whether such debuggign works.
So far I have performed some local tests through creating ASP.NET C++
webservice on XP and 2003 server machine and the debugging can work on both
F5 or manual attach mode, and it can works well. I think we need to perform
some further research to identify the certain cofiguration or environment
setting that cause the problem.
If there is anything I missed or if you wonder any other information,
please feel free to let me know.
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx. ==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.