Quantcast
Channel: Service Bus forum
Viewing all 1916 articles
Browse latest View live

Notification hub message to client which is not phone OR windows app

$
0
0

Can we receive Azure notification hub message (notification) on a application which is not widows/apple/android phone application OR windows store application? It may be a windows service OR any application subscribing for notifications.


Ashish


BizTalk Adapter Service

$
0
0

Hi,

Installation of the BizTalk Adapter Service, which runs under IIS, requires prior installation of the BizTalk Adapter Pack 2013, 32-bit edition for use with Visual Studio 2012.

Does this mean we also need to purchase a BizTalk Licence to use the BizTalk Adaptor Service on premises?

Thanks



Service Bus for Windows Server 1.1 RTM Date...

$
0
0
Can someone please let me know when will Service Bus 1.1 is going to be released for production use? Thanks.

What does the term "Protocol Heads" exactly mean?

Azure Service Bus Queue REST API Bug?

$
0
0

Hi,

We are experiencing a problem with retrieval message from Azure Service Bus Queue via REST API, we can see there are messages in the Queue however when we tried to retrieve it via REST API the response code is 204 (No content).  This was working couple days ago and about 3 days ago we started getting 204 response code from the REST API. Has anyone experiencing the same issue?

Thanks

Use Multiple Endpoints in a Service Bus for Windows Server Connection String

$
0
0

I understand that we can specify multiple endpoints (nodes) in our connection strings when connecting to our Window Server Service Bus Farm and I thought that when sending messages, it would select an appropriate and available node from the farm.

However, we always use WCF with the NetMessagingBinding to both write and read our queues and topics so we always have to specify a specific hostname in the serviceUri.

The question really is how can we construct WCF friendly Uris which read and write to the Service Bus 'Farm' rather than specific nodes within it?

Service Bus bug on message send or unable to find an entry point named 'EventRegister' in DLL 'advapi32.dll'

$
0
0

Hello, I'm using brokered messaging provided by Windows Azure Service Bus, using latest (2.1.2.0) libraries for .NET.

Most of the time it works fine, but on some machines (Win XP may be other too, testing is in progress) it fails on message send 

_queueClient.Send(message);

providing the following exception and interesting stack

System.EntryPointNotFoundException: Unable to find an entry point named 'EventRegister' in DLL 'advapi32.dll'.

Server stack trace: 
   at Microsoft.ServiceBus.Tracing.EventProviderClone.ManifestEtw.EventRegister(Guid& providerId, EtwEnableCallback enableCallback, Void* callbackContext, Int64& registrationHandle)
   at Microsoft.ServiceBus.Tracing.EventProviderClone.EventRegister(Guid& providerId, EtwEnableCallback enableCallback)
   at Microsoft.ServiceBus.Tracing.EventProviderClone.Register(Guid providerGuid)
   at Microsoft.ServiceBus.Tracing.EventSource..ctor()
   at Microsoft.ServiceBus.Tracing.MessagingClientEtwProvider.get_Provider()
   at Microsoft.ServiceBus.Common.ExceptionTrace.TraceException[TException](TException exception, TraceEventType level, EventTraceActivity activity)
   at Microsoft.ServiceBus.Common.ExceptionTrace.AsError(Exception exception, EventTraceActivity activity)
   at Microsoft.ServiceBus.Messaging.Sbmp.SbmpMessageSender.EndSendCommand(IAsyncResult result)
   at Microsoft.ServiceBus.Messaging.Sbmp.SbmpMessageSender.OnEndSend(IAsyncResult result)
   at Microsoft.ServiceBus.Messaging.MessageSender.RetrySenderAsyncResult.<GetAsyncSteps>b__22(RetrySenderAsyncResult thisPtr, IAsyncResult r)
   at Microsoft.ServiceBus.Messaging.IteratorAsyncResult`1.StepCallback(IAsyncResult result)

Exception rethrown at [0]: 
   at Microsoft.ServiceBus.Common.AsyncResult.End[TAsyncResult](IAsyncResult result)
   at Microsoft.ServiceBus.Messaging.IteratorAsyncResult`1.RunSynchronously()
   at Microsoft.ServiceBus.Messaging.MessageSender.OnSend(TrackingContext trackingContext, IEnumerable`1 messages, TimeSpan timeout)
   at Microsoft.ServiceBus.Messaging.MessageSender.Send(TrackingContext trackingContext, IEnumerable`1 messages, TimeSpan timeout)
   at Microsoft.ServiceBus.Messaging.MessageSender.Send(BrokeredMessage message)
   at Microsoft.ServiceBus.Messaging.QueueClient.Send(BrokeredMessage message)
   at %ApplicationName%.MessageSender.ServiceBusSender.SendMessage(BrokeredMessage message)

Server or client doesn't have right advapi32.dll? To me it looks like server. Also it looks like EntryPointNotFoundException hides other exception that occurred previously (this string Microsoft.ServiceBus.Common.ExceptionTrace.AsError).

Can somebody help me?

Thank you!

How to measure if a Topic/Subscription has gone idle

$
0
0

I've been tasked at work with developing some operations scripts for monitoring service bus performance in a similar fashion to how we used to monitor RabbitMQ.  I have after much searching, reached a point where I cannot find the answers to the following questions.

1.  What does the AccessedAt property that exists withing the TopicDescription SubscriptionDescription and QueueDescription classes actually represent.  The documentation simply states the obvious "The time at which the entity was last accessed" but in my own internal testing I've found that even when nothing is published to a Topic for a length of time, the accessed at property is still being updated, so I'd like to know more specifically what counts as "accessing" a topic.  At this point I'm guessing even connecting via a TopicClient would count as accessing the topic even if nothing is published.

2.  Is there some way, other than creating a duplicate subscription and measuring the message flow coming through a topic, to get the number of messages/minute going through a topic/subscription similar to the rate of flow metrics shown on the azure dashboard.  

Thanks!


ServiceBus Notifications UpdateRegistarionAsync 502 - Web server received an invalid response while acting as a gateway or proxy server.

$
0
0

When trying to register or update (any android/ios/wp/windows) registrations, we are most of a time getting error

502 - Web server received an invalid response while acting as a gateway or proxy server.

case ClientType.android:                        
{                            
registration = await client.CreateGcmNativeRegistrationAsync(channel, cctags); 
break;                        
}  

case ClientType.android:
{                            
var reg = registrationDescription as GcmRegistrationDescription;
reg.GcmRegistrationId = channel;
registration = await client.UpdateRegistrationAsync(reg);
break;                        
}

That happens on Azure server 90% of time. On localhost everything works perfectly.

Caching in wcf rest when azure service bus integrated

$
0
0

when I added

`[AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Required)]`

in wcf rest service and

    <serviceHostingEnvironment aspNetCompatibilityEnabled="true"/>

in webconfig

 im getting error as

The service cannot be activated because it does not support ASP.NET compatibility. ASP.NET compatibility is enabled for this application. Turn off ASP.NET compatibility mode in the web.config or add the AspNetCompatibilityRequirements attribute to the service type with RequirementsMode setting as 'Allowed' or 'Required'.

Its working fine when I run service in localhost and even hosted in IIS but its throwing the error when I host the service and servicebus is integrated..

Actually I need this bcos im planning to implement caching in wcf rest service..

I came to know that as im integrating servicebus eventhough i added the above mentioned attribute it wont work  as per this link

http://blogs.msdn.com/b/avkashchauhan/archive/2011/11/17/wcf-rest-http-application-connecting-azure-service-bus-using-webhttprelaybinding-causes-aspnetcompatibilityenabled-error.aspx

and I need to implement caching and as per below link the above menioned attribute is required for caching

http://msdn.microsoft.com/en-us/library/ee230443.aspx

please let me know how can implement caching


Service Bus for Windows Server - The API Version is not Supported

$
0
0

Hi, 

We're working with Service Bus 1.1 for Window Server installed on our LAN. Our machines are Windows Server 2008. We're also using Service Bus Explorer (http://blogs.msdn.com/b/paolos/archive/2013/04/12/service-bus-explorer-2-0-released.aspx) to work with the instances.

NB: This isn't production code, we're just trying to investigate the feasibility of hosting service bus internally on our 2008 Servers. 


When using the Microsoft.ServiceBus.dll binary that is included with Service Bus Explorer (version is 2.0.30327) everything is working OK, I can create subscriptions and receive messages. 

If I use any of the updates from NuGet since this version (current version, 2.1.3.0), an exception is thrown when trying to work with any of the instance items.

"The remote server returned an error: (400) Bad Request. The api-version in the query string is not supported. Either remove it from the Uri or use one of '2012-03,2012-08,2013-04'.."

Server stack trace: 
Exception rethrown at [0]: 
   at Microsoft.ServiceBus.Common.AsyncResult.End[TAsyncResult](IAsyncResult result)
   at Microsoft.ServiceBus.Common.AsyncResult`1.End(IAsyncResult asyncResult)
   at Microsoft.ServiceBus.Messaging.ServiceBusResourceOperations.EndGet[TEntityDescription](IAsyncResult asyncResult)
   at Microsoft.ServiceBus.NamespaceManager.OnEndTopicExists(IAsyncResult result)
   at Microsoft.ServiceBus.NamespaceManager.EndTopicExists(IAsyncResult result)
   at Microsoft.ServiceBus.NamespaceManager.TopicExists(String path)

The same code works fine against service bus hosted in Azure, it's just when using the Windows Server installation that we see the problem. 

Connection String for Window Server looks like this

Endpoint=sb://dev-08.somehost.lan/DevSpace;StsEndpoint=https://dev-08.somehost.lan:9355/DevSpace;RuntimePort=9354;ManagementPort=9355;SharedAccessKeyName=owner;SharedAccessKey=DYkXL3uSRldOpb5CXUv4EdfdfeKprOnrHRzeZIVwfrdKk=

I'm just creating Namespace and messaging Factory objects using the standard..

this.namespaceManager = NamespaceManager.CreateFromConnectionString(connectionString);
this.messagingFactory = MessagingFactory.CreateFromConnectionString(connectionString);

...which both get created OK, it's just when trying to create Client instances that the Exception is thrown. 


I'm not sure what the Exception is telling me. How is the api-version being transmitted & how can I go about resolving? 

The only Hit I get when searching is this thread, but not sure if it applies in this case

http://social.msdn.microsoft.com/Forums/windowsazure/en-US/55b88e96-301a-44e4-82e7-339b9f53881c/bad-request-apiversion

Any advice appreciated, let me know if I can give any more information

Thanks

Dylan


Found a bug: ServiceBus Stored Procedure on Non-English SQL Server

$
0
0

Hi there,

 

When installing Azure Service Bus and Workflow Manager 1.0 on a non-English System (in this case German) the Event Log is spammed with these messages (Warnings):

 

TrackingId: 03823126-f67e-413b-82f9-42f554d8f1ed_GIT-W12-SPQAAPP, SubsystemId: NoSystemTracker. A SQL exception was caught. Command = [dbo].[MarkBrokenResourceManifests], error number = 242, procedure = MarkBrokenResourceManifests, database name = SbGatewayDatabase, server = IT-W12-SPQASQL\QA_SP13SQL12, error = error number = 242, error state = 3, error class = 16, error message = Bei der Konvertierung eines varchar-Datentyps in einen datetime-Datentyp liegt der Wert außerhalb des gültigen Bereichs., procedure = MarkBrokenResourceManifests, line number = 18

System.Data.SqlClient.SqlException (0x80131904): Bei der Konvertierung eines varchar-Datentyps in einen datetime-Datentyp liegt der Wert außerhalb des gültigen Bereichs.

  bei System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)

   bei System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)

   bei System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)

   bei System.Data.SqlClient.SqlDataReader.TryConsumeMetaData()

   bei System.Data.SqlClient.SqlDataReader.get_MetaData()

   bei System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)

   bei System.Data.SqlClient.SqlCommand.CompleteAsyncExecuteReader()

   bei System.Data.SqlClient.SqlCommand.InternalEndExecuteReader(IAsyncResult asyncResult, String endMethod)

   bei System.Data.SqlClient.SqlCommand.EndExecuteReaderInternal(IAsyncResult asyncResult)

   bei System.Data.SqlClient.SqlCommand.EndExecuteReader(IAsyncResult asyncResult)

   bei Microsoft.Cloud.ServiceBus.Common.Sql.SqlCommandAsyncResult.<GetAsyncSteps>b__1(SqlCommandAsyncResult thisPtr, IAsyncResult r)

   bei Microsoft.ServiceBus.Messaging.IteratorAsyncResult`1.StepCallback(IAsyncResult result)

ClientConnectionId:4aeb6f7a-e409-4728-a832-31ba327fc251

 

We took the liberty to look into the mentioned stored procedure (Bug is inDatabase: SbGatewayDatabase, SP: MarkBrokenResourceManifests). In that procedure you do the following:

 and[Expiration]= '9999-12-31 23:59:59.997'

 

This of course doesn’t work on a non-English SQL Server as can be tested with the following:

selectCASEgetutcdate() WHEN  '9999-12-31 23:59:59.997'THEN'' ELSE'works'END

 

On a German SQL Server this throws the error (The conversion of a varchar data type to a datetime data type resulted in an out-of-range value.) – it would work when you write it like so:

selectCASEgetutcdate() WHEN  '9999-31-12 23:59:59.997'THEN'' ELSE'works'END

 

But of course a string like this wouldn’t work on a US-English System.

 

 

Come on guys. You compare GetUTCDate() with a string? Without culture or casting the string to something meaningful? :-)

Azure Service Bus 2.1, config changes

$
0
0

I have some code in a config file from an old project:

<extensions>

      <behaviorExtensions>

        <addname="transportClientEndpointBehavior"

            type="Microsoft.ServiceBus.Configuration.TransportClientEndpointBehaviorElement, Microsoft.ServiceBus, Version=1.8.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

      </behaviorExtensions>

      <bindingExtensions>

        <addname="netTcpRelayBinding"

            type="Microsoft.ServiceBus.Configuration.NetTcpRelayBindingCollectionElement, Microsoft.ServiceBus, Version=1.8.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"/>

      </bindingExtensions>

    </extensions>

I now have the 2.1 SDK on my machine so my SB dll is v2.1.  I’ve tried running ‘sn –T’ against the assembly but apparently it isn’t strongly signed. Is the public key token the same as in v1.8?

Also, in 1.8, I used to be able to create my client credential like you see below, but it appears that transportClientEndpointBehavior no longer exists.  What would be the correct way to do the shared key?

<behaviors>

      <endpointBehaviors>

        <behaviorname="serviceBusCredentialBehavior">

          <transportClientEndpointBehaviorcredentialType="SharedSecret">

            <clientCredentials>

              <sharedSecretissuerName="[MY ISSUER NAME]"

                           issuerSecret="[MY KEY]”/>

            </clientCredentials>

          </behavior>

      </endpointBehaviors>

    </behaviors>


STom

Auto-delete service bus subscriptions on Idle

$
0
0
Hi, we are using (on-premise) Windows Service Bus as a messaging channel (publisher/subscriber model) for our applications and services.
There's one specific scenario i would like to describe here since so far we couldn't find a solution to the following:

1. We have multiple topics and multiple subscriptions set on each topic
2. Messages are published synchronously to all the topics (aproximately 1000 messages per second with the average size of about 250 bytes per message) 
3. We are keeping messages alive only for a short periods of time by setting DefaultMessageTimeToLive on each subscription
4. If one application disconnects, we want to auto-delete its subscription after awhile and reinitialize it when the application is started next time

It is the Part 4 that is giving us troubles.
Setting AutoDeleteOnIdle on a subscription doesn't seem to work. 

Any help would be highly appreciated!

Using NamespaceManager.CreateQueue against Service Bus 1.1 fails

$
0
0

Hi,

We are currently investigating the Service Bus and how we can use that in our systems. And we have tried the 1.0 version with success, however we need to use 1.1 due to the SAS support (among others).

However, when I try to do the steps that is outlined in this tutorial http://msdn.microsoft.com/en-us/library/windowsazure/dn282148(v=azure.10).aspx, the CreateQueue call fails with an execption that says: "The remote server returned an error: (404) Not Found. No service is hosted at the specified address". It is not only that call that fails, also the QueryQueue fails if the queue exists ("The remote server returned an error: (400) Bad Request. The specified HTTP verb (GET) is not valid").

However, when I try the same using the Service Bus Explorer application it works. I suspects that this some kind of problem with the ServiceBus assembly provided with the NuGet package "Service Bus 1.1 for Windows Explorer"?

Have anyone gotten this to work at all?


--Rune

If a post answers your question, please click "Mark As Answer" on that post and "Mark as Helpful" if the post helped you to a solution of your problem.


Unrecognized attribute 'credentialType'. Note that attribute names are case-sensitive.

$
0
0

Hi,

I am trying to host a WCF service with Service Bus Endpoints on IIS.  The issue I have is :

Configuration Error

Description: An error occurred during the processing of a configuration file required to service this request. Please review the specific error details below and modify your configuration file appropriately.

Parser Error Message: Unrecognized attribute 'Type'. Note that attribute names are case-sensitive.

Source Error:
Line 35:       <endpointBehaviors>
Line 36:         <behavior name="sharedSecretClientCredentials">Line 37:           <transportClientEndpointBehavior Type="SharedSecret">Line 38:             <clientCredentials>
Line 39:               <sharedSecret issuerName="****" issuerSecret="*****" />

Any idea?

Thanks.

Kevin

CreateQueue error > The remote server returned an error: (404) Not Found. No service is hosted at the specified address

$
0
0

I have Service Bus 1.0 installed on a separate server, as well as workflow manager 1.0

I am writing my first Queue app.

I can say my connection string is correct.

namespaceManager.CreateQueue(QueueName); 

Error:

MessagingEntityNotFoundException

