Click here to Skip to main content
15,886,059 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have a Windows Forms project that was made in Visual Studio 2012 and targets the .Net Framework 4.5. This program calls a Web Service which was also made in Visual Studio 2012 but targets the .Net Framework 3.5 so that it can be a ASP.Net Web Service with the .asmx extension and not the newer WCF Service.

Both projects compile and work but I'm getting unexpected results and wanted to debug my web service, but am unable to. Visual Studio gives me this error:

Unable to automatically step into the server. Unable to determine a stopping location. Verify symbols are loaded. Symbol not found: <...other stuff...>

Is there anyway that I can keep my Windows Forms project at .Net Framework 4.5 and my Web Service at 3.5 and still debug into it? I don't want to have to completely rewrite my ASP.Net Web Service into a WCF Service.
Posted

1 solution

After trying a bunch of suggestions I found via google I realized that I had made a bad assumption. Even though the ASP.NET Web Service is not an available project type when creating at .Net 4.5 project, you can create one. Basically you create one as a .Net 3.5 project and then change it to target the 4.5 framework. Or you can create a basic web site and just delete the .aspx pages and manually add .asmx pages. So. Basically I upgraded my web service to .Net Framework 4.5 and am now able to debug.

Note: I had a .Net 4.0 PC project created in VS 2010 that consumed a .Net 3.5 Web Service and was able to debug into it just fine. I was unable to get VS 2012 to do so. So that seems pretty shady. And was why I was so certain there was a way to debug across the .Net frameworks.

Anyway, this is the google result that helped me:
http://stackoverflow.com/questions/4345498/asp-net-web-service-application-missing-in-visual-studio-2010[^]

Hope this helps if any one else has the same isssue.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900