Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Dynamics 365 On-Premises and Microsoft Portals On-Premises - WebNotification.axd (401) Unauthorized

Posted on by Microsoft Employee

Hi Guys

I have configured correctly the WebNotification to perform the cache refresh when some of our records has changed.

Everything looks fine, the plugin is triggered but I am getting and POST return as (401) Unauthorized from the Portal.

Here is the log of the plugin execution:

WebNotificationPlugin: Execute: Begin
WebNotificationPlugin: Execute: SdkMessageProcessingStepMode: Asynchronous
WebNotificationPlugin: Execute: Unsecure Config XML: <Settings><setting name="webNotificationUrls"><value><urls><add id="12cdf13d-9e31-e811-a83b-02bf0a006754" token="AKEDJo3l5TusjQ6iYJmfqOwDUWXR26CDcUAZ9l5Np2gFkf80TMBhUGxNpo/t6UyaDw==">mysite.ie/WebNotification.axd&lt;/add></urls></value></setting></Settings>
WebNotificationPlugin: SendNotifications: {"MessageName":"Update","RelatedEntities":null,"Relationship":null,"Target":{"Id":"8d774021-0831-e811-a83b-02bf0a006754","LogicalName":"contact","Name":null}}
WebNotificationPlugin: GetResponse: POST request: mysite.ie/WebNotification.axd
WebNotificationPlugin: WriteResponseTrace: POST response: mysite.ie/WebNotification.axd (401) Unauthorized | Elapsed: 3 ms | FAIL
WebNotificationPlugin: Execute: Elapsed: 5 ms
WebNotificationPlugin: Execute: End

Here is the info from the Portal trace.axd :

Request Details
Session Id:
Request Type: POST
Time of Request: 27/03/2018 10:09:28
Status Code: 401
Request Encoding: Unicode (UTF-8)
Response Encoding: Unicode (UTF-8)

Headers Collection
Name Value
Connection Keep-Alive
Content-Length 160
Content-Type application/json
Authorization Basic AKEDJo3l5TusjQ6iYJmfqOwDUWXR26CDcUAZ9l5Np2gFkf80TMBhUGxNpo/t6UyaDw==;12cdf13d-9e31-e811-a83b-02bf0a006754
Expect 100-continue
Host mysite.ie

Server Variables
Name Value
ALL_HTTP HTTP_CONNECTION:Keep-Alive HTTP_CONTENT_LENGTH:160 HTTP_CONTENT_TYPE:application/json HTTP_AUTHORIZATION:Basic AKEDJo3l5TusjQ6iYJmfqOwDUWXR26CDcUAZ9l5Np2gFkf80TMBhUGxNpo/t6UyaDw==;12cdf13d-9e31-e811-a83b-02bf0a006754 HTTP_EXPECT:100-continue HTTP_HOST:mysite.ie
ALL_RAW Connection: Keep-Alive Content-Length: 160 Content-Type: application/json Authorization: Basic AKEDJo3l5TusjQ6iYJmfqOwDUWXR26CDcUAZ9l5Np2gFkf80TMBhUGxNpo/t6UyaDw==;12cdf13d-9e31-e811-a83b-02bf0a006754 Expect: 100-continue Host: mysite.ie
APPL_MD_PATH /LM/W3SVC/1/ROOT
APPL_PHYSICAL_PATH C:\inetpub\wwwroot\
AUTH_TYPE
AUTH_USER
AUTH_PASSWORD
LOGON_USER
REMOTE_USER
CERT_COOKIE
CERT_FLAGS
CERT_ISSUER
CERT_KEYSIZE
CERT_SECRETKEYSIZE
CERT_SERIALNUMBER
CERT_SERVER_ISSUER
CERT_SERVER_SUBJECT
CERT_SUBJECT
CONTENT_LENGTH 160
CONTENT_TYPE application/json
GATEWAY_INTERFACE CGI/1.1
HTTPS off
HTTPS_KEYSIZE
HTTPS_SECRETKEYSIZE
HTTPS_SERVER_ISSUER
HTTPS_SERVER_SUBJECT
INSTANCE_ID 1
INSTANCE_META_PATH /LM/W3SVC/1
LOCAL_ADDR 10.0.103.59
PATH_INFO /WebNotification.axd
PATH_TRANSLATED C:\inetpub\wwwroot\WebNotification.axd
QUERY_STRING
REMOTE_ADDR 10.0.103.7
REMOTE_HOST 10.0.103.7
REMOTE_PORT 50996
REQUEST_METHOD POST
SCRIPT_NAME /WebNotification.axd
SERVER_NAME mysite.ie
SERVER_PORT 80
SERVER_PORT_SECURE 0
SERVER_PROTOCOL HTTP/1.1
SERVER_SOFTWARE Microsoft-IIS/10.0
URL /WebNotification.axd
HTTP_CONNECTION Keep-Alive
HTTP_CONTENT_LENGTH 160
HTTP_CONTENT_TYPE application/json
HTTP_AUTHORIZATION Basic AKEDJo3l5TusjQ6iYJmfqOwDUWXR26CDcUAZ9l5Np2gFkf80TMBhUGxNpo/t6UyaDw==;12cdf13d-9e31-e811-a83b-02bf0a006754
HTTP_EXPECT 100-continue
HTTP_HOST mysite.ie

Do you have any idea on how to address this problem? I tried everything.

Any help will be very apreciated...

Thanks guys...

*This post is locked for comments

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans