Service Bus with WCF in IIS 8 with Application Initialization Issue

I’m running service bus 1.1 on premise locally and have it hooked into a wcf service using netMessagingBinding. 
I installed Application Initialization and set Start Mode to AlwaysRunning for the application pool, and set Preload Enabled to true for the site. 
I also have the appropriate <applicationInitialization> section in the web config where I added the service to an initializationPage.
The message gets delivered if I hit the endpoint in my browser, and even if I do an IIS reset, it still gets delivered, however I had to hit the endpoint first manually. 
If I do a clean (or edit any of the wcf code files) and build, it won’t get delivered until I hit the endpoint. 
I get similar behavior when I set a break point in the service and attach to the w3wp.exe process. 
If I do a clean and build and set a break point in the service code, it has the open red circle that says breakpoint will not be hit, no symbols have been loaded for this document. 
When I hit the endpoint, the open red circle gets filled, and the endpoint can be hit. 
I’m guessing these 2 go hand in hand with what I’m seeing with the service bus.
Setting up Application Initialization fixes the issue if I restart IIS, it can continue to receive messages, however I first need to hit the endpoint.
 I just don’t know how it handles the scenario when it first gets deployed (like when I do a clean and build). 
I thought the Application Initialization would of handled this but I’m probably missing something.

Hi sir,
Form your description, it seems that you use the op-premise service bus. I will move this thread to Azure Pack forum for more helps.
Regards,
Will 
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.

