I have a wcf webservice which is up and running. I have also visual studio 2012. I try to follow these tutorial to consume the wcf webservice in a console application:
http://www.csharptutorial.in/2012/01/cnet-how-to-consume-wcf-web-service-in.html#.UxxME_6x6JA
One of the first step is to running this SvcUtil.exe commando:
C:\WcfFiles>"C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bin\SvcUtil.exe" http
s://service.mycompany.nl/PortalService.svc?wsdl
I got this error:
Microsoft (R) Service Model Metadata Tool
[Microsoft (R) Windows (R) Communication Foundation, Version 3.0.4506.648]
Copyright (c) Microsoft Corporation. All rights reserved.
Attempting to download metadata from 'https://service.mycompany.nl/PortalServic
e.svc?wsdl' using WS-Metadata Exchange or DISCO.
Microsoft (R) Service Model Metadata Tool
[Microsoft (R) Windows (R) Communication Foundation, Version 3.0.4506.648]
Copyright (c) Microsoft Corporation. All rights reserved.
Error: Cannot obtain Metadata from https://service.mycompany.nl/PortalService.s
vc?wsdl
If this is a Windows (R) Communication Foundation service to which you have acce
ss, please check that you have enabled metadata publishing at the specified addr
ess. For help enabling metadata publishing, please refer to the MSDN documentat
ion at http://go.microsoft.com/fwlink/?LinkId=65455.
WS-Metadata Exchange Error
URI: https://service.mycompany.nl/PortalService.svc?wsdl
Metadata contains a reference that cannot be resolved: 'https://service.mycompany.nl/PortalService.svc?wsdl'.
The HTTP request is unauthorized with client authentication scheme 'Anonymou
s'. The authentication header received from the server was 'Basic realm="service
.mycompany.nl"'.
The remote server returned an error: (401) Unauthorized.
HTTP GET Error
URI: https://service.mycompany.nl/PortalService.svc?wsdl
The document was understood, but it could not be processed.
- The WSDL document contains links that could not be resolved.
- There was an error downloading 'https://sehapp01.dmz.rubicongroup.local/SEHP
ortalService.svc?wsdl=wsdl0'.
- The underlying connection was closed: Could not establish trust relationship
for the SSL/TLS secure channel.
- The remote certificate is invalid according to the validation procedure.
If you would like more help, type "svcutil /?"
C:\WcfFiles>
Try the WcfTextClient to consume the Wcf.
Is in the following path:
C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE
And there you wil lfind the WcfTestClient.
Open it, run your Wcf and then start the service in the WcftextClient, there you will be able to consume and call the methods ;)
Related
We are currently working on a BizTalk server migration project (from 2013R2 to 2016) and in the process need to install Azure Storage Adapter (publisher BizTalkFactory Codeplex Team) so as to fetch files from Azure blob storage into BizTalk.
This is working fine with 2013R2 version however after installing the same msi on BizTalk Server 2016 Enterprise version we are not able to see azureStorageBinding under WCF-Custom adapter bindings.
Also I tried using WCF-WebHttp adapter with azureStorageBehaviour however when I apply changes it says "Error saving properties. (System.Configuration.ConfigurationErrorsException) Configuration binding extension 'system.serviceModel/bindings/azureStorageBinding' could not be found. Verify that this binding extension is properly registered in system.serviceModel/extensions/bindingExtensions and that it is spelled correctly"
I verified the machine.config file too and azureStorageBinding is present.
Note - When I install the same msi with BizTalk Server 2016 Developer version, it works fine.
Please let me know if I'm missing something here or any probable causes for this issue.
Thanks!
I'm trying to install Microsoft SQL Server 2017 Developer edition, cannot find one or more components, please reinstall the application is the first message and then I reinstalled the application and the error message in installation tool is Missing or unspecified settings that were configured to default values: Service SID support has been enabled on the service. Service SID support has been enabled on the service. Please help me with installing Microsoft SQL Server
Worklight Developer Edition Studio 5.0.5.1 (5.0.5.20130115-0926)
Worklight Consumer Edition Version 5.0.5.1
First question
Are application developed with WL Developer Edition compatible with WL Consumer Edition Server.
Second Question:
I am using the Module 21 Formbased authentication and modified the realm in the authentication handler and added the customer security test that references the LTPA realm to the authentication config xml (file in installedApp folder).
I am getting no method to handleFailure when we access the method that requires security in the application.
03-01 18:53:32.870: E/Web Console(870): Uncaught TypeError: Object # has no method 'handleFailure' at file:///data/data/com.FormBasedAuthentication/files/www/default/wlclient/js/worklight.js:1482
Yes, applications developed with Developer Edition are compatible with Consumer Edition.
I have a remote server (Win2008R2) with WebDeploy 3.0 installed on it. Web Management Service isn't installed on it (actually I tried to install it but it cannot be contacted due to closed ports on my side).
I'm trying to deploy a package (zip) to the server via local WebDeploy 3.0 tool.
Server.deploy.cmd /T /M:myserver.no-ip.org "/U:myserver\Administrator" "/P:pwd" /A:Basic
I tried both Basic and NTLM auth methods.
I'm getting error:
Error Code: ERROR_USER_NOT_ADMIN
More Information: Connected to 'myserver.no-ip.org' using the Web Deployment Agent Service, but could not authorize. Make sure you are an administrator on 'myserver.no-ip.org'. Learn more at: http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_USER_NOT_ADMIN.
Error: The remote server returned an error: (401) Unauthorized.
Error count: 1.
Please note that I'm actually connectin to WebDeploy Agent Service not Web Management Service. That's important as there are tons of info how to setup WMSrc with WebDeploy.
I know that WebDeploy Agent only supports connecting as Administrator. That is my case - I'm specifying the remote server Administrator credentials.
I tried to open WDAgentSrc url in the browser. I was promted for creditials and they were accepted.
I checked "Microsoft Web Deploy" log in the Event viewer - it's empty.
How to get it working?
We have setup a .net application developed with .net framework 4.0 using MVC framework and WCF service on a Windows 2003, 32-bit server containing IIS 6 successfully.
However, when the same application is set up on a Win 2008 R2, 64-bit server, we get the following error when the application is accessing the WCF service:
No component for supporting the service was found
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: Castle.MicroKernel.ComponentNotFoundException: No component for supporting the service was found
We have set the flag for Enable 32-bit apps in "Application Pool" to true on the 64-bit server.
I don't think that this is related to WCF itself. ComponentNotFound is thrown by Windsor Castle IoC container and it means that something is wrong with its configuration. So when IoC tries to resolve the type of service it doesn't find related configuration.