简体   繁体   中英

Hosting WCF service in IIS

I am trying to host the service in IIS but I get Page Not found error. Here is what I did to host in IIS

  1. Created a WCF Service application (BillingService)
  2. I have two classes called IBillSrv.cs (as Base) and BillSrvc.cs
  3. Added a new WCFService website (BillSrvcSite) to the solution and added a reference to the above mentioned (BillingService).
  4. In IIS created a new Virtual site and mapped it to BillSrvSite
  5. Opened the Web.Config and changed the endpoint contract to IBillSrv

When I run it works fine in the WCF test client. but when i paste the below url in IE I get page not found. http://localhost/BillingService/BillSrvc/

I am using C# 2008 Can someone please advise what is missing or where I am going wrong?

This has nothing to do with persistence. An interface member like ParseTestQues can only be implicitly implemented by a public method. Simply make ParseTestQues be public.


Isn't your service endpoint named something like "BillSrvc.svc"? Try typing http://localhost/BillingService/BillSrvc/BillSrvc.svc into the browser and see what happens.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM