?
Solved

ASP.NET Web Service Debug problem "Please specify name of executable for debug session..."

Posted on 2007-08-07
8
Medium Priority
?
375 Views
Last Modified: 2013-11-26
I have created a project of type "ASP.NET Web Service" in Visual Studio 2005.  When I run it on my box, (i.e. click the green debug button), it launches Internet Explorer and shows the available web service functions, as expected.  However, when I move the solution file to another box and click debug, visual studio gives me a message along the lines of: "Please specify the name of the executable for this debug session."  Why is this?  Is it because Visual Studio was installed BEFORE IIS?  What else could it be?  I have tried reinstalling Visual Studio to see if it would bind correctly to IIS, etc. but no luck.  Also tried running "aspnet_regiis -i".  Thanks.
0
Comment
Question by:DiamonDogX
  • 5
  • 3
8 Comments
 
LVL 37

Accepted Solution

by:
samtran0331 earned 500 total points
ID: 19646771
0
 

Author Comment

by:DiamonDogX
ID: 19647978
Hmm... tried installing the remote debugger, restarted, still same behavior.  Any other suggestions?  Would be it worth removing the .NET framework and reinstallling it as well as Visual Studio 2005?
0
 

Author Comment

by:DiamonDogX
ID: 19648066
Btw, I am running Windows Server 2003
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 37

Expert Comment

by:samtran0331
ID: 19648910
there was a lot of setup in that first link I posted with ports and permissions...none of that worked eh?
I don't know that I'd go through that entire hassle of uninstall/re-install of .Net and VS2005....do you have another pc running VS to test with?
or possibly try getting a net admin with full network permissions to log on to your pc and see if anything changes?
0
 

Author Comment

by:DiamonDogX
ID: 19650127
That's really the biggest problem I have... this box has very restricted security settings (it has to), so I am in a battle right now.  Also, it is standalone (no internet connection).

I have made some progress though.  I am able to display the .asmx file in Internet Explorer and it lists my available web service calls!  I still can't run it from Visual Studio, but I can open Internet Explorer and go to the http://localhost/MyWebService/MyWebService.asmx page.  But does this mean the web service is up and running?  Regardless, in my test application, I am getting "The request failed with HTTP status 401: Unauthorized".  I guess it's a credentials thing... I DO have anonymous access enabled, as I followed the instructions here: http://geekswithblogs.net/ranganh/archive/2006/02/21/70212.aspx  but still no go..
0
 
LVL 37

Expert Comment

by:samtran0331
ID: 19653649
I think I mis-understood your question...so everything you're trying to do is on one pc?
0
 

Author Comment

by:DiamonDogX
ID: 19653672
Basically, yes.  It works on one PC but not another.  I am concentrating on getting it working on the one that it doesn't work on (btw it's a Windows Server 2003 box)
0
 

Author Comment

by:DiamonDogX
ID: 19657142
I think I am OK now.  I programatically assigned the credential cache and was able to invoke a web service method:

Service Service1 = new Service();
Service1.PreAuthenticate = true;
Service1.Credentials = System.Net.CredentialCache.DefaultCredentials;
0

Featured Post

Veeam and MySQL: How to Perform Backup & Recovery

MySQL and the MariaDB variant are among the most used databases in Linux environments, and many critical applications support their data on them. Watch this recorded webinar to find out how Veeam Backup & Replication allows you to get consistent backups of MySQL databases.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Suggested Courses
Course of the Month15 days, 8 hours left to enroll

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question