Similar Messages

  • Can Acrobat 9 pro be installed to XP with web server(IIS) without any license issue?

    It seems not to permit to install into window server, but how about the window XP had web server installed?

    Thanks for your reply. As I mentioned in my post, when I went to Control Panel to uninstall Acrobat 11.0, it wasn't listed among currently installed apps. However, after going back and looking through the Installed On dates in Control Panel, I realized that for some reason, it's called Adobe PFD Creation Add-on XI, rather than Acrobat 11.0. Interestingly, the program folder name in Windows Explorer still uses Acrobat 11.0.
    Fortunately for me, I always have disc versions of my software. So I was able to re-install Acrobat 9.0 once I got rid of Adobe PDF Creation Add-on XI. I really wish that Adobe made clearer what extras they are installing with these trial versions :-(
    Thanks again.

  • Creating A Service Bus SAS Token and Consuming Relay in WinRT

    I have a Service Bus Relay (WCF SOAP) I want to consume in my Windows Store App. I have written the code to create a token as well as the client which is below.
    The problem is that I get an AuthorizationFailedFault returned with a faultstring "InvalidSignature: The token has an invalid signature." And I can't figure it out.
    My Create Token method:
    private static string CreateSasToken()
    TimeSpan sinceEpoch = DateTime.UtcNow - new DateTime(1970,1, 1);
    var expiry = Convert.ToString((int)sinceEpoch.TotalSeconds + 3600);
    string stringToSign = webUtility.UrlEncode(ServiceUri.AbsoluteUri) + "\n" + expiry;
    string hashKey = Encoding.UTF8.GetBytes(Secret).ToString();
    MacAlgorithmProvider macAlgorithmProvider = MacAlgorithmProvider.OpenAlgorithm(MacAlgorithmNames.HmacSha256);
    BinaryStringEncoding encoding = BinaryStringEncoding.Utf8;
    var messageBuffer = CryptographicBuffer.ConvertStringToBinary(stringToSign,encoding);
    IBuffer keyBuffer = CryptographicBuffer.ConvertStringToBinary(hashKey,encoding);
    CryptographicKey hmacKey = macAlgorithmProvider.CreateKey(keyBuffer);
    IBuffer signedMessage = CryptographicEngine.Sign(hmacKey, messageBuffer);
    string signature = CryptographicBuffer.EncodeToBase64String(signedMessage);
    var sasToken = String.Format(CultureInfo.InvariantCulture,
    "SharedAccessSignature sr={0}&sig={1}&se={2}&skn={3}",
    WebUtility.UrlEncode(ServiceUri.AbsoluteUri),
    WebUtility.UrlEncode(signature), expiry, Issuer);
    return sasToken;
    My Client class:
    public partial class ServiceClient
    public async Task<string> GetDataUsingDataContract(string item, string sasToken)
    HttpClient client = new HttpClient();
    client.DefaultRequestHeaders.Add("ServiceBusAuthorization",sasToken);
    client.DefaultRequestHeaders.Add("SOAPAction",".../GetDataUsingDataContract");
    client.DefaultRequestHeaders.Add("Host", "xxxxxxxxxxx.servicebus.windows.net");
    HttpRequestMessage request = new HttpRequestMessage(HttpMethod.Post,ServiceUri);
    var content =new StringContent(@"<s:Envelope
    xmlns:s=""http://schemas.xmlsoap.org/soap/envelope/"">
    <s:Header></s:Header><s:Body>"+ item +@"</s:Body>
    </s:Envelope>",System.Text.Encoding.UTF8,"application/xml");
    request.Content = content;
    HttpResponseMessage wcfResponse = client.SendAsync(request).Result;
    HttpContent stream = wcfResponse.Content;
    var response = stream.ReadAsStringAsync();
    var returnPacket = response.Result;
    return returnPacket;
    I have been successful consuming the Relay using Http (via Fiddler) by copying an unexpired token created by Micorosft.ServiceBus in a console app.
    John Donnelly

    Thanks Girish. I eagerly await some help on this. I have figured a lot out but I am stuck on creating a good SAS Token.
    I reposted a question I asked on StackOverflow here  in this MSDN forum
    here if you can help on creating steer me in the right direction.
    John Donnelly

  • WCF service application hosted in IIS for reading Windows server service bus topic/subscription

    We have a WCF service application(not web application) which is deployed in IIS 8 pointing to the windows server service bus topic/subscription. We have configured the WCF service with applicationInitialization feature of IIS 8 to warm up.
    But the WCF service is not reading any message from the topic/subscription.
    configured in web.config file as below
    <system.webServer>
    <applicationInitialization>
    <add initializationPage="/MyService.svc" />
    </applicationInitialization>
    </system.webServer>
    When we run the same from visual studio its reading messages from topic/subscription.
    any configuration/settings which we are missing?

    You probably  didn't initialize correctly the auto-start. Btw. I would recommend you to use AppFabric for this feature. It is more transparent in development and production.
    Please take a look on following posts:
    http://social.technet.microsoft.com/wiki/contents/articles/1284.host-wcf-services-with-service-bus-endpoints-in-iis-and-windows-server-appfabric.aspx
    http://developers.de/blogs/damir_dobric/archive/2009/10/11/iis-7-5-and-always-running-web-applications.aspx
    http://developers.de/blogs/damir_dobric/archive/2010/06/11/appfabric-issue-with-aoutostart.aspx
    Damir Dobric
    developers.de
    daenet.de
    daenet.eu
    daenet.com

  • SB-Messaging and service bus DLL within BTS seems not compatible with Cloud

    I am trying to retreive a message from a Queue in azure service bus. The receive location gets disabled after 5 seconds of enabling it. The error message is :
    The receive location "rlFromFireQueue" with URL "sb://muazure.servicebus.windows.net/firealertqueue" is shutting down. Details:"System.InvalidOperationException: This client is not supported for a partitioned entity. The client version
    should be greater or equal than version '2013-10'..8653aa96-4c37-4ee1-8be8-52f2e9702ee0_G2_G2 ---> System.ServiceModel.FaultException`1[System.ServiceModel.ExceptionDetail]: This client is not supported for a partitioned entity. The client version should
    be greater or equal than version '2013-10'..8653aa96-4c37-4ee1-8be8-52f2e9702ee0_G2_G2
    I had the same exact issue when I was using an old .Net console application which was using microsft.servicebus.dll version 2.1. I downloaded the 2.4 azure sdk and ran setup. After replacing the reference in my console project to the new version I was able
    to send messages to my queue.
    My BTS box is 2013 R2 (upgraded from 2013), I checked the directory C:\Program Files (x86)\Microsoft BizTalk Server 2013, I noticed that the Microsoft.ServiceBus.dll in this directory is version 2.1 which according to a thread in blog is not compatible
    to a new property introduced since last summer ( clients will be updated to support partitioned entities) when creating a new queue using Quick Create.
    So my question is : How can I update the SB-MESSAGING adapter to use a new version to be compatible with this improvments in Azure or more clearly is there any config or procedures to be done to make the bTS 2013R2 adapter compatible with Azure service bus
    partioning feature
    For your reference, here is the url for the blog where I found the information
    http://mindovermessaging.com/2014/06/21/service-bus-queuetopic-partitioning-not-supported-in-biztalk-services/
    Thanks in advance

    I'm afraid you wont be able to update the SB-Messaging adapter because the partitioning option is not supported.
    However you have an alternative:
    You can try using a WCF-Custom port with netMessagingTransport binding. This should be tested, because I'm not 100% sure it supports the partitioning feature. However all necessary features are working because we are using this setup at a current integration
    project.
    Also be sure to check Paolo's blog for all the necessary information regarding configuration and setup: http://code.msdn.microsoft.com/windowsazure/How-to-integrate-BizTalk-f0195690
    Glenn Colpaert - Microsoft Integration MVP - Blog : http://blog.codit.eu

  • Need a help on implemening SAML with Oracle Service Bus

    We are implementing Webservice security using SAML with Oracle Service Bus for our project. We are in dire need of help in implementing the same. We have found some documents (osb console help, osb security) from the oracle web site but those documents have high-level details only. If we get the step-by-step flow and examples of implementing the Webservices security using SAML with Oracle Service Bus, it would be appreciated.
    Requirement details:
    1. Client application has to generate the SAML assertion (token) and pass that token to the OSB proxy service in a SOAP header along with the request.
    2. OSB proxy service gets the authentication token from the inbound request
    3. The token is passed to an SAML Identity Assertion provider and validate the token
    4. If the token is validated successfully then pass the valid token to appropriate business services.
    5. Business services communicates the appropriate external web services after validating the token and gets the response.
    Environment details:
    1. Oracle Weblogic Application Server 10g3
    2. Oracle Service Bus 10g3
    Thanks,
    Suresh Mani

    We are implementing Webservice security using SAML with Oracle Service Bus for our project. We are in dire need of help in implementing the same. We have found some documents (osb console help, osb security) from the oracle web site but those documents have high-level details only. If we get the step-by-step flow and examples of implementing the Webservices security using SAML with Oracle Service Bus, it would be appreciated.
    Requirement details:
    1. Client application has to generate the SAML assertion (token) and pass that token to the OSB proxy service in a SOAP header along with the request.
    2. OSB proxy service gets the authentication token from the inbound request
    3. The token is passed to an SAML Identity Assertion provider and validate the token
    4. If the token is validated successfully then pass the valid token to appropriate business services.
    5. Business services communicates the appropriate external web services after validating the token and gets the response.
    Environment details:
    1. Oracle Weblogic Application Server 10g3
    2. Oracle Service Bus 10g3
    Thanks,
    Suresh Mani

  • Oracle Service Bus Proxy Testing with Attached Policy

    Hello,
    When I'm testing a Proxy through the test console (lauch by clicking the bug) I'm seeing Override Values in the Security section. I've created four custom policies and attached two of them to the proxy. One that processes the request and the other the processes the response. The other two policies are attached to a composite on an interface to an external  service. Those policies process the request/response respectively. When I bring up the test console for the OSB Proxy, I'm seeing the two policies that are attached to the composite in the "Security" section as "Override Values". If I don't delete the policies, they are executed. Which causes an error. So I have to delete them to get a clean run.  I'm not sure why they are showing up in the "Override Values". It's definitely annoying that I have to delete them each time before executing the test. Any ideas on what's going on?
    Thanks!
    Steve
    Oracle Service Bus Version: [Oracle Service Bus 11.1 Sun Dec 18 03:49:34 PST 2011 1447174] 
    Oracle Weblogic Server Version: [WebLogic Server 10.3.6.0 Tue Nov 15 08:52:36 PST 2011 1441050 ]

    Hi Wai,
    I think it is not supported with OSB. The doc says -
    46.15 Is single sign-on supported in Oracle Service Bus?
    Strictly speaking single sign-on (SSO) is not applicable to Oracle Service Bus messaging scenarios for several reasons. First, Oracle Service Bus is stateless; there is no notion of a session or conversation among multiple parties. Second, Oracle Service Bus clients are typically other enterprise software applications, not users behind a Web browser. Therefore, it is acceptable to require that these clients send credentials such as username and password on every request, provided that the communication is secured by means such as SSL or WS-Security. However, SSO between the Oracle Service Bus Console and the Oracle WebLogic Server Administration Console is supported. For more information, see "Single Sign-On" in "Security Fundamentals" in Oracle Fusion Middleware Understanding Security for Oracle WebLogic Server.http://download.oracle.com/docs/html/E15866_01/security_faq.htm#i1058723
    http://download.oracle.com/docs/cd/E13159_01/osb/docs10gr3/security/security_faq.html#wp1053670
    Regards,
    Anuj

  • Oracle Service Bus SSO with Proxy Service

    Hi all,
    I protect Proxy Service. It means only authenticated user can able to access it.
    But when i want to access from my application server (weblogic), i don't want to authenticate again with OSB.
    Is there any way to use SSO between application server and Oracle Service Bus ?
    With Regards,
    Wai Phyo

    Hi Wai,
    I think it is not supported with OSB. The doc says -
    46.15 Is single sign-on supported in Oracle Service Bus?
    Strictly speaking single sign-on (SSO) is not applicable to Oracle Service Bus messaging scenarios for several reasons. First, Oracle Service Bus is stateless; there is no notion of a session or conversation among multiple parties. Second, Oracle Service Bus clients are typically other enterprise software applications, not users behind a Web browser. Therefore, it is acceptable to require that these clients send credentials such as username and password on every request, provided that the communication is secured by means such as SSL or WS-Security. However, SSO between the Oracle Service Bus Console and the Oracle WebLogic Server Administration Console is supported. For more information, see "Single Sign-On" in "Security Fundamentals" in Oracle Fusion Middleware Understanding Security for Oracle WebLogic Server.http://download.oracle.com/docs/html/E15866_01/security_faq.htm#i1058723
    http://download.oracle.com/docs/cd/E13159_01/osb/docs10gr3/security/security_faq.html#wp1053670
    Regards,
    Anuj

  • Example of Oracle Service Bus with DB Adapter

    I need to integrate Peoplesoft HCM with another application using the OSB. How can I use DB Adapter with OSB to realise inserts in Oracle Database?

    http://guidoschmutz.wordpress.com/2010/08/08/oracle-service-bus-11g-and-db-adapter-a-different-more-integrated-approach/
    He has posted some videos as well.
    Thanks,
    Vijay

  • How to protect an application running on IIS with OAM 11gR2

    Hello Gurus,
    I have a question regarding protecting an application running on IIS with OAM 11gR2. We have an OHS server running and all the requests from the users are coming to this OHS server webgate for them to login using the SSO login page. These is all solaris. I am protecting other applications like pplsoft moduels with this OHS instance and OAM server. There is another application that I need to protect which is itself running on IIS windows machine. I need guidance as to -
    1.) Do I need to install a windows version of webgate to protect this IIS based application?
    2.) Or I can still protect and proxy requests from this application to current OHS instance? How can I do this?
    3.) Or Do I need to proxy requests directly from IIS to OAM weblogic server?
    Please advise to the earliest as this is an urgent issue.
    Thanks !!

    From your description it is not clear how exactly architecture looks like
    We have an OHS server running and all the requests from the users are coming to this OHS server webgate for them to login using the SSO login page.
    is this OHS centralized login farm ? (Case 1)
    OR is this OHS server (with webgate) acting as virtual web server hosting multiple web sites so that request to any site passes through this OHS/webgate (Case 2)
    1.) Do I need to install a windows version of webgate to protect this IIS based application?
    If case 1 then you need to install 10g webgate on top of IIS server to protect this application
    If case 2 then you can just proxy request from OHS to IIS server. As every request passes through OHS user will be authenticated before request hits IIS
    Look at Product documentation for virtual web sites : http://docs.oracle.com/cd/E27559_01/admin.1112/e27239/shared.htm#autoId12
    It has steps to protect virtual web sites.
    Also you need to make sure no one hits IIIS web sites directly.
    Hope this helps

  • Connect Azure Pack to Service Bus for Windows Server with Custom DNS

    Hello! I'm trying to configure Azure Pack to use Service Bus for Windows Server 1.1 with Custom DNS.
    All runs on one virtual machine (Windows Server 2012 R2) in Windows Azure.
    I following this post:
    roysvork.wordpress.com/2014/06/14/developing-against-service-bus-for-windows-1-1
    Replace FramDNS "servicebus" to "mymachine.cloudapp.net", and create certificate:
    SelfSSL /N:CN=mymachine.cloudapp.net /V:1000 /T
    On Windows Azure Virtual Machine:
    1.I'll set publuc DNS: mymachine.cloudapp.net
    2.Open ports: 10354,10355,10356,10359,10000-10004
    3.In hosts file: 127.0.0.1 mymachine.cloudapp.net
    4.Create certificate:
    SelfSSL /N:CN=mymachine.cloudapp.net /V:1000 /T
    PowerShell:
    Stop-SBFarm –Verbose
    Set-SBFarm -FarmDns 'mymachine.cloudapp.net'
    Update-SBHost –Verbose
    Start-SBFarm –Verbose
    New-SBAuthorizationRule -NamespaceName ServiceBusDefaultNamespace -Name MainRule -Rights Manage, Send, Listen
    Afther that i can connect to my ServiceBusDefaultNamespace with SAS.
    It's work perfect. But, When I try to create Service Bus Namespace from Azure Pack Tenant portal - in Log an Exception:
    Namespace Provisioning Exception. TrackingId: . SystemId: . Namespace: SomeNamespace.
    Method: Activating. Exception: System.Net.Http.HttpRequestException: An error occurred while
    sending the request. ---> System.Net.WebException: The underlying connection was closed:
    Could not establish trust relationship for the SSL/TLS secure channel. --->
    System.Security.Authentication.AuthenticationException: The remote certificate is invalid according
    to the validation procedure.
    And status of namespace - Activating.
    Please help!

    Hi Alexander,
    According to the log, it seems that the validation process of the certificate failed.
    Please make sure that the certificate is installed in the client properly.
    Usually, self-signed certificate should be installed in the Computer Account-->Trusted Root Certificate Authorities.
    Best Regards.
    Steven Lee Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Issue with Oracle service bus installation on Windows 7 64 bit machine

    Hi,
    I am trying to install Oracle service bus 11.1.1.4 in Windows 7 64 bit machine for which i have downloaded the generic installers of both weblogic server and Oracle service bus. As per the instructions -
    1. Install JDK 1.6
    2. Install Weblogic server
    3.Install Eclipse separately (In my case Galileo 11.1.1.5 64 bit) - Just unzip the contents in the home directory where weblogic server is installed
    4. Install OSB
    I have installed all the above 1,2,3 in the same folder as per the instructions. But when i try to install OSB which asks for eclipse home location. But when i give the eclipse home location, it gives an error ""Home location is invalid" and i am unable to proceed with the installation.
    I have tried this with OSB 11.1.1.5 as well and have the same issue.
    Does anyone has any links which provides the steps to install OSB in Windows 7 64 bit machines or if someone can help me to resolve the above issue ?
    I really appreciate any information on this as it is urgent.
    Thanks

    I have installed OEPE 11.1.1.6.1 now in the same middleware home as weblogic server but when i try to install OSB 11.1.1.4 in the same middleware home, it asks for OEPE home location. Even though i provide the OEPE home location , it displays as "invalid oepe home location".
    I have been struggling to get this sorted out so that i can carry out IDE development in OSB 11.1.1.4
    Below are the paths where sfotware are installed -
    JDK - C:\Oracle\Middleware\Java\jdk1.6.0_21
    Weblogic server - C:\Oracle\Middleware\wlserver_10.3
    OEPE - C:\Oracle\Middleware\oepe-galileo-all-in-one-11.1.1.6.0.201007221355-win32-x86_64
    Thanks

  • I have a problem with my iPhone 4s. Location Services is turned on, but off in applications and I can not change it. It's just marked in gray. What should I do?

    I have a problem with my iPhone 4s. Location Services is turned on, but off in applications and I can not change it. It's just marked in gray. What should I do?

    No - restrictions are not on...
    and  under privacy>location Services - just like before - I can´t change it here

  • Web service security policies interoperability issue with WCF

    Hi,
    I've created a web service in Jdeveloper 11g which I have deployed to a stand alone weblogic server 10.3. I also created a web service proxy in Jdeveloper 11g that works perfectly. The service is using Wssp1.2-2007-Https.xml policy.
    I have the requirement of a C# consumer, but when I run svcutil to generate the client class and config, it throws the following warning:
    A security policy was imported for the endpoint. The security policy contains requirements that cannot be represented in a Windows Communication Foundation configuration. Look for a comment about the SecurityBindingElement parameters that are required in the configuration file that was generated. Create the correct binding element with code. The binding configuration that is in the configuration file is not secure.
    What security policy is compatible with WCF?
    Thanks,
    Miguel.

    I had the same issue and solved it like this:
    Create a signed certificate, import it into your keystore and use that as Signature Key alias in both the client as the server security. Make sure the user with the same name exists in the realm on the server.
    Hope this helps,
    Lonneke

  • Apache Qpid Proton on OS X (Mac) with Service Bus

    I want to use (if possible) the Apache Qpid Proton messaging API (sending messages to Windows Azure Service Bus) on a MacBook Pro using C. In the Apache Qpid Proton
    documentation I see instructions to build for Linux and Windows. Can anyone help me with how to proceed (build) for OS X (Mac)?
    Thanks.

    Thanks for your answer ... but I want to use (if possible) Qpid Proton on OSX/Mac (not Linux) and using C (not Java).
    0
    Sign
    in to vote
    I want to use (if possible) the Apache Qpid Proton messaging API (sending messages to Windows Azure Service
    Bus) on a MacBook Pro using C. 

Maybe you are looking for