MSDN > 論壇首頁 > Windows Communication Foundation > Where is .SVC file????
發問發問
 

已答覆Where is .SVC file????

  • 2009年7月4日 上午 06:56abhi0410 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     
    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..

解答

所有回覆

  • 2009年7月4日 下午 04:00Chris B. Snyder 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     已答覆
    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 2009年7月4日 下午 06:38
    • 已標示為解答abhi0410 2009年7月6日 上午 05:57
    •  
  • 2009年7月4日 下午 06:37Gaurav Arora 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     已答覆
    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.svc

    I refer you the same link as Chris provided: http://msdn.microsoft.com/en-us/library/ms733766.aspx
    • 已提議為解答Gaurav Arora 2009年7月4日 下午 06:38
    • 已標示為解答abhi0410 2009年7月6日 上午 05:57
    •  
  • 2009年7月6日 上午 05:57abhi0410 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     
    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