In VS08, On F5, sometimes the WCF service loaded correctly, sometimes I get a list of files

Sorry, but I'm not sure what is causing the problem and the problem is not happening right now. I will describe from memory.

So, I started building WCF Service Applications. Sometimes when I press F5 to run the project, I get the correct screen, a screen that says:

Service1

You have created a Service.

To test this service, you will need to create a client and use it to call the service. You can do this using the svcutil.exe tool from the command line with the following syntax:

      

etc. etc. But after I did a little editing, sometimes I run the project again and the browser, instead of loading the above screen, will show me the directory containing the files.

What's happening? How can I fix (?) The problem and prevent it from recurring?

0


a source to share


2 answers


Try right clicking on the .svc file and "Set as Start Page".



+1


a source


Are you using a Microsoft keyboard?

I have the same problem from time to time, and finally I realized that I sometimes press the F Lock key above the Backspace key. This switches the F5 key to the Open command.

They scared me until I understood.



Take a picture and see if you don't.

jeffa

0


a source







All Articles