Ask a questionAsk a question
 

AnswerWhere is .SVC file????

  • Saturday, July 04, 2009 6:56 AMabhi0410 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    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..

Answers

All Replies

  • Saturday, July 04, 2009 4:00 PMChris B. Snyder Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    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.
    • Proposed As Answer byGaurav Arora Saturday, July 04, 2009 6:38 PM
    • Marked As Answer byabhi0410 Monday, July 06, 2009 5:57 AM
    •  
  • Saturday, July 04, 2009 6:37 PMGaurav Arora Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    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
    • Proposed As Answer byGaurav Arora Saturday, July 04, 2009 6:38 PM
    • Marked As Answer byabhi0410 Monday, July 06, 2009 5:57 AM
    •  
  • Monday, July 06, 2009 5:57 AMabhi0410 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    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