Where is .SVC file????
- Hi
I am not able to find the file with extension .SVC in my visual Studio...
Can somebody help me how to get the file in visual studio 2008 Professional Edition with .Net framework 3.5
Help me soon..
解答
- Abhi0410,
I assume you're trying to create a WCF service hosted in IIS. There isn't a file template for this file in VS (at least I've never seen one). You have to create it manually.
You can find step-by-step instructions here: http://msdn.microsoft.com/en-us/library/ms733766.aspx
You might also try googling "servicehost" to see some of the other things you can do with the svc file.
Chris
Chris Snyder, Stumbling through code one day at a time If your question was answered, please mark it.- 已提議為解答Gaurav Arora Saturday, 4 July, 2009 18:38
- 已標示為解答abhi0410 Monday, 6 July, 2009 5:57
- Hi abhi0410,I agree with Chris, when anyone is trying to create a WCF service on IIS then '.svc' file is come to contact.You have to manually add an '.svc' file in the application director.After completion of code you can check the same as :
http://localhost/IISHostedCalc/Service.svcI refer you the same link as Chris provided: http://msdn.microsoft.com/en-us/library/ms733766.aspxand one more : http://www.codeproject.com/KB/WCF/first_WCF_Service.aspx- 已提議為解答Gaurav Arora Saturday, 4 July, 2009 18:38
- 已標示為解答abhi0410 Monday, 6 July, 2009 5:57
所有回覆
- Abhi0410,
I assume you're trying to create a WCF service hosted in IIS. There isn't a file template for this file in VS (at least I've never seen one). You have to create it manually.
You can find step-by-step instructions here: http://msdn.microsoft.com/en-us/library/ms733766.aspx
You might also try googling "servicehost" to see some of the other things you can do with the svc file.
Chris
Chris Snyder, Stumbling through code one day at a time If your question was answered, please mark it.- 已提議為解答Gaurav Arora Saturday, 4 July, 2009 18:38
- 已標示為解答abhi0410 Monday, 6 July, 2009 5:57
- Hi abhi0410,I agree with Chris, when anyone is trying to create a WCF service on IIS then '.svc' file is come to contact.You have to manually add an '.svc' file in the application director.After completion of code you can check the same as :
http://localhost/IISHostedCalc/Service.svcI refer you the same link as Chris provided: http://msdn.microsoft.com/en-us/library/ms733766.aspxand one more : http://www.codeproject.com/KB/WCF/first_WCF_Service.aspx- 已提議為解答Gaurav Arora Saturday, 4 July, 2009 18:38
- 已標示為解答abhi0410 Monday, 6 July, 2009 5:57
- Hi Chris and Gaurav,
Thanks...I could get the .svc file once i did the Add New items in Project.
Initially i was not getting that...but once i restarted my VS 2008 then i could see that...
Thanks for the link....
Abhi

