WCF / ASMX :: Service Host And Https Cannot Find Any Metadata?
Aug 18, 2010
I created a WCF Service Library and there're 2 services (http endpoint and https endpoint) in the App.cofig file. The WCF Service Host had not problem to host the http endpoint but failed to host the https endpoint with these messages:
WCF Service Host cannot find any metadata. Additional Info: The service cannot be started. This service has no endpoint defined. Please add at least one endpoint for the service in config file and try again.
What's wrong with the configuration?
Excerpt of App.config file:
...
<behaviors>
<serviceBehaviors>
<behavior name="WcfSecurityService.ServiceBehavior">
<serviceMetadata httpGetEnabled="true" httpGetUrl="mex" />
<serviceDebug includeExceptionDetailInFaults="true"/>
<serviceCredentials>
<userNameAuthentication
userNamePasswordValidationMode="Custom"
customUserNamePasswordValidatorType="WcfSecurityService.MyValidator, WcfSecurityService"/>
</serviceCredentials>
</behavior>
<behavior name="WcfSecurityService.SecuredServiceBehavior">
<serviceMetadata httpsGetEnabled="true" httpsGetUrl="securedmex" />
<serviceDebug includeExceptionDetailInFaults="true"/>
<serviceCredentials>
<userNameAuthentication
userNamePasswordValidationMode="Custom"
customUserNamePasswordValidatorType="WcfSecurityService.MyValidator, WcfSecurityService"/>
<serviceCertificate
findValue="CN=MyRSARootCA_LocalHost" storeLocation="LocalMachine" storeName="My"
x509FindType="FindBySubjectDistinguishedName" />
</serviceCredentials>
</behavior>
</serviceBehaviors>
</behaviors>
<bindings>
<wsHttpBinding>
<binding name="WcfSecurityService.TransportMsgBinding">
<!-- UsernameToken over Transport Security -->
<security mode="TransportWithMessageCredential">
<message clientCredentialType="UserName"/>
</security>
</binding>
<binding name="WcfSecurityService.UnsecuredBinding">
<security mode="None"></security>
</binding>
</wsHttpBinding>
</bindings>
<services>
<!--
<service name="WcfSecurityService.Service"
behaviorConfiguration="WcfSecurityService.ServiceBehavior">
<host>
<baseAddresses>-->
<!--<add baseAddress="http://localhost/WcfSecurityService/" />-->
<!-- SvcUtil.exe need Cassini Server (not IIS)-->
<!--<add baseAddress="http://localhost:8002/WcfSecurityService/" />
</baseAddresses>
</host>
<endpoint address=""
binding="wsHttpBinding"
contract="WcfSecurityService.IService"
bindingConfiguration="WcfSecurityService.UnsecuredBinding">
<identity>
<dns value="localhost"/>
</identity>
</endpoint>
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>
</service>-->
<service name="WcfSecurityService.SecuredService"
behaviorConfiguration="WcfSecurityService.SecuredServiceBehavior">
<host>
<baseAddresses>
<!--<add baseAddress="https://localhost/WcfSecurityService/" />-->
<!-- SvcUtil.exe need Cassini Server (not IIS)-->
<add baseAddress="https://localhost:8003/WcfSecurityService/" />
</baseAddresses>
</host>
<endpoint address="https://localhost:8003/WcfSecurityService/"
binding="wsHttpBinding"
contract="WcfSecurityService.IService"
bindingConfiguration="WcfSecurityService.TransportMsgBinding">
<identity>
<dns value="localhost"/>
</identity>
</endpoint>
<endpoint address="securedmex" binding="mexHttpsBinding" contract="IMetadataExchange"/>
</service>
</services>
...
SSL Certificate bindings:
-------------------------
IP:port : 0.0.0.0:8003
Certificate Hash : d321b6f1d2c4085f36ebbd51e72a3dc3e2332589
Application ID : {4dc3e181-e14b-4a21-b022-59fc669b0914}
Certificate Store Name : MY
Verify Client Certificate Revocation : Enabled
Verify Revocation Using Cached Client Certificate Only : Disabled
Usage Check : Enabled
Revocation Freshness Time : 0
URL Retrieval Timeout : 0
Ctl Identifier : (null)
Ctl Store Name : (null)
DS Mapper Usage : Disabled
Negotiate Client Certificate : Enabled
View 1 Replies
Similar Messages:
Mar 22, 2011
At random, we get the "Metadata publishing for this service is currently disabled." message. There is nothing I can do to make it go away, iisreset, deleting all websites, stopping all sites, etc. If I open any site, I get that same message. The only site that remains functional is Outlook Web Access, the other 20 ASP.NET just fail. Is there a way to trace where the message is coming from? I have no default binding in IIS (Removed the default site), and the site keeps responding with this message after stopping the sites that bind to the specific url. The frustrating is that there is nothing I can do to reproduce or solve the error, even the more drastic steps.
View 1 Replies
Nov 9, 2010
I have just noticed that a WCF service referenced as https in the web address is showing that the client is connecting on port 80
View 11 Replies
Oct 11, 2010
I am trying to deploy a wcf service. I have created a simple service, basically I have created a new wcf service and tried to deploy it however I get this error
The type 'WCF_Application.Service1', provided as the Service attribute value in the ServiceHost directive, or provided in the configuration element system.serviceModel/serviceHostingEnvironment/serviceActivations could not be found.
I am trying to deploy my service to a subdomain like
https://services.mydomain.com/business
My config looks like this
[Code]....
View 3 Replies
Dec 15, 2010
Is there any way i can create and host a WCF service, and my client apps just send username and passwords to the service to suthenticate them selves, without using Certificates, on client and Server side???
IF NOT:
Then is there any way i can do the above, but just using certificates on server side, i dont want all of my client apps' machines installing the certificate?
View 2 Replies
Jul 12, 2010
This my scenerio
1. I have created a web service
2. I need to host it in IIS locally for testing purpose.
3. Can we set port locally or automatically port '80' is assigned.
View 1 Replies
Feb 9, 2010
we have a situation where we need to host two certificates on the same server and because we can't have two different certificates on the same server running off the same port we have assigned one certificate run through another port, which is 4443.
So the URL to our web app is now....
[URL]
If I punch this into a web browser I can access it fine, however, if I create a web reference using this URL in Visual Studio (2005) it can create the web reference fine and it builds ok. But whenever I call a web method on this service instance I get a HTTP 404 page not found Exception.
Is there any properties I need to set on the web service object to get this to work? I'm confused as to why it's not working.
View 3 Replies
Oct 7, 2010
I have a WCF Service that loads a file located on a local web server. How can I load that file based off an Uri? So I don't have to hard code in the address? So instead of doing a XmlDocument.Load(http://mywebaddress/ConfigFile/config.xml); I could put in or find the current URL of webservice then add the parameter. Sort of like this:
XmlDocument.Load("~/ConfigFile/config.xml"); That way if I'm publishing or Debugging it's all one file in the same exact location.
View 2 Replies
Sep 21, 2010
I'm trying to consume a web service, after adding it to my project,I can't find any method inside,all classes.objects of those classes only contains set and get.Per-method Permissions.
View 2 Replies
Jul 30, 2010
I am creating a website with password-protected pages in it.
I have two type of customer: 1. Free 2. Paid
For paid customers, pages would be rendered over HTTPS whereas for free customer, pages will be rendered over HTTP. However, pages for both types of users would be same (while populating specific information for each user.)
note, the URL for the two users should be same except HTTP/HTTPS part.
I am new to HTTPS and want to know how to achieve this.
I am wondering how to implement it?
View 3 Replies
Aug 16, 2010
We've got some WCF services we're hosting via IIS. The application in general uses Forms Authentication, and we'd like to continue making that available for web service clients. We just have a <authorization><deny users="?"> in our web.config and some authentication/redirection goodness that gets everything done.
The problem is we'd like for users to be able to access the metadata for the services without authentication. Can they visit /services/v1/ArtifactService.svc?wsdl anonymously and yet still require authentication for /services/v1/ArtifactService.svc/rest/GetArtifacts?studyId=123? If so, I can't figure out the right incantation in the configuration.
The best I can think of is to set an absolute URL in the metadata service behavior, but then I have to doctor the path on install anywhere we deploy. (<serviceMetadata httpGetEnabled="true" httpGetUrl=[URL]
View 2 Replies
Aug 26, 2010
I wrote some webservices in my solution and it works fine when i consume it in my local machine... BUT when i deploy it in the public IP and using https. I'm not able to consume the webservices i got a "The provided URI scheme 'https' is invalid; expected 'http'. Parameter name: via" Error...
I tried to change my configuration in my web app from security mode="None" into security mode = "transport" and I got an error... (forgot to log the error)
Note* I'm using virtual IIS (this is where i test my project)
View 2 Replies
Feb 24, 2011
I have an existing project with a silverlight3 app. First I created SALESservice.svc.This is working fine. Now I added another TARGETservice.svc to my project and rebuilded my entire project but when I am trying to add the service reference in to the silverlight app I get the following error:
There was an error downloading metadata from the address.verify that you have entered a valid address. I didn't write any code in ISALESservice.svc AND ITARGETservice.svc . I have written in SALESservice.svc.cs AND TARGETservice.svc.cs files.Is this causing error? But for SALESservice.svc it is working. I didn't add any code in web.config file.
View 1 Replies
Mar 2, 2011
I've created Web Services in .Net 3.5 & Consumed those Web Services in a Client Web Application. Now i want to Host the WebService in IIS 5.1. I'm very new to .net, I'm using VS 2010, Wndows XP Service Pack 3, IIS 5.1;
View 15 Replies
Oct 2, 2010
im using wcf how can i make sure to my service file from client side.
my web service file (service.svc) should not acceable on client side....on https security(ssl)
View 6 Replies
Sep 3, 2010
I am very new to WCF, I have read a lot and seen several presentations about it. I can get the basicHttp endpoint to work on my server but when i wanted to use https, I found that that endpoint binding doesnt work. I think through my research that the wsHttp binding is what i need. I can get the client to work but the service gives me a few different errors when I try to call the ssl endpoint.
Currently i get the following error:
The requested service, 'https://devwcftestsite.crata.ucf.edu/services/Person.svc/Person' could not be activated. See the server's diagnostic trace logs for more information.
Below I have included the web.config for my service project which is hosted at:https://devwcftestsite.crata.ucf.edu/services the service is called:Person.svc
[Code]....
View 2 Replies
Jun 1, 2010
I have an asp.net web service which has SSL enabled via IIS. It works fine if the user uses https, however I have a user that insists on using http on the url.
What I'd like to do is have the web service (asmx) do the equivalent of the response.redirect to change http to https automatically.
I don't believe that I can do this from a web service so does anyone know a of a similar solution for web services.
View 4 Replies
Oct 6, 2010
Can we have a solution which has a webservice project alone and host it in IIS. Or do we always need a website attached to webservice, and the website is to added into IIS
View 2 Replies
Jul 20, 2010
We have a problem regarding webservices when it runs in https. it say's that the service is undefined. BUT when we try it in http it runs okay...
View 1 Replies
May 5, 2010
if i have the web application with many pages like add order page, edit order page, and delete order page actually they also interact with the Sql Server 2008 and i also create web service page call Sales_Service.asmx. i know just i need to put something like query into Web Method in Sales_Service.asmx but i have a lot of queries, i don't know which query i should put into it and how the web page call the Sales_Services.asmx
View 2 Replies
Nov 8, 2010
A customer reported that our asmx web service is continually increasing in memory (mem usage as well as private bytes). We are able to reproduce the problem in our lab with Windows 2003 Server SP2 (fully patched) on some of the machines. The customer is using Windows 2008.
We created a Hello World web service targeting the 2.0 framework built under VS2005 SP1 and a test client that continues to call it. The memory increases steadily - approximately 40K per client request. If the test app is paused, the memory remains the same. When it is closed, the memory drops. Explicit calling of GC.Collect does not drop the memory.
We have run the memory profiler on the service and the leak is all native memory. We have uninstalled/re-installed the Framework on one of the machines but no difference. To our knowledge all of the security and IIS settings are not modified. We have compared app pool, default web site and virtual directory properties to machines that have no problem and they are identical.
View 11 Replies
Mar 14, 2011
i get HTTP 404 not found error when trying to access WCF service hosted in MVC3. the same service accept calls if i host it in ASP.NET web site i posted question in WCF forum but didnt get any help: [URL]
View 2 Replies
Jan 9, 2010
I would like to extend the HtmlHelper by using metadata (similar to DataAnnotaions metadata). Specifically I want to be able to add a 'Title' attribute to html controls that will then appear as a tooltip on the control. I would like to keep the tooltip text with my model, for example by adding 'Tiltle' metadata to the model as follows:
[DisplayName("User Id")]
[Title("Enter your 10 digit user id")]
property UserId { get; set; }
So the questions are:
1. How do I add metadata (such as 'Title') to my model?
2. How do I access this metadata in my HtmlHelper extension method?
[code]....
View 4 Replies
Mar 17, 2011
I have a .net app developed in .net 4.0 version. And I implemented an asmx web service in this. Now I want to call one of the webservice method in another classis ASP application java script function.
View 2 Replies
Jan 11, 2011
I am tired of the flase advertise, Only recommand on free host servers that you are using, If you can please also post you site url,I need to host my facebook Ifame application, because I didn't succeed to work in development mode (E.g working against the localhost don't render FB tags)If you used cheap server also recommandion and link we be acceptable
View 3 Replies