WCF Published Orch - Could not find a base address that matches scheme http for the endpoint with binding MetadataExchangeHttpBinding
I have an orchestration published as a web service. It was working fine on our test environment, we deployed to production, and now getting this error. The website wouldn't go in the BizTalk MSI, so we copied the files. We reset the Authentication
to match the test system (we are using Basic Auth).
When we try to browse the webservice in the browser, it prompt for userid/password, we enter it, then it gives the following error.
I'm not even sure what it means by "base address", if URL was https://prod.mydomain.com/myapp/myservice.svc, would https://prod.mydomain.com be the based address? In the test environment, the URL is https://test.mydomain.com/myapp/myservice.svc.
In both environments, we have a customer calling this webservice.
Also, I don't know what it means "scheme http". We are using https:... on the URL.
I'm thinking this is either security related, something to do with the app pool being different, or maybe something to do with bindings.
Thanks,
Neal Walter
http://MyLifeIsMyMessage.net
Web.config:
<services>
<!-- Note: the service name must match the configuration name for the service implementation. -->
<service name="Microsoft.BizTalk.Adapter.Wcf.Runtime.BizTalkServiceInstance" behaviorConfiguration="ServiceBehaviorConfiguration">
<endpoint name="HttpMexEndpoint" address="mex" binding="mexHttpBinding" bindingConfiguration="" contract="IMetadataExchange" />
<!--<endpoint name="HttpsMexEndpoint" address="mex" binding="mexHttpsBinding" bindingConfiguration="" contract="IMetadataExchange" />-->
</service>
</services>
</system.serviceModel>
<system.webServer>
<security>
<authorization>
<remove users="*" roles="" verbs="" />
<add accessType="Allow" users="myCustomer" />
</authorization>
</security>
</system.webServer>
Server Error in '/eSecuritelIn' Application.
Could not find a base address that matches scheme http for the endpoint with binding MetadataExchangeHttpBinding. Registered
base address schemes are [https].
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: System.InvalidOperationException: Could not find a base address that matches scheme http for the endpoint with binding MetadataExchangeHttpBinding. Registered base address schemes are [https].
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using
the exception stack trace below.
Stack Trace:
[InvalidOperationException: Could not find a base address that matches scheme http for the endpoint with binding MetadataExchangeHttpBinding. Registered base address schemes
are [https].]
System.ServiceModel.ServiceHostBase.MakeAbsoluteUri(Uri relativeOrAbsoluteUri, Binding binding, UriSchemeKeyedCollection baseAddresses) +16582113
System.ServiceModel.Description.ConfigLoader.LoadServiceDescription(ServiceHostBase host, ServiceDescription description, ServiceElement serviceElement, Action`1
addBaseAddress) +1082
System.ServiceModel.ServiceHostBase.ApplyConfiguration() +156
System.ServiceModel.ServiceHostBase.InitializeDescription(UriSchemeKeyedCollection baseAddresses) +215
System.ServiceModel.ServiceHost..ctor(Object singletonInstance, Uri[] baseAddresses) +400
Microsoft.BizTalk.Adapter.Wcf.Runtime.WebServiceHost`3..ctor(IsolatedReceiverType isolatedReceiver, BizTalkServiceInstance serviceInstance, Uri[] baseAddresses)
+36
Microsoft.BizTalk.Adapter.Wcf.Runtime.WebServiceHostFactory`3.CreateServiceHost(String constructorString, Uri[] baseAddresses) +533
System.ServiceModel.HostingManager.CreateService(String normalizedVirtualPath) +1413
System.ServiceModel.HostingManager.ActivateService(String normalizedVirtualPath) +50
System.ServiceModel.HostingManager.EnsureServiceAvailable(String normalizedVirtualPath) +1172
[ServiceActivationException: The service '/eSecuritelIn/eSecuritelIn_OrchPublished_RepairEquipmentService.svc' cannot be activated due to an exception during compilation.
The exception message is: Could not find a base address that matches scheme http for the endpoint with binding MetadataExchangeHttpBinding. Registered base address schemes are [https]..]
System.Runtime.AsyncResult.End(IAsyncResult result) +901424
System.ServiceModel.Activation.HostedHttpRequestAsyncResult.End(IAsyncResult result) +178702
System.Web.AsyncEventExecutionStep.OnAsyncEventCompletion(IAsyncResult ar) +107
Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET
Version:4.0.30319.272
When you want to migrate Web Applications from one environment to other there are multiple ways to achieve it.
1) Migrate in MSI- Export MSI and select the option for your Web Application, however I don't recommend this option
2) Is to browse the folder for Web Application(Right click on web app and browse). Copy this folder(normally within inetpub folder) and take it to the inetpub folder of other environment. Later from the IISManager create application.
Are you not using the same Binding file?
Check you web.config file and see if the endpoint is configured for mexHTTpBinding.
Old: binding="mexHttpBinding"
New: binding="mexHttpsBinding"
web.config snippet:
<services>
<service behaviorConfiguration="ServiceBehavior" name="LIMS.UI.Web.WCFServices.Accessioning.QuickDataEntryService">
<endpoint behaviorConfiguration="AspNetAjaxBehavior" binding="webHttpBinding" bindingConfiguration="webBinding"
contract="LIMS.UI.Web.WCFServices.Accessioning.QuickDataEntryService" />
<endpoint address="mex" binding="mexHttpsBinding" contract="IMetadataExchange" />
</service>
Also look into the below article- How to fix: "Could not find a base
address that matches scheme http for the endpoint with binding WebHttpBinding" Errors
Moving to https = Could not find a base address that matches scheme
Thanks,
Prashant
Please mark this post accordingly if it answers your query or is helpful.
Similar Messages
-
Getting a "Could not find a base address that matches scheme net.tcp"
I've written several WCF services which use HTTP (and its variants). Now I'm trying to learn how to write a WCF service which will use TCP. I'm using Andrew Troelsen's book, "Pro C# 2008 and the .NET 3.5 Platform" as a guide (chapter 25). I've asked questions related to this before on a much more complicated WCF service, so I decided to write a simple WCF service to learn how to do it, rather than work on my more complicated WCF service. Coincidentally I chose the same routine as Troelsen did in his book, although in my case I called the WCF service SimpleAdd.
Anyway, after writing the WCF service, I then wrote the Windows Service to host it. I then installed it, and the installation went fine. When I tried to run the service, the service started but then immediately stopped. I checked the event log and found the following message in it:
"Service cannot be started. System.InvalidOperationException: Could not find a base address that matches scheme net.tcp for the endpoint with binding MetadataExchangeTcpBinding. Registered base address schemes are [http]."
Here's the interface code for my SimpleAdd:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
namespace SimpleAdd
// NOTE: If you change the interface name "IService" here, you must also update the reference to "IService" in App.config.
[ServiceContract]
public interface IService
[OperationContract]
int Add(int FirstNumber, int SecondNumber);
Here's the code for the implementation (I'm leaving out the using statements):
namespace SimpleAdd
// NOTE: If you change the class name "Service" here, you must also update the reference to "Service" in App.config.
public class Service : IService
#region IService Members
int IService.Add(int FirstNumber, int SecondNumber)
return (FirstNumber + SecondNumber);
#endregion
And here's the App.Config file for the service:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.web>
<compilation debug="true" />
</system.web>
<!-- When deploying the service library project, the content of the config file must be added to the host's
app.config file. System.Configuration does not support config files for libraries. -->
<system.serviceModel>
<services>
<service behaviorConfiguration="SimpleAdd.ServiceBehavior" name="SimpleAdd.Service">
<clear />
<endpoint binding="wsHttpBinding" contract="SimpleAdd.IService"
listenUriMode="Explicit">
<identity>
<dns value="localhost" />
<certificateReference storeName="My" storeLocation="LocalMachine"
x509FindType="FindBySubjectDistinguishedName" />
</identity>
</endpoint>
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"
listenUriMode="Explicit">
<identity>
<!--
<certificateReference storeName="My" storeLocation="LocalMachine"
x509FindType="FindBySubjectDistinguishedName" />
-->
</identity>
</endpoint>
<endpoint address="net.tcp://localhost/SimpleAdd/" binding="netTcpBinding"
bindingConfiguration="" contract="SimpleAdd.IService" />
<host>
<baseAddresses>
<add baseAddress="http://localhost:8731/Design_Time_Addresses/SimpleAdd/Service/" />
</baseAddresses>
</host>
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="SimpleAdd.ServiceBehavior">
<serviceMetadata httpGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="false" />
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>
</configuration>
I don't think it will matter much, because I believe the problem probably lies in the App.config file for the Windows service, but just in case, here's the code for the AddWinService (without the using statements):
namespace WindowsAddService
public partial class AddWinService : ServiceBase
//A member variable of type ServiceHost. (I'm using the "Pro C# 2008" book as reference for this.)
private ServiceHost myHost;
public AddWinService()
InitializeComponent();
protected override void OnStart(string[] args)
//just to be really safe
if (myHost != null)
myHost.Close();
myHost = null;
//create the host
myHost = new ServiceHost(typeof(SimpleAdd.Service)); //I've included the class from SimpleAdd, which isn't in the book!!!
//open the host
myHost.Open();
protected override void OnStop()
//shut down the host
if (myHost != null)
myHost.Close();
And lastly, here is the App.Config file from my AddWinService:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.serviceModel>
<client>
<endpoint address="net.tcp://localhost/SimpleAdd"
binding="netTcpBinding"
contract="SimpleAdd.IService"
name="netTcpBinding_IService" />
</client>
<services>
<service name="SimpleAdd.Service"
behaviorConfiguration="SimpleAddMEXBehavior">
<!-- Enable the MEX endpoint -->
<endpoint address="mex"
binding="mexTcpBinding"
contract="IMetadataExchange" />
<host>
<!-- Need to add this so MEX knows the address of our service. -->
<baseAddresses>
<add baseAddress="http://localhost:8731/Design_Time_Addresses/SimpleAdd/Service/" />
</baseAddresses>
</host>
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="SimpleAddMEXBehavior">
<serviceMetadata httpGetEnabled="true" />
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>
</configuration>
So, where have I gone wrong?
RodHello Richard,
Well, I've tried making the change to the MEX point for net.tcp, but now when I try to start the service I get the following error in the event log:
Service cannot be started. System.InvalidOperationException: Service 'SimpleAdd.Service' has zero application (non-infrastructure) endpoints. This might be because no configuration file was found for your application, or because no service element matching the service name could be found in the configuration file, or because no endpoints were defined in the service element.
I am sure the problem lies with what I've put into the app.config file. My app.config file now looks like this:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.serviceModel>
<client>
<endpoint address=""
binding="netTcpBinding"
contract="SimpleAdd.IService"
name="netTcpBinding_IService" />
</client>
<services>
<service name="SimpleAdd.Service"
behaviorConfiguration="SimpleAddMEXBehavior">
<!-- Enable the MEX endpoint -->
<endpoint address="mex"
binding="mexTcpBinding"
contract="IMetadataExchange" />
<host>
<!-- Need to add this so MEX knows the address of our service. -->
<baseAddresses>
<add baseAddress="net.tcp://localhost/SimpleAdd" />
</baseAddresses>
</host>
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="SimpleAddMEXBehavior">
<serviceMetadata httpGetEnabled="false" />
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>
</configuration>
I've also tried using this for the <client> tag under <system.serviceModel>:
<client>
<endpoint address="net.tcp://localhost/SimpleAdd"
binding="netTcpBinding"
contract="SimpleAdd.IService"
name="netTcpBinding_IService" />
</client>
But that gives me the same error in the event log.
So, what have I done wrong now?
Rod -
Hi all , I have an exchange 2010 SP 2 environment with 2 sites , the remote site FL free busy has NEVER worked and I get this error on the remote site , is this related ?
thanks
Log Name: Application
Source: System.ServiceModel 3.0.0.0
Date: :
Event ID: 3
Task Category: WebHost
Level: Error
Keywords: Classic
User: SYSTEM
Computer: FL-CAS1.WOMBAT.LOCAL
free bust works from WITHIN the remote (FL ) site , but NEVER to the main (WASH) site , it has Never worked ,I am thing that this error is related
thanks I have no idea how to fix
Description:
WebHost failed to process a request.
Sender Information: System.ServiceModel.ServiceHostingEnvironment+HostingManager/17256489
Exception: System.ServiceModel.ServiceActivationException:
The service '/EWS/exchange.asmx' cannot be activated due to an exception during compilation. The exception message is: Could not find a base address that matches scheme http for the endpoint with binding CustomBinding. Registered base address schemes
are [https].. ---> System.InvalidOperationException:
Could not find a base address that matches scheme http for the endpoint with binding
++++Hi
This issue could be with corruption in Autodiscover and web services virtual directory
Replace Web.config file for Autodiscover and web services virtual directory from the other working site
Delete and Recreate Autodiscover and web services virtual directory
Do this only on the affected site
Remember to mark as helpful if you find my contribution useful or as an answer if it does answer your question.That will encourage me - and others - to take time out to help you Check out my latest blog posts on http://exchangequery.com Thanks Sathish
(MVP) -
Error Message when i try to restore my iPhone: The iPhone "iPhone" could not be restored. This device isn't eligible for the requested build. HELP PLEASE!!!!
My Ipad and Iphone 3gs is both have issues too! I'm ready to give up! lol HELP ANYONE......
-
I tried to restore my iphone 4S and I got a message that said, "this iphone could not be restored. This device isn't eligilbe for the requested build." What should I do?
See this discussion...
https://discussions.apple.com/message/18801075#18801075
From More Like This section on the right. -
the iPhone "iPhone" could not be restored. This device isn't eligible for the build request?
what do I do!!!!!!!!!!!!!!!!????????????????????follow this http://support.apple.com/kb/TS4451?viewlocale=en_US
-
It says, 'The iPad "My iPad" could not be updated. This device isn't eligible for the requested build." I don't get an error number. It's an iPad 2.
Have you tried following the troubleshooting for that error message on this page : http://support.apple.com/kb/TS3694 ?
-
I followed all directions to restore my ipod (because I forgot password) but get a warning from Itunes that says "ipod could not be restored because this device isn't eligible for the requested rebuild. What do I do to unlock my ipod touch 4 g
iOS: Restore error 3194 or 'This device isn't eligible for the requested build'
-
When degrading to iOS5 to older it shows the following error "The iPad "iPad" could not be restored. This device isn't eligible for the requested build",i have tried with red snow after that it was the same.Can any one help me in this.
Downgrading the iOS is not supported. Also if you have iOS 5 beta then I assume that you are a registered developer, in which case you should be posting in the confidential developer forums : https://devforums.apple.com/index.jspa
-
I can't restore my iPhone 4S the iPhone " " could not be restored. This device isn't eligible for the requested build. What I have to do?
You can also take a look at this information from this support document: http://support.apple.com/kb/TS3694
This device is not eligible for the requested build (Also sometimes displayed as an "error 3194")
Update to the latest version of iTunes.
Third-party security software or router security settings can also cause this issue. To resolve this, follow Troubleshooting security software issues.
Downgrading to a previous version of iOS is not supported. If you have installed software to perform unauthorized modifications to your iOS device, that software may have redirected connections to the update server (gs.apple.com) within the Hosts file. Uninstall the unauthorized modification software from the computer.
Edit out the "gs.apple.com" redirect from your hosts file, and then restart the computer for the host file changes to take affect. For steps to edit the Hosts file and allow iTunes to communicate with the update server, see iTunes: Troubleshooting iTunes Store on your computer, iPhone, iPad, or iPod—follow steps under the heading Blocked by configuration (Mac OS X / Windows) > Rebuild network information > The hosts file may also be blocking the iTunes Store. If you do not uninstall the unauthorized modification software prior to editing the hosts file, that software may automatically modify the hosts file again on restart.
Avoid using an older or modified .ipsw file. Try moving the current .ipsw file (see Advanced Steps > Rename, move, or delete the iOS software file (.ipsw) below for file locations), or try restoring in a new user to ensure that iTunes downloads a new .ipsw. -
HT3275 could not find previous back ups that where there before only giving me one date
I can not see my previous back ups that I have been doing for the past year. The last time I went to back up it said i had no space left but knew that I had. All other back ups had gone except for one. I have a lot of images from my desktop over the past few months that I cnt find now.
Hope I'm making sense.I ran into the same problem -- I had this error :
Red "i" message: "The backup volume is read only."
I rebooted my system, then reset my Time Machine backup disk (to the same disk I've been using for the last year).
Now all my history is gone -- TimeMachine is starting from scratch. Please help !!! - I need to figure out how to get access to all my old daily backups back. -
Plss help
This device is not eligible for the requested build (Also sometimes displayed as an "error 3194")
Update to the latest version of iTunes. Mac OS X 10.5.8 (Leopard) users may need to download iTunes 10.6.3.
Third-party security software or router security settings can also cause this issue. To resolve this, followTroubleshooting security software issues.
Downgrading to a previous version of iOS is not supported. If you have installed software to performunauthorized modifications to your iOS device, that software may have redirected connections to the update server (gs.apple.com) within the Hosts file. Uninstall the unauthorized modification software from the computer.
Edit out the "gs.apple.com" redirect from your hosts file, and then restart the computer for the host file changes to take affect. For steps to edit the Hosts file and allow iTunes to communicate with the update server, see iTunes: Troubleshooting iTunes Store on your computer, iPhone, iPad, or iPod—follow steps under the heading Blocked by configuration (Mac OS X / Windows) > Rebuild network information > The hosts file may also be blocking the iTunes Store. If you do not uninstall the unauthorized modification software prior to editing the hosts file, that software may automatically modify the hosts file again on restart.
Avoid using an older or modified .ipsw file. Try moving the current .ipsw file (see Advanced Steps > Rename, move, or delete the iOS software file (.ipsw) below for file locations), or try restoring in a new user to ensure that iTunes downloads a new .ipsw. -
How to exit from safe mode and restore FW?
I've just fixed it after having the problem myself - you'll need to manually edit a host file, see here:
http://osxdaily.com/2011/11/03/fix-this-device-isnt-eligible-for-the-requested-b uild-error-in-itunes-when-updating-ios/
Go down to 'Advanced: Manually Editing Hosts' (I know it says advanced but it's really quite easy), and works on both Mac and Windows. Basically close iTunes, find the file in the link, add a hashtag on the correct line, save and exit, the restart iTunes and you should be fine.
Let me know if it works -
Arch 0.8 CD - "Could not find kernel image: linux"
I only get
Unknown keyword in config file.
Unknown keyword in config file.
Could not find kernel image: linux
when I try to boot the arch 0.8 base installer.
I checked md5 of the iso I downloaded and it seems to be correct:
1e0e9f3715d3c51129395570e01b9bc2 Archlinux-i686-0.8-Voodoo.base.iso
What can be done?
Last edited by Galdona (2007-04-13 18:34:53)I wonder if the CD is defective or if it was burnt at a high speed that your CD cannot read.
In other words, may be you are reading from a coaster.
R -
PT-BR
Olá Pessoal , estou tentando criar um aplicativo hospedado em um servidor de domínio próprio (provider-hosted) . Ao rodar o aplicativo localmente pelo visual studio eu consigo obter {StandardTokens} e todos os seus parâmetros: "AppContext",
"AppContextToken", "AccessToken", "SPAppToken" .
Ao publicar o Aplicativo no sharepoint online 365 e instalar o app em meu site e executar o app. Os parâmetros não passados via query string e nem por resquest form.
Em minha query string vem apenas os parâmetros: SPHostUrl,
SPHostTitle,SPLanguage,SPClientTag,
SPProductNumber,SenderId
Alguém poderia me ajudar com este problema?
English
Hello Guys, I'm trying to create an application hosted on your own domain server (provider-hosted). When running
the application locally by visual studio I can get StandardTokens} and all of its parameters, "AppContext", "AppContextToken", "AccessToken", "SPAppToken".
By posting application in sharepoint online 365 and install the app on my site and run the app. Non parameters
passed via the query string and not for resquest form.
In my query string comes only parameters: SPHostUrl, SPHostTitle, SPLanguage, SPClientTag, SPProductNumber,
SenderId
Could anyone help me with this problem?
.Cs
string contextTokenString = TokenHelper.GetContextTokenFromRequest(Request);check the links, see if they can help
https://social.msdn.microsoft.com/Forums/en-US/39488844-8568-48c2-8d09-a8eb12fb4591/providerhosted-app-could-not-find-a-context-token?forum=appsforsharepoint
https://social.msdn.microsoft.com/Forums/en-US/23163e33-2f84-4356-813d-04f9103889c5/sharepoint-providerhosted-app-context-token-not-available?forum=appsforsharepoint
Work hard, play harder!
Maybe you are looking for
-
Can you have two Apple ID that you use for purchases but only one library?
Okay well the question pretty much asks its all but can you?
-
Does the Flash Player (Win7 / IE 9+) cache content outside of the browser?
I have encountered a technical issue using Flash (CC) content in Captivate 7. I am distributing the content to a customer with approximately 1000 Windows PC's running IE 9 +. Some of these computers have no issue but a small number experience a pro
-
Display Modes incorrect when using Monitor Multiplexer.
If I bypass it, everything works and X likes giving me all the resolutions, but with it hooked up it maxes out at 1024x768 (Should be setting it to 1920x1080). $ xrandr -q Screen 0: minimum 8 x 8, current 2944 x 1080, maximum 16384 x 16384 DVI-I-0 co
-
This long-awaited tool. Quickly create new shapes. Way to go! I understand that for complex shapes of many different forms niepotarzalne live schmaty corners that are difficult to save as a graphic style. But for an object that has changed corners sy
-
Strange Error: PLS-00123:program too large
Hi, I was wondering whether, when using Oracle Application Database configuration tool, anyone has seen the following: error occured during batching: ORA- 06550: live 11024, column 1: PLS-00123:program too large. This occured when trying to create a