Hi All,
I created a basic WCF service. I published the service in IIS. when I try to run the service ,it displays the below.. Please help me on this..
Hi All,
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
suman pPosted Sep 11, 2014, 2:37 AM
No every thing is correct. I think the problem with MIME types.
My TargetFrameWork :4.5.1 ..
Piyush PansuriyaPosted Sep 11, 2014, 2:29 AM
I think this error occurs due to mismatch of Service name in .SVC file. Probably you might have changed the name of the service class that is implementing the interface.The Solution is to open .SVC file and exactly match the Service attribute and CodeBehind Attribute. So your .SVC file should be like
suman pPosted Sep 10, 2014, 11:25 AM
I am using version 4.5. Can you help on this.
Piyush PansuriyaPosted Sep 10, 2014, 9:20 AM
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727>aspnet_regiis.exe -i
Start installing ASP.NET (2.0.50727).
..........
Finished installing ASP.NET (2.0.50727).
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727>aspnet_regiis -ga ASPNET
Note:
1) change asp.net version as per installed
2) Check MIME type in IIS .svc is there or not? if not than add MIME type .svc
After this try once again