简体   繁体   中英

SharePoint Alternate Access Mappings: Event Receiver only fires when accessing the site using localhost but not with IP or machine

Context

We have a SharePoint site set up on a Windows Server 2008 VM box.

We also developed a SP event receiver in C# and registered it with the appropriate SP site and subscribed to the following events:

ItemDeleted;

ItemFileMoved;

ItemUpdated;

The following is list of SP info:

  • local machine name: testsp;
  • local ip: 10.152.0.248;
  • port: 80;

Alternate Access Mappings

internal Zone public

Issue/Symptom

When using SP site is accessed from IE using localhost as a URL, and when a document is deleted and added, the subscribed events fire. But if I use testsp or the ip address the events don't fire.

My suspicion lies with AAM but cannot figure out where.

Please help

If any SP guru could point out the issue, I'd be most grateful.

TIA,

Cullen

原来,登录以上传到SharePoint的用户没有写Windows事件日志的权限。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM