problem regarding appfabric lab

Category: azure troubleshooting

Question

prasanna_pdc on Wed, 15 Sep 2010 11:57:09


Hi,

i am new to windows azure appfabric.I tried running Echoservice application which comes with windows azure appfabric sample but i am getting error  while trying to run that application.for this application i have created service namespace in portal.appfabriclabs.com with name of acsservice .The error i am getting is The token provider was unable to provide a security token. Error:Code:401:SubCode:T2001:Detail:The issuer does not exist, or the secret or signature is invalid.

after going through the code i realized it is pointing to acsservice.servicebus.windows.net  so i commented  

 

 

 

//Uri

 

 

 

address = ServiceBusEnvironment.CreateServiceUri("sb", serviceNamespace, "EchoService");

and replace with

 

address = new Uri(@"sb://acsservice.servicebus.appfabriclabs.com/EchoService/");

 

 

but still i got error saying  

hostname acsservice.servicebus.appfabriclabs.com can't support more than 1 level subdomain.

 after that i checked with fiddler and to my suprise the it is still connecting to windows.net.

CONNECT acsservice-sb.accesscontrol.windows.net:443 HTTP/1.1

After that i created service namespace with https://appfabric.azure.com.

and that same application run successfully.

In fiddler i couldnt make out what is the difference  since there is information in respone .

this is statistics of appfabriclabs service namespace in fiddler

Request Count:  1
Bytes Sent:  887
Bytes Received: 668

ACTUAL PERFORMANCE
--------------
ClientConnected: 16:02:53.214
ClientBeginRequest: 16:02:53.214
ClientDoneRequest: 16:02:53.214
Gateway Determination: 0ms
DNS Lookup:   0ms
TCP/IP Connect:  0ms
HTTPS Handshake: 0ms
ServerConnected: 16:02:53.217
FiddlerBeginRequest: 00:00:00.000
ServerGotRequest: 00:00:00.000
ServerBeginResponse: 00:00:00.000
ServerDoneResponse: 16:03:59.954
ClientBeginResponse: 16:03:59.954
ClientDoneResponse: 16:03:59.954

 Overall Elapsed: 00:01:06.7400000

RESPONSE CODES
--------------
HTTP/  0:  1

RESPONSE BYTES (by Content-Type)
--------------
?: 587
~headers: 81

ESTIMATED WORLDWIDE PERFORMANCE
--------------
The following are VERY rough estimates of download times when hitting servers based in WA, USA.


US West Coast (Modem - 6KB/sec)
---------------
Round trip cost: 0.10s
Elapsed Time:  0.10s


Japan / Northern Europe (Modem)
---------------
Round trip cost: 0.15s
Elapsed Time:  0.15s


China (Modem)
---------------
Round trip cost: 0.45s
Elapsed Time:  0.45s


US West Coast (DSL - 30KB/sec)
---------------
Round trip cost: 0.10s
Elapsed Time:  0.10s


Japan / Northern Europe (DSL)
---------------
Round trip cost: 0.15s
Elapsed Time:  0.15s


China (DSL)
---------------
Round trip cost: 0.45s
Elapsed Time:  0.45s

-----------------------------------------

REQUEST

CONNECT acsservice-sb.accesscontrol.windows.net:443 HTTP/1.1
Host: acsservice-sb.accesscontrol.windows.net
Proxy-Connection: Keep-Alive 

--------------------------------------

RESPONSE

HTTP/1.1 0 Connection passed to Gateway - Result unknown
EndTime: 16:03:59.954

this is the statistcs of appfabric.azure.com service

Request Count:  1
Bytes Sent:  905
Bytes Received: 668

ACTUAL PERFORMANCE
--------------
ClientConnected: 16:32:33.948
ClientBeginRequest: 16:32:33.948
ClientDoneRequest: 16:32:33.948
Gateway Determination: 0ms
DNS Lookup:   0ms
TCP/IP Connect:  0ms
HTTPS Handshake: 0ms
ServerConnected: 16:32:33.973
FiddlerBeginRequest: 00:00:00.000
ServerGotRequest: 00:00:00.000
ServerBeginResponse: 00:00:00.000
ServerDoneResponse: 16:33:37.931
ClientBeginResponse: 16:33:37.931
ClientDoneResponse: 16:33:37.931

 Overall Elapsed: 00:01:03.9830000

RESPONSE CODES
--------------
HTTP/  0:  1

RESPONSE BYTES (by Content-Type)
--------------
?: 587
~headers: 81

ESTIMATED WORLDWIDE PERFORMANCE
--------------
The following are VERY rough estimates of download times when hitting servers based in WA, USA.


US West Coast (Modem - 6KB/sec)
---------------
Round trip cost: 0.10s
Elapsed Time:  0.10s


Japan / Northern Europe (Modem)
---------------
Round trip cost: 0.15s
Elapsed Time:  0.15s


China (Modem)
---------------
Round trip cost: 0.45s
Elapsed Time:  0.45s


US West Coast (DSL - 30KB/sec)
---------------
Round trip cost: 0.10s
Elapsed Time:  0.10s


Japan / Northern Europe (DSL)
---------------
Round trip cost: 0.15s
Elapsed Time:  0.15s


China (DSL)
---------------
Round trip cost: 0.45s
Elapsed Time:  0.45s

REQUEST

CONNECT acsservice-sb.accesscontrol.windows.net:443 HTTP/1.1
Host: acsservice-sb.accesscontrol.windows.net
Proxy-Connection: Keep-Alive

--------------------------------------------

Response

HTTP/1.1 0 Connection passed to Gateway - Result unknown
EndTime: 16:33:37.931

Can anybody tell me why there is problem if i use service namespace from appfabriclabs.com ?????and no problem when i use service namespace  from appfabric.azure.com.

Even i try to use Acm.exe with appfabric lab service it throws an error saying Failed to connect or to authenticate, check host, service, and mgmtkey is there any problem with appfabric lab .

i have gone through various links in the forum but i didnt find any answer.

i have gone through below links:

1 .http://social.msdn.microsoft.com/Forums/en-US/netservices/thread/50ed0b1b-2b2e-47e9-9877-bb3903d5739a

2.http://social.msdn.microsoft.com/Forums/en-US/netservices/thread/286b6bc4-6821-4a7e-8f5d-11ed24da233f

3.http://social.msdn.microsoft.com/Forums/en/netservices/thread/ed57964a-94f1-4dee-a14c-451bcb728666

4.http://social.msdn.microsoft.com/Forums/en-US/netservices/thread/56f82d58-a6d9-45d7-af4d-9bd588eff51e/

Thanks in advance.

 

 

 

 

Uri

 

Replies

Yi-Lun Luo on Thu, 16 Sep 2010 02:18:00


Hello, can you please make sure you have downloaded servicebus.config.txt from http://www.microsoft.com/downloads/en/details.aspx?FamilyID=d89640fc-c552-446e-aead-b1e0d940f31b&displaylang=en, renamed it to servicebus.config, and copy it to the proper location, such as C:\Windows\Microsoft.NET\Framework64\v2.0.50727\CONFIG? You must have the configuration file for Service Bus SDK to point URL to the labs instead of the released services. For more information, please refer to the release notes on http://download.microsoft.com/download/6/F/D/6FD41DFC-4E39-4CF4-A68A-8FDC006DBF8A/Release%20Notes.mht.

prasanna_pdc on Thu, 16 Sep 2010 06:29:26


Hello yi-lun luo,thanks for your reply.i tried what you have suggested for and it worked .Now echoservice application is running with appfabriclabs.what i did ,i downloaded ServiceBus.Config  and pasted in 2.0.500727 and v4.0.30319 after that application started running.

But when i am trying to use acm.exe it still gives me the same error :

Failed to connect or to authenticate, check host, service, and mgmtkey

my acm.exe.config file is as shown below:

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <appSettings>
  <add key="host" value="accesscontrol.appfabriclabs.com"/>
  <add key="service" value="acsservice"/>
  <add key="mgmtkey" value="[mykey]"/>
  </appSettings>
</configuration>

i checked with fillderto see what is going throth the wire .

Request Count:  1
Bytes Sent:  903
Bytes Received: 668

ACTUAL PERFORMANCE
--------------
ClientConnected: 11:08:22.053
ClientBeginRequest: 11:08:22.053
ClientDoneRequest: 11:08:22.053
Gateway Determination: 0ms
DNS Lookup:   0ms
TCP/IP Connect:  0ms
HTTPS Handshake: 0ms
ServerConnected: 11:08:22.054
FiddlerBeginRequest: 00:00:00.000
ServerGotRequest: 00:00:00.000
ServerBeginResponse: 00:00:00.000
ServerDoneResponse: 11:08:23.121
ClientBeginResponse: 11:08:23.121
ClientDoneResponse: 11:08:23.121

 Overall Elapsed: 00:00:01.0671067

RESPONSE CODES
--------------
HTTP/  0:  1

RESPONSE BYTES (by Content-Type)
--------------
?: 587
~headers: 81

ESTIMATED WORLDWIDE PERFORMANCE
--------------
The following are VERY rough estimates of download times when hitting servers based in WA, USA.


US West Coast (Modem - 6KB/sec)
---------------
Round trip cost: 0.10s
Elapsed Time:  0.10s


Japan / Northern Europe (Modem)
---------------
Round trip cost: 0.15s
Elapsed Time:  0.15s


China (Modem)
---------------
Round trip cost: 0.45s
Elapsed Time:  0.45s


US West Coast (DSL - 30KB/sec)
---------------
Round trip cost: 0.10s
Elapsed Time:  0.10s


Japan / Northern Europe (DSL)
---------------
Round trip cost: 0.15s
Elapsed Time:  0.15s


China (DSL)
---------------
Round trip cost: 0.45s
Elapsed Time:  0.45s

---------------------------------------------

REQUEST

CONNECT acsservice-mgmt.accesscontrol.appfabriclabs.com:443 HTTP/1.1
Host: acsservice-mgmt.accesscontrol.appfabriclabs.com
Proxy-Connection: Keep-Alive

----------------------------------------------------------------

RESPONSE

HTTP/1.1 0 Connection passed to Gateway - Result unknown
EndTime: 11:08:23.121

------------------------------------------------------------

I have gone through this link also http://social.msdn.microsoft.com/Forums/en/netservices/thread/ed57964a-94f1-4dee-a14c-451bcb728666

but it didnt help me.I noticed that when we use acm.exe with appfabric.azure service namespace there are two entries in fiddler and one entry in fiddler  for appfabriclabs.why is it so ????Anybody found the solution for this?????

thanks in advance.

Yi-Lun Luo on Tue, 21 Sep 2010 09:01:23


Currently acm.exe doesn't work for the labs. To manage access rules, please use the web interface on the lab's portal.

Maurice CGP Peters on Wed, 12 Jan 2011 12:19:21


Hello,

Could you post the servicebus.config.txt somewhere for me.... The page you mentioned above does not contain a link to it any more.... I am experiencing the same kind of problem...

Thanks in andvance

vimalkumar_garg on Fri, 01 Jun 2012 07:25:29


Including below code will resolve the issue:

System.Net.WebRequest.DefaultWebProxy.Credentials = System.Net.CredentialCache.DefaultNetworkCredentials;