The remote server returned an error: (404) Not Found. No service is hosted at the specified address..TrackingId:ec9e13aa-35a6-4a03-9c41-399717e626f0_GMYHOST,TimeStamp:9/21/2013 3:43:24 AM


Thanks, Roy Kim

Problem sending notification message to Android device

$
0
0

I have followed the 'Getting with Windows Azure Notification Hub' article and have problem getting the Android Emulator to receive a message. Here is my experience:

1. 'Google Cloud Messaging for Android Library' is shown as 'deprecated' (probably not an issue)
2. 'notification-hubs-sdk.jar' is now 'notification-hubs-0.1.jar' (probably not an issue)
3. I am able to register and get and 'id' back from 'gcm'
4. I am able to send a notification message to the emulator using the 'id'
5. The Azure Notification Hub monitor shows that the 'send' was successful
6. But there is no message delivered to the emulator

How to troubleshoot this?


Frank

Service Bus Farm | WCF Client Configuration

$
0
0

Hello,

Could anyone provide a sample WCF configuration that can be used with a Service Bus Farm?

Thanks in advance,

Joao

The token provider was unable to provide a security token while accessing https://sendemail-sb.accesscontrol.windows.net...

$
0
0

We have a Cloud Service which is responsible for retrieving items from a queue.  We have started receiving an error recently and we have not deployed any new code so wondered if someone could shed some light on what the problem could be:

DateTime Started - 10/28/2013 9:15:39 AM  Error Caught  System.IdentityModel.Tokens.SecurityTokenException: The token provider was unable to provide a security token while accessing 'https://sendemail-sb.accesscontrol.windows.net/WRAPv0.9/'. Token provider returned message: 'Error:Code:401:SubCode:T0:Detail:ACS50009: SWT token is invalid.:TraceID:70022329-ce4e-48b9-9be7-44f3cdba25f7:TimeStamp:2013-10-28 09:15:43Z'. ---> System.Net.WebException: The remote server returned an error: (401) Unauthorized.     at System.Net.HttpWebRequest.GetResponse()     at Microsoft.ServiceBus.TokenProviderHelper.GetAccessTokenCore(Uri requestUri, String appliesTo, String requestToken, String simpleAuthAssertionFormat, TimeSpan timeout, String& expiresIn)     --- End of inner exception stack trace ---     at Microsoft.ServiceBus.TokenProviderHelper.ThrowException(Uri requestUri, WebException exception)     at Microsoft.ServiceBus.TokenProviderHelper.GetAccessTokenCore(Uri requestUri, String appliesTo, String requestToken, String simpleAuthAssertionFormat, TimeSpan timeout, String& expiresIn)     at Microsoft.ServiceBus.TokenProviderHelper.GetHttpAuthAccessTokenByAssertion(Uri requestUri, String appliesTo, String requestToken, String simpleAuthAssertionFormat, TimeSpan timeout)     at Microsoft.ServiceBus.SharedSecretTokenProvider.OnBeginGetWebToken(String appliesTo, String action, TimeSpan timeout, AsyncCallback callback, Object state)     at Microsoft.ServiceBus.TokenProvider.GetWebTokenAsyncResult..ctor(TokenProvider tokenProvider, String appliesTo, String action, Boolean bypassCache, TimeSpan timeout, AsyncCallback callback, Object state)     at Microsoft.ServiceBus.TokenProvider.BeginGetWebToken(String appliesTo, String action, Boolean bypassCache, TimeSpan timeout, AsyncCallback callback, Object state)     at Microsoft.ServiceBus.HttpBufferClient.AddTokenToRequest(HttpWebRequest webRequest, TransportClientEndpointBehavior credential, String action)     at Microsoft.ServiceBus.HttpBufferClient.GetPolicy()     at sendEmailRole.AzureHelper.GetOrCreateQueue(TransportClientEndpointBehavior sharedSecredServiceBusCredential, Uri queueUri, MessageBufferPolicy& queuePolicy) in C:\xxxx_Project\xxxx_Azure\sendEmailSingle\sendEmailSingle\sendEmailRole\Helpers\AzureHelper.cs:line 90     at sendEmailRole.AzureHelper.GetMessageBufferClient() in C:\xxxx_Project\xxxx_Azure\sendEmailSingle\sendEmailSingle\sendEmailRole\Helpers\AzureHelper.cs:line 47     at sendEmailRole.SendEmail.Run() in C:\xxxx_Project\xxxx_Azure\sendEmailSingle\sendEmailSingle\sendEmailRole\sendEmail.cs:line 32 



Viewing all 1916 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>